Skip to content

Instantly share code, notes, and snippets.

@Arty2
Last active June 7, 2018 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Arty2/4658f49ca815980b0cb2 to your computer and use it in GitHub Desktop.
Save Arty2/4658f49ca815980b0cb2 to your computer and use it in GitHub Desktop.
Firefox CSS to colorize private tabs. Use with Stylish or userChrome.css
/*
private-tabs.css
https://gist.github.com/Arty2/4658f49ca815980b0cb2
*/
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
#main-window[privatebrowsingmode=temporary] #urlbar {
border-color: #841ebe !important;
background-color: #841ebe !important;
color: #fff !important;
}
#main-window[privatebrowsingmode=temporary] .tabbrowser-tab[selected] {
background: #841ebe !important;
}
@franzalex
Copy link

Hello.
Is there a way to have userChrome.css (or an accompanying userChrome.js) detect whether the page loaded in a tab is secure (HTTPS)?
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment