Improvement requests :  K-Meleon Web Browser Forum
Use this forum to talk about a feature you're missing. 
customize the privacy bar(requestsmiling smiley)
Posted by: chinarobin
Date: March 07, 2016 05:16AM

my privacy bar has too many items and looks crowed, and i want to keep only "clear cache and kill flash", delete others so as to get more room for other things.

anyway to make it?


thanks very much!

Options: ReplyQuote
Re: customize the privacy bar(requestsmiling smiley)
Posted by: guenter
Date: March 07, 2016 08:57AM

No idea whether this is still possible with 76 default skin but for older skin You can comment/edit them out in toolbars.cfg. All lines that start with # are commented out.

The one from my Phoenity Lage and it has all items commented out except Cookies, JavaScript, Popups, Cache and KillFlash.

You can do it lile me

%ifplugin macros|privacy

&Privacy Bar(64,13){

	%ifplugin macros

#	Animation{
#	macros(pref_ToggleAnimation)
#	Block Image Animation
#	privhot.bmp[0]
#	privcold.bmp[0]
#	}

#	Colors{
#	macros(pref_ToggleColors)
#	Block Page Colors
#	privhot.bmp[1]
#	privcold.bmp[1]
#	}

	Cookies{
	macros(pref_ToggleCookies)
	Block Cookies
	privhot.bmp[2]
	privcold.bmp[2]
	}

#	Images{
#	macros(pref_ToggleImages)
#	Block Images. Press F9 to toggle.
#	privhot.bmp[3]
#	privcold.bmp[3]
#	}

#	Java{
#	macros(pref_ToggleJava)
#	Block Java Applets
#	privhot.bmp[4]
#	privcold.bmp[4]
#	}

	JavaScript{
	macros(pref_ToggleJavaScript)
	Block JavaScript. Press F7 to toggle.
	privhot.bmp[5]
	privcold.bmp[5]
	}

	Popups{
	macros(pref_TogglePopups)
	Block Popups. Press F8 to toggle.
	privhot.bmp[6]
	privcold.bmp[6]
	}

#	Referer{
#	macros(pref_ToggleReferer)
#	Block HTTP Referer
#	privhot.bmp[7]
#	privcold.bmp[7]
#	}

	%endif
	
	%ifplugin privacy

	Clear Cache{
	privacy(ClearCache)
	Clear Cache
	privhot.bmp[8]
	privcold.bmp[8]
	}

#	Clear Cookies{
#	privacy(ClearCookies)
#	Clear Cookies
#	privhot.bmp[9]
#	privcold.bmp[9]
#	}

#	Clear History{
#	privacy(ClearHistory)
#	Clear History
#	privhot.bmp[10]
#	privcold.bmp[10]
#	}

#	Clear Passwords{
#	privacy(ClearSignon)
#	Clear Passwords
#	privhot.bmp[11]
#	privcold.bmp[11]
#	}

#	Clear URLBar{
#	privacy(ClearMRU)
#	Clear URL Bar History
#	privhot.bmp[12]
#	privcold.bmp[12]
#	}

	%endif

#	%ifplugin macros & privacy
#	Clear All{
#	macros(kPrivacy_ClearAll)
#	Clear All
#	privhot.bmp[13]
#	privcold.bmp[13]
#	}
#	%endif
	
	%ifplugin macros

	Kill Flash{
	macros(JS_killFlash)
	Kill Flash Objects
	privhot.bmp[14]
	privcold.bmp[14]
	}

#	Kill Applets{
#	macros(JS_killApplets)
#	Kill Java Applets
#	privhot.bmp[15]
#	privcold.bmp[15]
#	}
	
#	User Agent(16,16){
#	ID_APP_ABOUT|&User Agent
#	Check Browser Identity. Right-click to choose different User Agent.
#	menu1.bmp[8]
#	menu1.bmp[8]
#	}

	%endif

}

%endif


Options: ReplyQuote
Re: customize the privacy bar(requestsmiling smiley)
Posted by: siria
Date: March 07, 2016 09:17AM

Edit > Configuration > Toolbars

Since ca KM75 that opens the single and default file "toolbars.cfg"
The system is still similar as in older KM-versions, using # to hide/unhide buttons, but with syntax differences especially for text toolbars like the PrivBar.

Customizing it gets much safer if users first manually make a copy and create their own personal skin folder, so the default skin doesn't get destroyed at the first typo. Just copy the folder skins/default to a new name, exammple "skins/myskin", and then put a copy of toolbars.cfg into it too. Restart the browser and activate that new skin in F2>GUI
Then as above again: Edit>Config...

There may be problems with write permissions in the programs folder.
In that case either give yourself write permission for the skin folder via folder properties, or alternatively copy the skin folder into the profile folder: ...profile/skins/myskin
(Edit > Configuration > Profile Directory)

PS:
to make ALL PrivBar buttons smaller, it's also possible to just shorten the TEXT on the buttons. Because the longest button on a toolbar decides the width for ALL buttons inside the same toolbar. Example:

!Cl.Cache{
privacy(ClearCache)|&Clear Data
Clear Cache
}



Edited 1 time(s). Last edit at 03/07/2016 09:41AM by siria.

Options: ReplyQuote
Re: customize the privacy bar(requestsmiling smiley)
Posted by: chinarobin
Date: March 08, 2016 02:22AM

I have figured it out now, thank u bothgrinning smiley

Options: ReplyQuote


K-Meleon forum is powered by Phorum.