theaeblackthorn: (Suits - Harvey - Good Boy)
[personal profile] theaeblackthorn posting in [community profile] ao3some
Hi all,

I made a greasemonkey script for AO3 that has some handy shortcuts in it.

Essentially this is just me sharing with the rest of the internet something I made to make my ao3 reading easier.

With this script:

- when viewing the works page in AO3, left arrow goes back a page in the pagination, right arrow goes forward a page, like tumblr's navigation.
- when viewing an individual work in AO3, left arrow goes to the next chapter, right to the previous chapter
- when on a work pressing the following keys causes the following behaviour:
-- 'd': downloads the .mobi version of the fic
-- 'k': leaves kudos
-- 'm': marks it for later
-- 's': subscribes
-- '#': sets the filters to 'english' and 'completed works only'*

Like I said, not comprehensive, just something I made to make my reading experience lazier and I thought other people might like as well.

(*pretty tailored to me, but I've left it in there incase someone else wants to use it)

It'd be great to hear if anyone else finds it helpful :)

Date: 2013-03-06 03:48 pm (UTC)
sylvaine: Dark-haired person with black eyes & white pupils. ([bandom:MCR] Gerard (bb) grinning)
From: [personal profile] sylvaine
Oh hey, that is awesome! Thanks for sharing; I'll definitely be making use of this! (And the "filter by English and completed works only" is particularly useful to me! :D)

Date: 2013-03-06 06:06 pm (UTC)
isweedan: White jittering text "art is the weapon" on red field (Default)
From: [personal profile] isweedan
OMG! What a cool thing to make!

But is it really "left arrow goes to the next chapter, right to the previous chapter"? That sound so backwards!

Date: 2013-03-19 12:35 am (UTC)
isweedan: White jittering text "art is the weapon" on red field (Default)
From: [personal profile] isweedan
Oh hey, is it supposed to ignore the letters you type when you make comments? (mine isn't?)

Date: 2013-03-19 12:50 am (UTC)
isweedan: Patrick doing press for the new album with headphones on upside down b/c hat. (Patrick with headphones)
From: [personal profile] isweedan
I am in firefox 19.0.2 and Windows 7!

Date: 2013-03-06 11:40 pm (UTC)
poulpette: (DW - Master - Awesomesauce)
From: [personal profile] poulpette
Do you like virtual baked goods? 'cause I'd be happy to send you tons of them :D

I'll need to make some edits to suit my use, but I've longed for a script like that for a while now. Thank you for sharing this :D

ETA 1: After testing, sadly, only the left/right arrow keypresses work for me. Probably due to the fact that I have a french AZERTY keyboard. I'll investigate.

ETA2: I've managed to get everything but the download part working by replacing the keydown function by its keypress counterpart.

ETA3: Managed to make the download work & to allow some flexibility for the download format. I'll add what I modified below in case it is of use to someone else.

if(e.which == 100 ) //if 'd' hit, download the work under specified format
	var dlformat = 1;
	// Download format:
		// 0: mobi 
		// 1: epub 
		// 2: pdf 
		// 3: html 
	var location = jQuery('#downloads li a').eq(dlformat).attr('href');
	if (location!=null)
		window.location.href = location;
Edited Date: 2013-03-07 02:03 am (UTC)

Date: 2013-03-07 03:23 am (UTC)
poulpette: cropped picture of an illustrated octopus (Default)
From: [personal profile] poulpette
Oh, I should have included that info as well *facepalm* So sorry! I'm using a win7/FF(latest beta) combo.

From what I've read on keypress/keydown, keypress only guarantees character keys, not the arrows key. Maybe if you separated the arrow keypress to a different function? Keep keypress for the char keys and keydown for the rest? *shrugs*

Date: 2013-03-15 02:17 am (UTC)
isweedan: White jittering text "art is the weapon" on red field (Default)
From: [personal profile] isweedan

Date: 2014-04-19 09:03 pm (UTC)
eosrose: (Default)
From: [personal profile] eosrose
Super awesome! The only thing that could make it better is if there was a shortcut to leave anon kudos if you're logged in (I want this feature so bad, you don't even know, lol). I'm going to use this script like crazy. I don't know how I ever lived without it!

Edit: In the interest of being a better person, anyone know how to modify this to automatically leave kudos when I download something?
Edited Date: 2014-04-19 09:30 pm (UTC)

June 2017


Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 21st, 2017 05:44 pm
Powered by Dreamwidth Studios