Created
February 5, 2014 06:20
-
-
Save Neurogami/8818275 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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