flamebyrd: (Default)
As is frequently the way, a bit of sleep helped clear the mind. Thus, I now have a working beta for keyboard navigation in Pillowfort.io.


There were a few things going wrong. For a lot of the time I thought I was being tripped up by PillowFort's lazy loading of content, but what was actually happening was the height of the top bar and the bottom position of the entry were encountering rounding errors.

Anyway, it's working for me now in recent versions of Firefox and Chrome.

Every time I visit PillowFort I am instantly turned off by the UI, so this may not be the last time I decide to do something about it...
flamebyrd: (Default)
I hadn't coded anything in a while... actually, that's not true. I coded a thing I hadn't posted here. So let's start with that instead.

AO3 Additional Filters
This is a userscript (and bookmarklet) to add author, date and wordcount filters to the sidebar on works listings. I basically wrote it because I was tired of losing my date filters when I changed the sort field.

And here's the one I was working on the last couple of days:

Dreamwidth HTML Buttons
This adds buttons to the beta Create Entries page that insert HTML for you.

Both of these are in beta and have only been tested in my own versions of Firefox and (briefly) in Chrome.
flamebyrd: (Default)
After a certain friend of mine remarked that she'd been up until 3AM reading fic three nights in a row (a "fictim", as Tumblr would have it), I remarked that it should be pretty straightforward to write a script that will estimate how long it will take to read a fic and pop up a warning when it thinks you'll finish too late for comfort.

So there's now a bookmarklet that will calculate how long it will take you to read a fic, and also a userscript that will do the same and then warn you if it think you'll finish after 1AM (or however you configure it).

These are both still in very early beta, so please let me know if you encounter any weirdness or have suggestions.

I don't know if a point-by-point retrospective on developing this would be of any interest to anybody, so it's behind a cut. )
flamebyrd: (Default)
This occupied most of my day today*:

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
Page generated Apr. 25th, 2019 01:45 pm
Powered by Dreamwidth Studios