Blocking Ads on Facebook, Part 2
Oct
17
2013
I now use the following script. It filters sponsored stories, stories where the comment box is hidden, and “Bob commented on this” stories, leaving behind more relevant content.
window.setInterval(function(){
var b = function(t){
var s = document.getElementsByClassName(t);
for(var i in s){
var a = s[i]; if(!a.className) continue;
while(a.className.indexOf("_6ns")==-1) a = a.parentNode;
a.style.display="none";
}
};
b("collapsed_comments");
b("uiStreamAdditionalLogging");
b("_6td");
}, 500);













