Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@aniav
Created November 12, 2011 22:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aniav/1361241 to your computer and use it in GitHub Desktop.
Save aniav/1361241 to your computer and use it in GitHub Desktop.
Show G+ notification box only in Google+ (modified to work also for .pl domains)
// ==UserScript==
// @name Show G+ notification box only in Google+
// @namespace http://sagg.im/hidegplusnotifications
// @description To make sure we spend the entire day on Google+, we now have that big attractive notification box in the top right of all Google sites. When receiving a notification while searching the web or composing an email, the notification box turns all red and instantly draws your attention, taking you into the wrong conversation. This one line GreaseMonkey piece hides the notification box in all Google sites except Google+, where it belongs. Tested on Chrome and FF+GreaseMonkey.
// @include http://*.google.com/*
// @include http://*.google.pl
// @include https://*.google.com/*
// @include https://*.google.pl/*
// @exclude http://plus.google.com/*
// @exclude https://plus.google.com/*
// ==/UserScript==
try {document.getElementById("gbg1").style.display = 'none';} catch(e) { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment