Wednesday, 2 June 2021

yvannairie: Rodimus Prime in the style of Nyoron Churuya-san (nyoro~)

So heyyyy you know how I'm always bitching about the Kudos button disincentivising actual engagement between users? Well, I wrote a userscript that automatically sends an "I've already left kudos!" when you try to rekudos a fic, instead of rekudosing doing fuck-all!

You can get it on Greasyfork, but I will also put it under a cut here. You'll need Tampermonkey to run it, or you can use another userscript manager if you're used to something else.

[EDIT: 13.6.-21] The script is now up to 3.0, and most of the kinks have been ironed out. You can leave one rekudos per day per fic, and can customise the comments you leave. There's also automatic mode available, where the script won't ask for confirmation before posting the comment, and I've added support for... future projects. The current method is a little bit laggy, but if the script doesn't load the first time b/c of your slow internet, just try clicking the kudos button again.

The full code will be under the cut.

Read more... )

Not bad for someone who, like, legitimately doesn't know how JavaScript works and has never done anything like this before. Lucky for me I found a script that mostly did what I was trying to do, and could expand on it to get my own script up and running, and the rest was just a matter of figuring out what combination of search terms to put into Google to figure out how to translate a thing I knew how to do in Python to how the thing is handled in JS. It's probably not the most elegant but hey, it works.

Now to figure out if there's a way to run userscripts on mobile. I know I saw a post about it but this is my first userscript for Ao3 (that I've written or used), I haven't had the need to follow up on that.

[FURTHER EDIT:] As of 13.6. I have a functioning extension version of the script! Yay! But also I want to make it feature-complete before I submit it to Mozilla. As of February 2021, you can install extensions in Mobile Nightly, so presumably they're working to bring that feature back to Mobile Firefox -- at the moment it's an experimental feature even by Nightly standards so We'll See(tm), it seems I have plenty of time to work out how to get the extension working properly.

Style Credit