Google Black Bar Returns Now Customizable!

This Script brings back the Google Navigation Bar with customizable options, and removes the App Grid navigation entirely. You can change the links on the bar, the colors of the bar, the background image of the bar, and if the bar is always visible, or not. Check for updates regularly for bug fixes, and new features!

< Feedback on Google Black Bar Returns Now Customizable!

Review: Bad - script does not work

§
Posted: 2017-03-24

Major syntax error

Not sure if this author is supporting this script, or if he actually authored it?

function() { document.body.innerHTML = newBody; },

All these reports and nobody has caught that you simply do NOT even have the newBody var defined anywhere! Trying to figure out what the heck you were trying to do in part of this I ask if you were the original author because it seems like there is just a bunch missing that would have been defined in the newBody causing many of these issues people have been reporting for it looks like years.....

§
Posted: 2017-03-24

For those also seeing the halting errors on this script, I see no reason not to simply delete the completely erroneous, unneeded block of (until the author can either agree it's placement is a mistake, or let us in on the missing HTML for the newBody he never defined):

window.addEventListener(
'load',
function() { document.body.innerHTML = newBody; },
true);

That should clear up all the critical JS execution halting errors and make it run clean (at least in Chrome).

§
Posted: 2017-04-24
Edited: 2017-04-24

Hey Collin!

Original Author here, I had originally posted this script on UserScripts quite a few years back. I'm not sure who has been maintaining it, I appreciate them keeping it semi-workable, though.

This was the first script I had ever written with JavaScript, there are bound to be quite a few errors. That code block being one of them, it appears. I didn't know JS, but hated the change Google made so I tried to fix it, errors and all. I, however, haven't used this script for a very long time. Once UserScripts had collapsed I quit working on it. I understand JS better now than I did so many years ago, but I am no expert, obviously! I intend on rewriting a better script, whenever I do I will post a comment forwarding people to it.

Post reply

Sign in to post a reply.