Skip to content

Instantly share code, notes, and snippets.

@wrongbyte
Created September 1, 2024 13:05
Show Gist options
  • Save wrongbyte/7f64a08d1e84bdeac6d1c97a00d890bc to your computer and use it in GitHub Desktop.
Save wrongbyte/7f64a08d1e84bdeac6d1c97a00d890bc to your computer and use it in GitHub Desktop.
hide top bar in firefox

ctrl + shift + j

(function(){ /*toggle toolbox*/
var doc = Services.wm.getMostRecentWindow("navigator:browser").window.document;
var nt = doc.getElementById("navigator-toolbox");
var ds = nt.style.getPropertyValue("display") == "none";
nt.style.setProperty("display",ds?"-moz-box":"none","important");}
)()

https://support.mozilla.org/bm/questions/1256393

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