This is NOT working :(
|
|
I have Greasemonkey installed and enabled. I added this script - and it appears to do nothing - I'm still getting quiz spam - nothing is being hidden. How do I make this work? |
|
|
Hello there,
|
|
|
Tried that - still nothing :( |
|
|
Can You name Your browser etc.?
|
![]() ![]() |
There must have been some sort of change in how facebook names its elements. Your code is looking for elements w/ the class of "UIIntentionalStory_Body". However that class doesn't show up in the code for my news feed anymore. I'm running the latest version of Firefox and using greasemonkey. I doubt any of that matters in this case. I'm working on identifying what class name should be sought after now. |
![]() ![]() |
I've made it work for my stream by rewriting the remove_external_stories() function. I've modified two lines, the getElementsByClassName and the if (stories[i].innerHTML.indexOf("apps.facebook.com") >= 0) line. Enjoy! //removes all external stories
|
![]() ![]() |
maybe better formatted:
//removes all external stories
function remove_external_stories(){
var stories = document.getElementsByClassName("UIStoryAttachment");
var count = stories.length;
//goes through all stories
for (var i = count - 1; i >= 0; i--){
if (stories[i].innerHTML.indexOf("apps.facebook.com") >= 0){
//hides the element
stories[i].parentNode.style.display = "none";
}
}
}
|
![]() ![]() |
First of all thank You for echo.
|


