<< Back to General Forum   Search

Posts 1 - 30 of 35   1  2  Next >>   
Spammers be gone!!: 4/5/2015 10:49:30


Master of the Dead 
Level 63
Report
Inspired by Kryzchu and Muli's recent user-scripts, I've come up with a script to reduce some of the clutter on the forums.

Features

[1] Provides an ignore check box for every thread on every Sub-Forum. Any thread marked as "ignore" will be hidden in all your future sessions.
(This only alters your view. So everyone can choose what they wish to see.)

[2] Click "Undo All" to reset all ignored threads. The forum will look as it is served by Warlight.


Prerequisites

Install the following based on your browser

Tampermonkey in Chrome
https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en
Greasemonkey in Firefox
https://addons.mozilla.org/de/firefox/addon/greasemonkey/


How do I get it?

You can install the script present here.
https://greasyfork.org/en/scripts/8999-spammers-be-gone


Other

- If Fizzer publishes a major update to the forums, this may break.
- It only works on sub-forums. You will not find this feature under "All Posts"
- This script has only been tested on the later versions of Mozilla Firefox and Google Chrome.
- If you would like to contribute to help improve this, let me know. I have a few ideas already :)

Edited 4/5/2015 10:56:33
Spammers be gone!!: 4/5/2015 11:19:01


Odin 
Level 59
Report
Cool script!

Undoing ignores could be improved. Now it either doens't let me undo ignores, or it undoes all of them simultaneously, as ignored threads simply vanish alongside with their checkbox.

Edited 4/5/2015 11:21:10
Spammers be gone!!: 4/5/2015 11:56:22


Legacy 
Level 56
Report
Fantastic work!!
Spammers be gone!!: 4/5/2015 12:24:01


Krzysztof 
Level 66
Report
Great. Marking users as ignored would also be cool :)
Spammers be gone!!: 4/5/2015 12:35:30


Benjamin628 
Level 59
Report
^ +1
Spammers be gone!!: 4/5/2015 12:41:58


Thomas 633
Level 56
Report
good idea
will it shut you all up about me?
Spammers be gone!!: 4/5/2015 13:16:14


Master of the Dead 
Level 63
Report
@Odin
I'm not so good at javascript(learnt most of it yesterday :P). I tried playing around with it, but couldn't do better. If anyone with js knowledge has ideas on how to better the UndoIgnore(), please advise.


@Kryzchu
It is definitely the next thing on my mind :)
If you notice the call to isForumPostPage(), I even left a TODO comment :P


@Thomas
Those who don't like your posts, will soon forget you ever existed ;)

Edited 4/5/2015 13:17:14
Spammers be gone!!: 4/5/2015 13:17:20


Thomas 633
Level 56
Report
sweet relief
Spammers be gone!!: 4/5/2015 13:43:25


Odin 
Level 59
Report
Then you know more about js than me :)

I don't exactly understand how the functions work, eg. show() or hide() so hard to say much. They look like js standard library functions.

What I can say is that Undo All doens't work for me at all now. It worked once or twice at the beginning, but now my 'general' subforum's 1st and 2nd pages are blank.

I would suggest that threads only get ignored in the 'all' forum. Subforums would show ignored posts with their checkboxes.

Edited 4/5/2015 13:45:33
Spammers be gone!!: 4/5/2015 17:35:23


Nex
Level 60
Report
I'm installing this. Some people just aren't getting the hint.

Thanks, Deadman!
Spammers be gone!!: 4/5/2015 18:51:46


AWESOMEGUY 
Level 63
Report
Awesome idea, though the only thing that I used it for was to remove all the off-topic forum threads; if those were deleted, I suspect people wouldn't have to resort to using this to ignore the countless (pointless) threads that have degenerated the forums. Either way, great job!
Spammers be gone!!: 4/5/2015 19:38:58

DanWL 
Level 62
Report
It works verry well, but I have come up with some ways to improve it:

  • Allow it to work on /Forum/Forum.
  • Hide forum threads that are/were created by blacklisted players.
  • Hide forum threads by forum genre.
  • Ability to hide threads by keywords.


Edited 4/5/2015 19:44:22
Spammers be gone!!: 4/5/2015 22:55:52


Krzysztof 
Level 66
Report
About "Undo ignore" - it could work like that:
- replace checkboxes with 'ignore'/'unignore' button
- 'undo all' could be replaced with 'show ignored' - clicking would show ignored threads (without altering their status) so user could restore them with 'unignore' button

btw, why one userscript embedded into another?

Edited 4/5/2015 22:58:29
Spammers be gone!!: 4/7/2015 03:12:21


Des {TJC}
Level 58
Report
+1
Spammers be gone!!: 4/7/2015 20:57:14


Master Jz 
Level 61
Report
I'd like to be able to block images and avatars for some users, without blocking the text. If I get some spare time, I would be able to write some js to do that.
Spammers be gone!!: 4/11/2015 12:32:13


Benjamin628 
Level 59
Report
The "All posts" tab does not have an ignore option.
Spammers be gone!!: 4/11/2015 16:12:40


{rp} Julius Caesar 
Level 46
Report
Thanks mate! Now I finally can ignore the 90% of the forum that is bullcrap!
Spammers be gone!!: 4/12/2015 20:02:43


ChrisCMU 
Level 60
Report
Spam? Where? Oh, you mean this first page of All Forums where there is so much dealing with bigotry it is pushed to the second page?:

