birdsflying: (Default)
birdsflying ([personal profile] birdsflying) wrote in [community profile] ao3some2012-06-29 11:14 pm

Ao3 tag killfilter?

I could really do with an extension similar to tumblr saviour that would not display fics with certain user specified tags when I'm browsing a03 (specifically, when I'm scrolling through a fandom tag result page) - anyone come across that?

I am prodding the sourcecode for tumblr saviour to see if I can do a quick and dirty modification but I am also mid-relocation and new job and extremely rusty with javascript, so very much a bear of little brain right now, so if anyone else has done it first, I would love to know. (and personally, the stuff I'd like to avoid, I would be unlikely to want to reveal, so if it just said 'fic removed from view' or similar, without the unhide link, as a quick modification that would also be A+)
montanaharper: close-up of helena montana on a map (Default)

[personal profile] montanaharper 2012-10-06 04:41 pm (UTC)(link)
Thank you, this is great!

Is there a way I can change the script to make it only look for a specific field? I'm looking for a way to killfile certain authors, but I don't want to eliminate things written for them, or remixes of their work, etc.
sarken: leaves of mint against a worn wall (Default)

[personal profile] sarken 2012-10-17 10:08 am (UTC)(link)
Probably the easiest way to killfile an author would be to do something like this: var blackList = new Array('href="/users/USERNAME/pseuds/PSEUD" class="login author"', 'another killfile tag');

You have to include the pseuds/PSEUD part even if the person doesn't have a pseud -- it's looking for an exact match on the HTML, and the archive always uses the full users/USERNAME/pseuds/PSEUD path.
montanaharper: close-up of helena montana on a map (Default)

[personal profile] montanaharper 2012-10-18 06:20 am (UTC)(link)
Thank you!

I kind of kludged together a similar (maybe? I don't really know what the code is doing) solution that involved just adding 'pseuds/[authorname1]', 'pseuds/[authorname2]' etc. to the original blacklist, and that seems to work okay.
sarken: leaves of mint against a worn wall (Default)

[personal profile] sarken 2012-10-18 06:22 am (UTC)(link)
Ah, yes, that's the same thing! I always forget that the 'for so-and-so' part links to the recipient's gift page.