Skip to content

Instantly share code, notes, and snippets.

@casidiablo
Created April 20, 2012 14:27
Show Gist options
  • Save casidiablo/2429059 to your computer and use it in GitHub Desktop.
Save casidiablo/2429059 to your computer and use it in GitHub Desktop.
Hides interesting notes in Google+
// ==UserScript==
// @name Hides Interesting (Spanish Only)
// @include https://plus.google.com/*
// @version 1.0
// ==/UserScript==
(function () {
var links = document.getElementsByTagName("a");
for (var i = 0; i < links.length; i++) {
var link = links[i];
if (/Interesante en Google+/i.test (link.innerHTML) ){
var interestingDiv = link.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode;
interestingDiv.style.display = "none";
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment