Created
December 3, 2013 16:36
-
-
Save Infocatcher/7772476 to your computer and use it in GitHub Desktop.
Change icon of pinned private tabs, based on https://github.com/Infocatcher/UserStyles/tree/master/Private_Tab_icon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
| @-moz-document url("chrome://browser/content/browser.xul") { | |
| /* Add icon to pinned private tabs, https://addons.mozilla.org/addon/private-tab/ */ | |
| .tabbrowser-tab[pinned][privateTab-isPrivate] .tab-icon-image { | |
| /* Trick: change binding to break "src" attribute */ | |
| -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton") !important; | |
| } | |
| .tabbrowser-tab[pinned][privateTab-isPrivate] .tab-icon-image > .toolbarbutton-icon { | |
| list-style-image: url("chrome://browser/skin/Privacy-16.png") !important; | |
| display: -moz-box !important; | |
| width: auto !important; | |
| height: auto !important; | |
| margin: 0 !important; | |
| padding: 0 !important; | |
| border: none !important; | |
| } | |
| .tabbrowser-tab[pinned][privateTab-isPrivate] .tab-icon-image > .toolbarbutton-text { | |
| display: none !important; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment