Skip to content

Instantly share code, notes, and snippets.

@Infocatcher
Created December 3, 2013 16:36
Show Gist options
  • Select an option

  • Save Infocatcher/7772476 to your computer and use it in GitHub Desktop.

Select an option

Save Infocatcher/7772476 to your computer and use it in GitHub Desktop.
@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