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.
http://random.fangirling.net/fun/ao3/work_reading_est.html

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)
In some fandoms, it's reasonably common for fanfic authors to write text in a language other than English and provide a translation that appears on hover. They do this by putting the text in the title="" attribute of an HTML tag (usually <span>). This works on desktop, but on a touch screen device it gets a little complicated.

Initially I was thinking I could write some CSS in a custom AO3 theme to display the text after the element it's attached to, but it turns out that AO3 doesn't allow you to use the attr() function. So I went back to my old friend, the bookmarklet.

Reveal Title Text Bookmarklet

I also learned how to install bookmarklets on mobile Safari, which will probably greatly improve my fic reading experience in future. No way to install them on my Kobo though, so I guess I'll just have to deal with not being able to read the translations on my e-reader. That or add custom CSS to every AO3 epub I add to my Kobo.
flamebyrd: (Default)
Decided to write this bookmarklet during a discussion of advanced filtering in #yuletide, but had to leave before I finished it so it's no longer topical.

But I threw it up on my website anyway, so: bookmarklet to fetch AO3 tag ID

(Plans for next year: make my bookmarklet collection less hacked together.)
flamebyrd: (Default)
I decided to start compiling my "What I Wrote in 2015" post and instead ended up tweaking the bookmarklet I wrote to let you download your AO3 stats page as a CSV.

It now includes:
- Work subscriptions
- A link to the work
- Fandom for both views

Try it out, let me know how it goes - and if any JS coders out there have any recommended ways to provide file downloads of dynamically generated plaintext please let me know? (I've googled the topic, I'm hoping for personal experience.)
flamebyrd: (Default)
I'm back home and Yuletide signups are open, which means I've been frantically fixing bugs and tweaking my Yuletide Taglist filter. (Well, I suppose it's one way to combat jet lag...) Last year it was a separate page, but since I've been on a bookmarklet spree this year, I decided to make this one operate on the actual AO3 tag list.

random.fangirling.net/fun/yuletide/taglist_filter.html

Basically, it's for people like me who never quite know what they'll be requesting or offering until the final tag list goes up, and it lets you peruse the list and mark off the ones you're interested in, then slowly whittle it down.

As a bonus, it generates your bucket list for you!
flamebyrd: (Default)
I've been doing a lot of reading on my Kobo lately, so AO3's epub download feature is my favourite. In the shower this morning I thought, wouldn't it be great if I could just click a bookmarklet and it would queue up downloads of the epub versions of all stories in the series?

I encountered two problems with this:
1) For logical reasons, AO3's structure for the download URLs is a bit arcane. I had to grab a copy of the code from SVN and dig around until I figured out the format.
2) Prompting the browser to download multiple files is more difficult than you'd think (but, again, probably for logical reasons). I found a few solutions but they were all pretty dodgy.

Anyway, long story short, I sort of solved problem 1 but not problem 2.

http://random.fangirling.net/fun/ao3/downloader.html

This will provide download links for the ebook versions of all stories on an AO3 page (author's works, search, series, etc) in a little box that floats on the page after you click the bookmarklet.

It is undoubtedly very buggy.
flamebyrd: (Default)
Not having a terribly productive flex day so far, but we're going to the bank in the afternoon so maybe it will be productive in the "organising our finances" sense?

I thought I'd link to something I posted on [community profile] ao3some earlier this week, though:
http://random.fangirling.net/fun/ao3/bookmarklet.html
This generates a bookmarklet (little button that lives in your browser bookmarks) based on the Pinboard posting bookmarklet that will fetch tags from AO3 and put them in the tags box for you.

I wrote the bookmarklet on Sunday, the generator on Monday, added Author tagging on Wednesday (by request) and this morning I added a feature to remove the brackets from the end of the fandom tag (ie. turns 'The Avengers (2012)' into 'TheAvengers').

Additional feature requests welcome.

PS: I have investigated doing this for Tumblr without much luck, and for Delicious (which I might be able to do but it'll be less elegant). I could do Google Bookmarks if I thought anyone cared...
Page generated June 24th, 2017 03:39 am
Powered by Dreamwidth Studios