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.
goatse-porridge's Flamebate Posts
View goatse-porridge's Profile
Search Results | ||
---|---|---|
Bookmarklet to show which forums are currently in your streak.Inertia Posted:
It’s a piece of Javascript code that’s saved as a browser bookmark. When you open that bookmark, it won’t change the page, but execute that code instead.
Log in to see images!
You just put the code you want run into the “Location” field with “javascript:” in front of it. (view post) |
02/05/2009 | |
Bookmarklet to show which forums are currently in your streak.Wrong Posted:
Ooh, thanks. Yeah, it is different, my script does the regular forum lists; it’d probably blow up on the job board. (view post) |
02/04/2009 | |
Bookmarklet to show which forums are currently in your streak.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. (view post) |
02/03/2009 |