Thursday, June 2, 2005

Removing Blogger's Navbar

So if someone wanted Blogger's navbar to go away on all blogspot sites, one might install Greasemonkey, save some code that looks like

// ==UserScript==
// @name          Blogger Navbar Removal
// @description   hides the Blogger navigation bar
// @include       http://*.blogspot.*/*
// ==/UserScript=

(
function() {
 alert("Foo!");
   var navbar = document.getElementById('b-navbar');
   if (navbar) {
      navbar.parentNode.removeChild(navbar);
   }
}
)();
as blogger-navbar.user.js, install it with Greasemonkey, and see the navbar no more.

Categories: , ,

0 comments: