Entry tags:
AO3/DW/LJ/Pinboard keyboard shortcuts
This occupied most of my day today*:
http://random.fangirling.net/fun/ao3/web_keyboard_shortcuts.user.js
It's a userscript (Greasemonkey, Tampermonkey, etc) that runs on Archive of Our Own, Dreamwidth, LiveJournal and Pinboard, and lets you navigate up and down posts with the j and k keys. If you hit enter, it will open the current post in a background tab**.
It loads a few external scripts: jQuery (because Pinboard doesn't include it), Mousetrap (for easy keyboard shortcuts) and scrollTo (because I couldn't be bothered writing it myself).
Not thoroughly tested, which is why I haven't posted it to userscripts.org or anything yet. Let me know if you try it out!
* Most of the time was spent messing around with keyboard shortcut libraries. Ugh.
** I copied the code for this from https://userscripts.org/scripts/review/179969
http://random.fangirling.net/fun/ao3/web_keyboard_shortcuts.user.js
It's a userscript (Greasemonkey, Tampermonkey, etc) that runs on Archive of Our Own, Dreamwidth, LiveJournal and Pinboard, and lets you navigate up and down posts with the j and k keys. If you hit enter, it will open the current post in a background tab**.
It loads a few external scripts: jQuery (because Pinboard doesn't include it), Mousetrap (for easy keyboard shortcuts) and scrollTo (because I couldn't be bothered writing it myself).
Not thoroughly tested, which is why I haven't posted it to userscripts.org or anything yet. Let me know if you try it out!
* Most of the time was spent messing around with keyboard shortcut libraries. Ugh.
** I copied the code for this from https://userscripts.org/scripts/review/179969
no subject
Working all right so far!
no subject
Worked on the newfangled LJ feed thing, not on the old style friends page.
no subject
I'll take a look tonight, but I'm guessing my gamble that every LJ/DW layout would use .entry and .entry-title classes didn't pay off. Hopefully there's only a few different layouts to deal with...
here via the loon ^ :)
(From a support perspective, I understand - when I used to do LJ support volunteering, it felt like every tenth question was "OMG MY FRIENDS PAGE IS BROKEN" due to some wacky interaction between something screwy in a custom journal layout and something somebody posted in an entry, frequently the fault of the Rich Text Editor. "OMG MY JOURNAL IS BROKEN" due to similar causes happened proportionately rather less. Force everyone to a Facebook-style layout and only spend dev time on maintaining one style instead of official dozens-to-hundreds is just smart time management, but given this was coming up against people who had gotten used to customized friends pages over the course of a decade plus, it was going to be an uphill battle at best. And I say that as somebody whose rallying cry was LJ IS NOT FACEBOOK for many, many years.)
In any case, this looks like it will be a nifty and useful tool; I'm especially excited to try it out for AO3/Pinboard stuff :) Thanks for coding it!
Re: here via the loon ^ :)
I honestly do not know how I missed the LJ feed thing. I still check my LJ friends list but apparently don't follow the news. I can definitely see how that would be annoying to support - and that also probably explains why Tumblr won't let you skin your Dashboard.
no subject
no subject