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+)
hl: Drawing of Ada Lovelace as a young child, reading a Calculus book (Default)

[personal profile] hl 2012-07-06 07:29 am (UTC)(link)
Leaving instructions for people who haven't used userscripts before.

For Firefox users:
1) Click on Tools
2) Click on Add-ons
3) Enter 'Greasemonkey' into the search box at the upper right or go here: http://addons.mozilla.org/en-US/firefox/addon/greasemonkey
4) Install the Greasemonkey plug-in (it should be the first thing to come up in the search)
5) Restart your browser, as requested
6) Go to http://userscripts.org/scripts/show/137359
7) Click on the green 'Install' button at the upper right
8) Click 'install' in the box that comes up

The script will currently hide all blurbs that:
Contain either the word 'explicit' or 'mature', except those that also contain the words 'general audiences'.

You can edit the script to hide different things this way:
1) Click on the Greasemonkey menu at the upper right of your browser (a monkey face)
2) Click on Manage Userscripts
3) Click 'Preferences' in the chosen userscript (called Blurb Blocker 1.1)
4) Click on the wide button across the bottom labeled 'Edit this userscript'
5) Choose a text-editing program with which to edit it (such as TextEdit or Notepad)
6) Edit the script and save it. It should be ready to go!

Specific instructions for how to edit the script to block different things:

Anything you include in the following line will be terms that, if they appear in a blurb, will cause the script to block that blurb:

var blackList = new Array('TO EXCLUDE', 'TO EXCLUDE');

For example, if you want to hide the blurbs of works by the author "testy" and also works that involve kittens in some way, you might use

var blacklist = new Array('testy', 'kittens');

You can add more than two search criteria, and these can be titles, author names, any tags, and any terms at all. Remember that blurbs will be blocked no matter where in the blurb the term appears -- so if an author is thanked in the summary by a friend, and you're blocking that author name, then that blurb will be blocked for you.

Anything that appears on the following line will make the blurb show up anyway, even if it also has one of the 'to exclude' terms:

var whiteList = new Array('TO INCLUDE');

You can leave this array blank if there are no terms you want to use to override the block. To leave it blank, leave it looking like the following:

var whiteList = new Array();

For Chrome users, the procedure is very similar, except using Tampermonkey (https://chrome.google.com/webstore/detail/dhdgffkkebhmkfjojejmpbldmpobfkfo). Tampermonkey comes with its own editor, so it may be even easier.
Edited (added link and corrected one rather big error // added link to Tampermonkey) 2012-07-09 02:34 (UTC)

[personal profile] ainyre 2012-07-13 07:25 pm (UTC)(link)
Thank you so much for the detailed instructions! They were really helpful.
hl: Drawing of Ada Lovelace as a young child, reading a Calculus book (Default)

:D

[personal profile] hl 2012-07-16 03:04 am (UTC)(link)
I'm glad it was helpful!
gojira86: A photo manipulation of me, with my hair combed over my face, wearing sunglasses to hold the hair in place. (Default)

[personal profile] gojira86 2015-10-04 10:23 pm (UTC)(link)
userscripts.org is pretty much dead. Is the script available anywhere else?
gojira86: A photo manipulation of me, with my hair combed over my face, wearing sunglasses to hold the hair in place. (Default)

[personal profile] gojira86 2015-10-05 06:55 pm (UTC)(link)
Thanks. :)