Created
December 24, 2011 14:50
-
-
Save esquifit/1517441 to your computer and use it in GitHub Desktop.
Tabbar at the bottom of the main content - for Firefox 4+
This file contains 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
/*==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