Author |
Message |
agentOfChaos
|
Post Posted: Tue Feb 11, 2014 7:03 pm |
|
Joined: Fri Dec 06, 2013 6:27 pm Posts: 40
Location: ehm... <location updated, thank you!>
|
I created this nifty user script for greasemonkey (a firefox addon). Basically it adds a sixth button on the comic nav bar, linking directly to current strip's reaction page on the forum, because life is short, and laziness is source of innovation! I uploaded the script, so now you can grab it here: https://openuserjs.org/scripts/agentofchaos/inflatable_switchbladeAnd one-click install it in your browser. Basically the script recreates the current comic's date from the url, and feeds it to a custom "search engine", which looks for that date in the forum's reaction posts overview. The search is optimized attempting to find a pivot page (close enought to the target) on the thread list, and then spirally searching for the target from there. Needless to say the script is extra bleeding edge, and in need of testers! Feel free to copy share and improve. I might add it to my github, if I'll remember to do it. Tested working on Firefox 27.0, Arch Linux
Last edited by agentOfChaos on Sun May 25, 2014 2:05 pm, edited 2 times in total.
|
|
|
|
|
|
|
agentOfChaos
|
Post Posted: Wed Feb 12, 2014 10:07 am |
|
Joined: Fri Dec 06, 2013 6:27 pm Posts: 40
Location: ehm... <location updated, thank you!>
|
Update! Now it uses regular expression to match results.
|
|
|
|
|
agentOfChaos
|
Post Posted: Sat Feb 15, 2014 7:38 am |
|
Joined: Fri Dec 06, 2013 6:27 pm Posts: 40
Location: ehm... <location updated, thank you!>
|
Update! Improved reg exp matching, added userscripts.org link, removed code snippet.
|
|
|
|
|
agentOfChaos
|
Post Posted: Wed Mar 19, 2014 4:45 am |
|
Joined: Fri Dec 06, 2013 6:27 pm Posts: 40
Location: ehm... <location updated, thank you!>
|
Update! Added "Vote for sluggy" button.
|
|
|
|
|
AlternateTorg
|
Post Posted: Wed Mar 19, 2014 1:45 pm |
|
Member of the Fraternal Order of the Emergency Pants |
|
Offline |
Joined: Mon Dec 15, 2003 12:00 am Posts: 2994
|
|
|
|
|
agentOfChaos
|
Post Posted: Sun May 25, 2014 2:07 pm |
|
Joined: Fri Dec 06, 2013 6:27 pm Posts: 40
Location: ehm... <location updated, thank you!>
|
|
|
|
|
agentOfChaos
|
Post Posted: Fri Jun 06, 2014 12:09 pm |
|
Joined: Fri Dec 06, 2013 6:27 pm Posts: 40
Location: ehm... <location updated, thank you!>
|
Update: I added a feature to visualize the ref-linked comic in the reddish space below, just click on the link to show/hide. It supports even nested ref-links!
|
|
|
|
|
Spirantz
|
Post Posted: Wed Jul 16, 2014 1:20 am |
|
|
Offline |
Joined: Tue Jun 03, 2014 5:44 am Posts: 2208
|
If you're thinking about new updates still...
When it gets to midnight, have it check to see when the latest comic is uploaded (as Pete is often late!). That's something I'd install!
i.e., every minute after midnight, fetch the html page and check for a new filename.jpg until Pete updates the site. Once found, alert the user or automatically open the main page in a new browser window :) The main page is pretty static so this would be easy to implement.
|
|
|
|
|
agentOfChaos
|
Post Posted: Sun Aug 31, 2014 2:11 pm |
|
Joined: Fri Dec 06, 2013 6:27 pm Posts: 40
Location: ehm... <location updated, thank you!>
|
Updated! 1) Fixed some issues that emerged recently (the reaction page locator wasn't "locating" anymore). 2) Added the "check-updates" subsystem: at the current state of developement, it always checks for updates every 8 seconds, using the http "last modified" header, just like RSS does, except that, for some reasons, firefox won't let me do a proper conditional http request, I'll figure how later. PS. the updater triggers only on the main page (not while archive trawling).
|
|
|
|
|
agentOfChaos
|
Post Posted: Sun Aug 31, 2014 5:26 pm |
|
Joined: Fri Dec 06, 2013 6:27 pm Posts: 40
Location: ehm... <location updated, thank you!>
|
Quick update: now the script will start looking for updates only after midnight (using the server's clock as reference). EDIT: almost wasted a perfect occasion for a "Gremlins" joke here! Aren't all hours technically "after" midnight (00:00)?
|
|
|
|
|
Dodger77
|
Post Posted: Mon Sep 01, 2014 3:21 am |
|
Member of the Fraternal Order of the Emergency Pants |
|
Offline |
Joined: Wed Feb 26, 2003 12:00 am Posts: 3412
AOL: Dodger724
Location: Relative Obscurity
|
agentOfChaos wrote: Aren't all hours technically "after" midnight (00:00)? Haha, that's something I always wondered as well. When is OK to feed them? After sunrise?
|
|
|
|
|
foraprice
|
Post Posted: Tue Jan 13, 2015 4:56 am |
|
Joined: Fri Jan 09, 2015 9:22 am Posts: 9
|
I was just thinking I should do this last night! Nice to know someone's already beaten me to the punch :)
|
|
|
|
|
|