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+)
vickyblueeyez: (Default)

[personal profile] vickyblueeyez 2012-06-29 11:41 pm (UTC)(link)
ot but I would love this for LJ, DW and Pinterest. The creator of tumblr savior has one for weheartit only for firefox. Sadly it's stopped working for me recently but the coding for it might help someone. http://bjornstar.com/post/61391670/how-to-setup-weheartit-savior-if-you-dont-have
sarken: leaves of mint against a worn wall (Default)

[personal profile] sarken 2012-06-30 04:03 am (UTC)(link)
That was super helpful! I'm...not really sure how Userscripts and Greasemonkey and such work since I use Safari, but I edited the script and made Blurb Blocker.
Edited (Adding a link is easier) 2012-06-30 05:30 (UTC)
vickyblueeyez: (Default)

[personal profile] vickyblueeyez 2012-06-30 07:01 am (UTC)(link)
There is also a script for LJ where it's almost like yours. I'm just showing to show that there is a demand for it. Sadly it hasn't been developed in years but people still want it. http://dtm.livejournal.com/26478.html

Since your script is FF only, I'll have to test it later. Thanks in advance for this and good luck.

Oh, can I talk about this on tumblr? A lot follow the Ao3 tag. They could test it too.
sarken: leaves of mint against a worn wall (Default)

[personal profile] sarken 2012-06-30 07:13 am (UTC)(link)
It works in Chrome, too, if you have TamperMonkey installed.

Sure, you can share it on Tumblr!
vickyblueeyez: (Default)

[personal profile] vickyblueeyez 2012-06-30 07:38 am (UTC)(link)
tampermonkey? never heard of that one. Will that let me use greasefox scripts in chrome?
sarken: leaves of mint against a worn wall (Default)

[personal profile] sarken 2012-06-30 07:41 am (UTC)(link)
I honestly have no idea -- I just launched Chrome, Googled "Greasemonkey for Chrome," and installed the first non-suspicious thing that came up about ten 30 minutes ago. :)
Edited (Time flies) 2012-06-30 07:43 (UTC)

[personal profile] ainyre 2012-07-13 07:24 pm (UTC)(link)
Thanks for making it! Now I'm a much, much happier AO3 user.
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.
shaggy: (Default)

Blurb Blocker Broken?

[personal profile] shaggy 2014-07-22 11:34 pm (UTC)(link)
Hi, sarken. Sorry to stalk you on a 2 year old posting, but your script stopped working on 2 separate computers in the past week or so, and I'm wondering if you're away of any problem, or better yet, a fix?

Thanks, btw, for making my fandom experience so much nicer. Really love that script and would hate to see it go away. :))
sarken: leaves of mint against a worn wall (Default)

Re: Blurb Blocker Broken?

[personal profile] sarken 2014-07-22 11:56 pm (UTC)(link)
Hi!

Unfortunately, I'm having trouble reproducing any problems with Blurb Blocker. Is it happening on a specific page? Which browser are you using? What terms are you trying to black list/white list, and which version of Blurb Blocker are you using (the version is listed at the top of the script)?

Here's the code for version 1.4, the latest version, since userscripts is down.
shaggy: (Default)

Re: Blurb Blocker Broken?

[personal profile] shaggy 2014-09-30 12:34 am (UTC)(link)
Hey, sorry to reply here so late - I never got a DW comment notification and was just randomly checking back to see if anyone else reported the same problem. Glad to hear it's not broken for everyone, but I'm really stumped about why it's a problem for me.

I check the following AO3 page daily: http://archiveofourown.org/works?utf8=%E2%9C%93&work_search[sort_column]=revised_at&work_search[other_tag_names]=&work_search[query]=&work_search[language_id]=1&work_search[complete]=0&work_search[complete]=1&commit=Sort+and+Filter&tag_id=One+Direction+%28Band%29

It's pretty heavily filtered, but I don't think I added any additional filters right before the script broke for me.

I used the script on a MacBook Air (daily) and on an iMac (very infrequently), and the script broke on both machines within a few days of each other. I run the most current version of Firefox on both.

I did just update the Blurb Blocker script and pasted in my blacklist, and it's still not working. I will go through my blacklist entry by entry to make sure there aren't any funky characters included, but can't see how I would have made the same mistake in both lists when it worked fine for me for ages.