About Homosexuality by Tyrion Lannister
Incest: Should It Be Legal? by Tyrion Lannister
Why Homosexuality is Wrong (in a nutshell) by Tyrion Lannister
Homosexuality and other words that start with H by Ruth

the 2v2 lightweight belt (elite class) by Thomas 633
Should Polygamy Be Legal? by Tyrion Lannister
The LGBT Problem by [Falcon] Colonel Harthacanute

Game of Thrones Season 5: first 4 episodes leaked by Sephiroth
Woah... by Pulsey
Real Time ladder: Something not working and boring by Angry Panda
Map of the week discussion: Week 14 by Fizzer
Capital Punishment - International by [Falcon] Colonel Harthacanute
Making my first map. Time for help. by Red Army
DIPLOMACY GAMES - BIG PROBLEM by JS0223
Homosexuality: a sin and a crime by TALIBAN
Diplomacy rules or diplomacy settings? by Urfang
A few things that are odd about warligth. by TBest
CLOT: A new Real Time Ladder by Ryiro
Bigoted Comedy by 125ch209
Homophobia/Immaturity In Warlight by Austin Williams

Large World Map 1939 by zxctycxz
Bane Brought This Up... by Takeshi (The matter)
Just How Bad Is The Average Player? by Get On My Level
Heal/Hurt Warlight Players by MysteryManBall
Initiative: Purify Warlight of Dirty Homophobes by The Lord


I didn't realize this had become the Fox News message board.

Edited 4/12/2015 20:03:48
Spammers be gone!!: 4/12/2015 20:15:51

(retired)
Level 58
Report
Lol Chris, indeed this is terrifying... What is fucking happening in this forum? It is time to hire a moderator or forum admin...
Spammers be gone!!: 4/12/2015 21:35:12


125ch209 
Level 58
Report
Not sure my Bigoted comedy thread should be treated as spamming but whatever
Spammers be gone!!: 4/14/2015 16:43:59


Master of the Dead 
Level 63
Report
I updated the script to enable this feature on the "All Forum Posts" page as well, since a lot of folks seem to use that page.

Let me know if you have any issues.
Spammers be gone!!: 4/14/2015 17:01:58


125ch209 
Level 58
Report
works well, thanks
Spammers be gone!!: 4/14/2015 17:08:21


Odin 
Level 59
Report
Very nice, now my script is working as it should. Even though there are clear updates after 5th of April, the Fork page says the last update is from back then...
Spammers be gone!!: 4/14/2015 17:25:27


Master of the Dead 
Level 63
Report
@Odin
There was a master script(say A), which referenced another script(say B).

All the changes are made in script B. You are looking at the master and it shows no changes.

I adopted this approach because I envisioned all user scripts made on Warlight to eventually be referenced in the master(A) and a user needs to only get one script(probably I'm being too ambitious here :P)


if you want to see the changes which are being made, you can look at
https://greasyfork.org/en/scripts/8981-spammers-be-gone
Spammers be gone!!: 4/14/2015 17:37:58

DanWL 
Level 62
Report
For some reason, this doesn't apply to sub forum pages.
Edit: is it a choice between having the page with all the forum pages or individual sub forums?
Edit 2: it works on sub forums now.

Edited 4/14/2015 17:41:03
Spammers be gone!!: 4/14/2015 17:45:19


Master of the Dead 
Level 63
Report
"For some reason, this doesn't apply to sub forum pages."

Do you not see the option to hide threads? If so, which browser are you on?
(I would prefer to take this discussion offline, so please PM me if you don't mind)



"is it a choice between having the page with all the forum pages or individual sub forums? "

This feature should be available on a sub-forum page(any thread under "General", "Off-Topic" etc) as well as the "All Forum Posts" page (https://www.warlight.net/Forum/Forum)
Spammers be gone!!: 4/14/2015 18:07:58

DanWL 
Level 62
Report
"For some reason, this doesn't apply to sub forum pages."

See Edit 2.
Spammers be gone!!: 4/14/2015 21:27:46


ChrisCMU 
Level 60
Report
OK, I installed it and it is pretty cool, but I have a couple questions:

1) It does not show the threads you mark, but it would be nice if the page still loaded the same number of results. I am guessing this would need to be something Fizzer does on his end rather than this add on.

2) I am not sure anyone would ever want to "Undo All" and have to check mark all those threads again. I'd rather have a "Show All" button that ignores the filters temporarily.

Edited 4/14/2015 21:28:05
Spammers be gone!!: 4/14/2015 23:20:54


Beren • apex 
Level 63
Report
@Chris, #1 is not possible via this client-side scripting, unfortunately. I agree about #2, though.

Edited 4/14/2015 23:21:11
Spammers be gone!!: 4/15/2015 04:15:39


Master of the Dead 
Level 63
Report
"1) It does not show the threads you mark, but it would be nice if the page still loaded the same number of results. I am guessing this would need to be something Fizzer does on his end rather than this add on."


This can only be done client side by parsing all the result pages( about 10-15 urls) and constructing new pages. As you can imagine, this is a very expensive operation and I'd rather not adopt this approach.



2) I am not sure anyone would ever want to "Undo All" and have to check mark all those threads again. I'd rather have a "Show All" button that ignores the filters temporarily.


I agree.. I originally implemented this button to provide a cheap way to undo a mistake. I will implement what you suggest once I find some time.
Posts 1 - 30 of 35   1  2  Next >>