Skip to content

Instantly share code, notes, and snippets.

@Neurogami
Created February 5, 2014 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Neurogami/8818275 to your computer and use it in GitHub Desktop.
Save Neurogami/8818275 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Remove annoying Hangouts promot
// @include https://news.google.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
// ==/UserScript==
//var divPromo = document.evaluate('//div[@class="hangouts-promo"]', document, null, typeXPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
function GM_wait() {
if (typeof jQuery == 'undefined') {
alert(".");
window.setTimeout(GM_wait,1000);
} else {
$ = jQuery; letsJQuery(); }
}
alert("GM_wait ... ");
GM_wait();
function letsJQuery() {
var divPromo = $(".hangouts-promo");
divPromo.remove();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment