Skip to content

Instantly share code, notes, and snippets.

@theapache64
Created November 26, 2015 14:07
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 theapache64/e7ebf9154f22ce75fad5 to your computer and use it in GitHub Desktop.
Save theapache64/e7ebf9154f22ce75fad5 to your computer and use it in GitHub Desktop.
Quora - HideTopContent Script
$('div.EventHeader').each(function(i, heading) {
var headingData = heading.innerHTML;
console.log("Heading is "+headingData);
var hasTopContent = headingData.indexOf("Top Content on Quora")!=-1;
if(hasTopContent){
$(heading).closest(".pagedlist_item").css('opacity','0.2');
}
console.log("Has top content = "+hasTopContent);
});
$("#feed_visibility_wrapper").bind("DOMSubtreeModified", function() {
alert("Data Changed");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment