Created
November 26, 2015 14:07
-
-
Save theapache64/e7ebf9154f22ce75fad5 to your computer and use it in GitHub Desktop.
Quora - HideTopContent Script
This file contains hidden or 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
$('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