Skip to content

Instantly share code, notes, and snippets.

@esquifit
Created December 24, 2011 14:50
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 esquifit/1517441 to your computer and use it in GitHub Desktop.
Save esquifit/1517441 to your computer and use it in GitHub Desktop.
Tabbar at the bottom of the main content - for Firefox 4+
/*==uc/==
@name Tabbar at the bottom
@author esquifit
@description In FF4+ places tabbar at the bottom of the main content
@include main
@compatibility Firefox 4.0+
@version 2011-08-28
==/uc==*/
// This code is shamelessly stolen from Tab Mix Plus:
var bottomToolbox = document.getElementById("foo-bottom-toolbox");
if (!bottomToolbox) {
bottomToolbox = document.createElement("toolbox");
bottomToolbox.setAttribute("id", "foo-bottom-toolbox");
let browser = document.getElementById("browser");
browser.parentNode.insertBefore(bottomToolbox, browser.nextSibling);
}
bottomToolbox.appendChild(document.getElementById("TabsToolbar"));
/*
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment