Created
May 29, 2012 11:51
-
-
Save dafi/2828027 to your computer and use it in GitHub Desktop.
Remove posts from g+ containing specific words
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 gplus | |
// @namespace http://dafi.plus | |
// @include plus.google.com | |
// @version 1 | |
// ==/UserScript== | |
[].forEach.call(document.querySelectorAll('div.jn.gu'), function(e) { | |
var text = e.firstChild | |
&& e.firstChild.textContent.toLowerCase(); | |
if (text && (text.indexOf('terremot') != -1)) { | |
for (; e; e = e.parentNode) { | |
if (e.id && (e.id.indexOf('update') != -1)) { | |
e.style.display = "none"; | |
} | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment