You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.
You need to be logged in to post and to see the uncensored versions of these forums.
Viewing a Post
|
My search-fu fails me, so I’ve no idea if this is redundant or not:
Save the following as a bookmarklet:
javascript:void(new Ajax.Request( '/bookmarks/streak', {asynchronous:true, evalJS:false, onSuccess: function(request) { streak = /"<.*>"/.exec(request.responseText)[0]; streak = new XML("<streak>"+eval(streak)+"</streak>"); streak = streak..table..td.*; forums = []; for each (forum in streak) forums.push(forum.toString().replace(/\s/g, '')); links = dogreat timesent.getElementsByTagName('table')[0].getElementsByTagName('a'); for each (link in links) { for each (forum in forums) { if (forum == link.text.toString().replace(/\s/g, '')) { link.style.textDecoration = 'line-through'; } } } }, onFailure: function(request) { alert(request); } } ));
Put it on a browser toolbar, click when on a page with a forum list, enjoy bacon.
Works for me on FF3.1; can’t be bothered to test anywhere else, I did make an effort to use reasonably standard JavaScript though.
The way it works is an ugly hack and will probably break if the FW page layout changes in any significant way. (Dear ET: can we please get meaningful IDs or clbumes for scraping purposes? Or JSON output for the streak history.)
Licenced under the Do What The **** You Want Public Licence, which seemed somehow appropriate. Someone less lazy might want to adapt this into a GreaseMonkey script to automagically do this when a forum list is loaded. goatse-porridge edited this message on 02/03/2009 12:17PM |
||||||
Posted On: 02/03/2009 12:13PM | View goatse-porridge's Profile | # |