Ugh, sorry to be a pain, but I'm dying to get this functionality back if possible.
sarken: leaves of mint against a worn wall (Default)

Re: Blurb Blocker Broken?

[personal profile] sarken 2014-10-03 09:37 am (UTC)(link)
Can you paste the contents of your blacklist here? Or try temporarily replacing it with something simple, like var blackList = new Array('explicit', 'mature'); and seeing if it works? (I ran that on the page you linked, and it worked for me in Firefox 32.0.3 on Mac OS X 10.9.5.)

If it still doesn't work, are you using any other scripts or extensions in your browser? You could try disabling them to see if there's a conflict.

I'm sorry it's not working! I wish I knew why.

Re: Blurb Blocker Broken?

(Anonymous) 2014-10-04 12:12 am (UTC)(link)
LOL my blacklist is 4 pages long in Word, so I won't post here. I did try replacing with the blacklist items that you suggested, and it's still not working. I'll test disabling my other extensions next. Thanks for your help!

Re: Blurb Blocker Broken?

(Anonymous) 2014-09-30 12:35 am (UTC)(link)
Also, I only use the blacklist, and it's all usernames.
shaggy: (Default)

Re: Blurb Blocker Broken?

[personal profile] shaggy 2014-10-11 01:46 am (UTC)(link)
Holy shit, I finally figured it out. Apparently OS X Mavericks sets system and TextEdit preferences to use smart quotes & dashes. So my script worked fine when I updated, until I added new blacklist items. If anyone else has this problem, here's a post on how to disable:

http://scttdvd.com/post/65242711516/how-to-get-rid-of-smart-quotes-osx-mavericks
vickyblueeyez: (Default)

testing it

[personal profile] vickyblueeyez 2012-06-30 05:05 pm (UTC)(link)
I installed it on chrome via tampermonkey, put something random in like 'sherlock bbc', went to the sherlock bbc tag and still saw stuff. Even after refreshing Ao3 and Chrome, still can see things. Maybe I did something wrong. I took out 'explicit' and put in 'sherlock bbc'
sarken: leaves of mint against a worn wall (Default)

Re: testing it

[personal profile] sarken 2012-07-02 02:53 am (UTC)(link)
Can you show me exactly what your black and white list lines look like?
vickyblueeyez: (Default)

Re: testing it

[personal profile] vickyblueeyez 2012-07-02 03:48 am (UTC)(link)
function checkBlurb() {
var whiteList = new Array('general audiences');
var blackList = new Array('sherlock bbc',);
var whitelisted = false;
var blacklisted = false;
sarken: leaves of mint against a worn wall (Default)

Re: testing it

[personal profile] sarken 2012-07-02 04:06 am (UTC)(link)
Most of the Sherlock works on the Archive aren't tagged with 'Sherlock BBC,' so I think that's part of the problem -- you should use 'sherlock (tv)' instead. Also, you'll need to remove the comma at the end if you're only using one term.

Since 'general audiences' is in your whitelist, you'll still see Sherlock works with a General Audiences rating. If you don't want to see then, the whiteList Array should be totally blank -- no quotation marks, no spaces, just the two parentheses.
vickyblueeyez: (Default)

Re: testing it

[personal profile] vickyblueeyez 2012-07-02 04:52 am (UTC)(link)
I'm still getting things

function checkBlurb() {
var whiteList = new Array();
var blackList = new Array('Sherlock(TV)','BBC Sherlock - Fandom');
var whitelisted = false;
var blacklisted = false;
sarken: leaves of mint against a worn wall (Default)

Re: testing it

[personal profile] sarken 2012-07-02 05:13 am (UTC)(link)
Ah! Lowercase should fix that (and you might want to make it 'sherlock (tv)' with a space, or else that stuff will get through).
vickyblueeyez: (Default)

Re: testing it

[personal profile] vickyblueeyez 2012-07-02 10:30 am (UTC)(link)
still the same

function checkBlurb() {
var whiteList = new Array();
var blackList = new Array('sherlock (tv)', 'BBC Sherlock - Fandom');
var whitelisted = false;
var blacklisted = false;
sarken: leaves of mint against a worn wall (Default)

Re: testing it

[personal profile] sarken 2012-07-02 07:17 pm (UTC)(link)
I meant both terms -- if you're using version 1 of the script, this will only block 'sherlock (tv)' and not 'BBC Sherlock - Fandom.' However, I updated the script to version 1.1, so capitalization no longer matters. (Tampermonkey updated automatically for me, which means I had to put my terms back in.)

Aside from that, I'm not sure what to tell you, since that effectively blocks everything tagged 'sherlock (tv)' for me with version 1 of the script, and everything tagged 'sherlock (tv)' or 'BBC Sherlock - Fandom' with version 1.1. If the script is enabled, the circle next to its name will be green in the little TamperMonkey menu.
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. :)
pocketmouse: pocketmouse default icon: abstract blue (Default)

[personal profile] pocketmouse 2012-07-16 01:45 pm (UTC)(link)
Right, I can't get this to work on Firefox either. Has someone gotten it to? I can't tell from the comments.

ETA: OK, it seems to work once I restart my browser. Which is more than Greasemonkey usually requires, but it works now. Thanks!

ETA2: No, I lied, it worked on one page then stopped working.
Edited 2012-07-16 14:46 (UTC)
hl: Drawing of Ada Lovelace as a young child, reading a Calculus book (Default)

[personal profile] hl 2012-07-21 03:05 am (UTC)(link)
I've managed to get it working -- I left instructions (with exactly what I did) farther up for people who don't usually use userscripts. The most common error I can find (i.e. happened to me and a couple of other people) happens when trying to avoid whitelisting anything, by leaving the line:

var whiteList = new Array('');

instead of the correct:

var whiteList = new Array();

(I.e. leaving no quote marks inside the array.)

But if you want me to test your particular combination, I can try!
pocketmouse: pocketmouse default icon: abstract blue (Default)

[personal profile] pocketmouse 2012-07-21 05:43 am (UTC)(link)
No, I've got that. I read the directions you already had in the comments.

I've got this:

function checkBlurb() {
var whiteList = new Array();
var blackList = new Array('Loki/Tony Stark', 'Steve Rogers/Thor', 'Podfic');
var whitelisted = false;
var blacklisted = false;

Maybe it's successfully blocking things that have all three of the tags, but it's not blocking things that have the individual tags.
hl: Drawing of Ada Lovelace as a young child, reading a Calculus book (Default)

[personal profile] hl 2012-07-21 05:49 am (UTC)(link)
Very strange, can't find why! I just tried your terms just in case and it works for me.

Maybe it's the same problem than the person further up...
pocketmouse: pocketmouse default icon: abstract blue (Default)

[personal profile] pocketmouse 2012-07-21 05:55 am (UTC)(link)
Maybe some other add-on is interfering with it. I'm not sure how that would work, but if that's what it is, I don't feel like mucking around with all my add-ons enough to figure it out.
hl: Drawing of Ada Lovelace as a young child, reading a Calculus book (Default)

[personal profile] hl 2012-07-21 05:56 am (UTC)(link)
Yeah, I don't know enough about scripts to know what could be even interfering with it.
pocketmouse: pocketmouse default icon: abstract blue (Default)

[personal profile] pocketmouse 2012-08-23 03:19 am (UTC)(link)
I figured it out! It doesn't work on https. Of course.
hl: Drawing of Ada Lovelace as a young child, reading a Calculus book (Default)

[personal profile] hl 2012-08-23 03:22 am (UTC)(link)
Ohh, given all the issue I've had with https everywhere in the past, I should've thought of that. Thanks for letting me know!
pocketmouse: pocketmouse default icon: abstract blue (Default)

[personal profile] pocketmouse 2012-08-23 03:29 am (UTC)(link)
Yeah, I never would've figured it out if the AO3 hadn't had to turn off https.
montanaharper: close-up of helena montana on a map (Default)

[personal profile] montanaharper 2012-10-06 04:38 pm (UTC)(link)
Thank you for figuring that out! I was having the same problem and was tearing my hair out.
tuff_ghost: (Default)

[personal profile] tuff_ghost 2012-11-17 08:01 am (UTC)(link)
Hi, there's a tumblr savior clone here
http://ao3some.dreamwidth.org/10934.html

also a script for saving filters, if you'd rather have your blacklisted stuff filtered out rather than hidden.