No longer working. Again!

in
Subscribe to No longer working. Again! 18 posts, 7 voices



geeknik Scriptwright
MozillaWindows

Looks like FB strikes again. I'm getting "FB Purity blocked: 0". Someone want to fix this? :)

 
animatedantmo User
FirefoxWindows

Same here. I tried uninstall/reinstall with no luck.

 
toddos User
FirefoxWindows

They changed the attachment class names. Rather than "UIIntentionalStory_AttachmentInfo", it's now "UIStoryAttachment". Also, apps now use a URL like "apps.facebook.com" rather than "facebook.com/apps".

Note: I had to add a couple of line breaks here that aren't actually in the code for a couple really long lines.

Things to change:

1. Find this:


function fpInsertedNodeDomHandler(event) {
if(location.href.match('\/home\.php') && event.target.getElementsByClassName && event.target.getElementsByClassName('UIIntentionalStory_AttachmentInfo'))
cleartheshizzle(event.target);
}

Change to this:


function fpInsertedNodeDomHandler(event) {
if(location.href.match('\/home\.php') && event.target.getElementsByClassName
&& event.target.getElementsByClassName('UIStoryAttachment'))
cleartheshizzle(event.target);
}

2. Find this:


var footernodes=thenode.getElementsByClassName('UIIntentionalStory_AttachmentInfo');
for(i=0;i<footernodes.length;i++) {
if(footernodes[i].innerHTML.match('facebook\.com\/apps\/')) {

Change to this:


var footernodes=thenode.getElementsByClassName('UIStoryAttachment');
for(i=0;i<footernodes.length;i++) {
if(footernodes[i].innerHTML.match('apps\.facebook\.com\/')) {

3. Pretty sure the parentNode depth changed again, so once again I recommend using my tree walk solution. But that needs a slight modification as well (change from looking for "UIStory" to "UIIntentionalStory").

So, find this:


footernodes[i].parentNode.parentNode.parentNode.style.display='none';
footernodes[i].parentNode.parentNode.parentNode.setAttribute('class'
,footernodes[i].parentNode.parentNode.parentNode.getAttribute('class')+' fbpblocked');

Change to this:

var storyNode = walkuptree(footernodes[i]);

if (storyNode)
{
storyNode.style.display = 'none';
storyNode.setAttribute('class', storyNode.getAttribute('class') + ' fbpblocked');
}

And then add this above the "if(location.href.match('\/home\.php'))" line:


var walkuptree = function(thenode)
{
if (thenode.className.search("UIIntentionalStory") >= 0)
{
return thenode;
}
else if (thenode.className.search("UIStream") >= 0)
{
return null;
}
else
{
return walkuptree(thenode.parentNode);
}
}

4. The href of the show/hide link now breaks if you click it (causes a page reload). So, find this:


<a id="fbpshowblockedlink" href="javascript:;">

Change to this:


<a id="fbpshowblockedlink" href="#">

 
steeev Script's Author
FirefoxWindows

yes, i noticed that fb have changed their code again, have updated the script.

 
geeknik Scriptwright
MozillaWindows

Thanks for the quick update steeev! :)

 
itsamutiny User
FirefoxWindows

still not working for me. i get a popup that says:

A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.

Script: file:///C:/Documents%20and%20Settings/Danielle/Application%20Data/Mozilla/Firefox/Profiles/0wr6noxw.default/extensions/%7Be4a8a97b-f2ed-450b-b12d-ee082ba24781%7D/components/greasemonkey.js:420

i'm also getting things like "FB Purity blocked: 3427". i reinstalled the script twice tonight and it didn't help. : /

 
steeev Script's Author
FirefoxWindows

itsamutiny, check to see you havent got multiple copies of the script running at the same time, you can see this in the Tools/Greasemonkey/Manage UserScripts menu.

also try disabling any other fb scripts you have running. if that works, then it might be a "clash" of scripts, re-enable them one by one, till you find the one that is clashing. you could also rearrange the order the scripts run in, by dragging and dropping, to put fb purity first, that might fix it.

btw what versions of greasemonkey and firefox are you running

 
itsamutiny User
FirefoxWindows

firefox 3.5 and greasemonkey 0.8.

apparently it was conflicted with a farmville script i had, so i uninstalled it and it's working again. thanks!

 
NViktor User
FirefoxWindows

can someone upload a working code pls.
thanks

 
steeev Script's Author
FirefoxWindows

nviktor what problem are you having exactly?

 
NViktor User
FirefoxWindows

steeev: i'm having issues with application related stuff appearing in the newsfeed. (ffox 3.5)

 
steeev Script's Author
FirefoxWindows

NViktor, see my advice i gave to itsamutiny above...

 
Coolone User
FirefoxWindows

Hi

This script hasn't been working for me since around the beginning of September. It used to work flawlessly before then. I don't have any other scripts installed, and I have the latest versions of FireFox, Greasemonkey, and the script itself. I have tried uninstalling the reinstalling multiple times to no avail. I have also tested this on two other computers that I own, both with the same results. The only other addon on each copy of Firefox is Ad-Block Plus. Do you have any other suggestions for me? Are there any settings in Firefox/Greasemonkey that I'm missing?

Thanks

 
steeev Script's Author
FirefoxWindows

Coolone, can you do me a favour, view the source code of your facebook homepage "View/Page Source" then do a search for the following text "UIStoryAttachment" ( without the quote marks )

and let me know if that text appears in your page. ive had reports that faceboook is testing a different version of the site, with the underlying elements of the page named differently. certain groups of people get to see the different version of the site (im not talking about lite.facebook.com btw) you might be in that group. and as the underlying elements are named differently the script wont work for you.

 
Coolone User
FirefoxWindows

Thanks for the quick reply steeev. The text UIStoryAttachment appears 8 times in the code for me. If you want, I can send you a copy of the whole code in a PM or via e-mail?

Thanks

 
steeev Script's Author
FirefoxWindows

Coolone, in that case i think you should be able to fix the script yourself by simply doing a search and replace in the script of "UIActionLinks", replacing that with "UIStoryAttachment"
let me know if that works, cheers. when facebook roll this change out to the whole userbase, i will update the script accordingly, until then its easy to fix yourself on your own version of the script.

--update--
actually on second thoughts, that might not work after all... give it a go though and let us know if it works

 
Coolone User
FirefoxWindows

I replaced all instances of "UIActionLinks" with "UIStoryAttachment" in the script and so far nothing has changed. Any other ideas? Do you need any other info from the code?

 
steeev Script's Author
FirefoxWindows

oh well, i guess you could try http://lite.facebook.com facebooks new "facebook purity" style revamp

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel