Advertisement
difool2nice

bottombar javascript

May 21st, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //  bottomtoolbar.uc.js
  2.  
  3. (function() {
  4.  
  5.   if (location != 'chrome://browser/content/browser.xul')
  6.     return;
  7.  
  8.   let toolbar = document.createElement('toolbar');
  9.   toolbar.id = 'bottom-toolbar';
  10.   toolbar.setAttribute('customizable', 'true');
  11.   toolbar.setAttribute('mode', 'icons');
  12.   toolbar.setAttribute('context', 'toolbar-context-menu');
  13.  
  14.   let vbox  = document.createElement('vbox');
  15.   vbox.id = 'bottom-toolbar-vbox';
  16.   let browserBottombox = document.getElementById('browser-bottombox');
  17.   browserBottombox.parentNode.insertBefore(vbox, browserBottombox);
  18.   vbox.appendChild(toolbar);
  19.   vbox.style.backgroundColor = '#1f1f1f';
  20.   //Hier kann die Hintergrundfarbe angepasst werden. Als Wert kann zbs. red, green,
  21.   //yellow oder orange usw, aber auch zbs. #f7f7f7 usw.verwendet werden.
  22.  
  23.   CustomizableUI.registerArea('bottom-toolbar', {legacy: true});
  24.  
  25. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement