Greasy Fork

ao3 personal hellban

Hide comments and kudos from specified users and/or guests

< 脚本ao3 personal hellban的反馈

评价:好评 - 脚本运行良好

§
发表于:2015-05-26

Not working for me

/**** CONFIG ********************/
window.ao3hellban = {

showToggle: true,
// set to false if you don't want to see a count of hidden comments & toggle ability

blacklist: [
// 'GUEST:*', // uncomment this if you want to block comments by all guest users
// '##GUEST:Bender', // uncomment if you want to block guest user who signs as 'Bender'
'Sakura', // block an archive user called 'Sakura'
'Jar Jar Binks'
]
/********************************/

I removed the # symbols from "Guest" and even added the guest name, but the comments from this person, and other "guest", still show up. Am I doing something wrong? I just don't want to see the spam comments that is on every new work on a03.

tuff作者
§
发表于:2015-05-26

Global guest ban was working, but you should not have removed the ##. That is part of the string and not a symbol for comments - "//" at the beginning of the line is what you need to remove to uncomment stuff.

Named guest ban was broken but is fixed now, grab the latest version.

§
发表于:2015-05-27

Awesome!!! That works for blocking all guest comments! Thank you so much!

So if I wanted to block a specific guest name (say "Sakura") I would remove the "//" from "'##GUEST:Bender'" and changed Bender to Sakura?

/**** CONFIG ********************/
window.ao3hellban = {

showToggle: true,
// set to false if you don't want to see a count of hidden comments & toggle ability

blacklist: [
'##GUEST:*', // uncomment this if you want to block comments by all guest users
// '##GUEST:Bender', // uncomment if you want to block guest user who signs as 'Bender'
'Dobby', // block an archive user called 'Dobby'
'Jar Jar Binks'
]

tuff作者
§
发表于:2015-05-27

Yes. You can add additional "##GUEST:whoever" lines too

§
发表于:2015-05-27
编辑于:2015-05-27

Hmm, I tried to see if I could block an individual person, but it doesn't seem to work.

Am I doing something wrong?

Thanks again for your help!

/**** CONFIG ********************/
window.ao3hellban = {

showToggle: true,
// set to false if you don't want to see a count of hidden comments & toggle ability

blacklist: [
// '##GUEST:*', // uncomment this if you want to block comments by all guest users
'##GUEST:Sakura’, // uncomment if you want to block guest user who signs as ‘Sakura’
'Dobby', // block an archive user called 'Dobby'
'Jar Jar Binks'
]
/********************************/

tuff作者
§
发表于:2015-05-27

I have tested it with "##GUEST:Sakura" on a page that had comments by a guest called Sakura, and they were blocked. My config block looked the same as yours.

I did find that @includes was missing a line for the /chapters* path, so I have added that - please update. If you were testing on pages under /chapters, then the script was never enabled on those pages, and that would be why your case was failing.

If your test page isn't under /chapters, but the script is still disabled, please let me know the page's path (full URL not necessary). There may be other places where comments appear which are also missing from @includes.

If the script is enabled but the case is still failing, then I don't think I can help further without some new info that would let me reproduce the problem. You could try to give me a real page URL. There doesn't seem to be any issue with the name "Sakura" in particular so you could pick a random name and random page where you can reproduce the problem and give me that, if you want to keep things anonymous.

§
发表于:2015-05-27

So I'm currently testing it on this page (http://archiveofourown.org/works/1991601), it's always on full content view, and entering any individual that's in the comments doesn't work. I even tried the people that were a03 users signed on and it didn't work.

Blocking all guest comments work and I can show which comments are blocked afterwards too. I have the download buttons and saved filters script installed also, I don't think that could be interfering with it though.

Can you copy/paste your config with the sakura name it there? Maybe I'm deleting something or adding something that I'm not supposed to.

Thanks again for your work and help!

发表回复

登录以发表回复。