Play
Multi-Player
Coins
Community
Settings
Help
Community   Maps   Forum   Mail   Ladders   Clans   Recent Games
Sign In | Sign Up
<< Back to Programming Forum   

Posts 1 - 30 of 44   1  2  Next >>   
Dan's Userscript (Hide Threads and Replies by Poster): 12/7/2016 23:25:22

DanWL 
Level 61
Report
Installation

You don't need admin permissions or need to pay anything to install this.

What you need


Afterwards the script can be installed at https://greasyfork.org/en/scripts/25447-hide-threads-and-replies-by-poster.

Current public version: 1.8.3.3. See change history at https://greasyfork.org/en/scripts/25447-hide-threads-and-replies-by-poster/versions.

Features

  • Hides threads by poster (with thread exceptions).
  • Hides threads and replies by players have have a blank name.
  • Hides blank posts.
  • Hides all-caps threads (they would be deleted anyway).
  • Ability to hide Map Of The Week threads.
  • Creates jump to non-spam links when there's forum spam (subject to if I'm active).
  • Makes invisible player names become visible.
  • Makes invisible subjects become visible.
  • Makes invisible links globally become visible.
  • Ability to replace the word 'blacklist' with 'Personal Dungeon'.

Currently working on

  • Bug fixes and slight perfections.

Instructions

How to say who's threads and replies should or should no longer be hidden
(This is saved in your local storage.)
Go to a sub-forum or the view all forum posts or mail or clan forum and click the Hide or Unhide buttons or click on the Dan's Userscript button in the top right > OK > OK > *change player names* > OK.

How to set, modify and remove thread exceptions
(This is saved in your local storage.)
Go to a sub-forum or the view all forum posts or mail or clan forum and click the Add or Remove buttons.

How to view which players threads and replies get hidden
See http://makeagif.com/tXsNp7.
Description:

  • Click on the ▼.
  • Click on Dan's Userscript.
  • An alert message then appears displaying the names of the players that threads and replies are getting hidden by.


How to hide / no longer hide Map Of The Week threads
(Your MOTW preference is saved in your local storage.)
When you first visit a page, you are notified if you want to hide or not hide MOTW threads.

  • Click on the ▼ in the top right bar that displays your name, level, coins etc.
  • Click on Dan's Userscript.
  • Press OK.
  • Press OK to change your MOTW preference, cancel to not change it.
  • Type yes to hide MOTW threads; no to no longer hide them.
  • Click OK.


How to not show / show longer hide blank posts dialogue
When you load a thread and there is a blank posts, you get informed how much blank posts have been hidden...
(This preference is saved in your local storage.)
When you first visit a page, you are notified if you want to show or not show the blank posts dialogue.

  • Click on the ▼ in the top right bar that displays your name, level, coins etc.
  • Click on Dan's Userscript.
  • Press OK.
  • Press Cancel.
  • Press OK to change your blank posts dialogue preference, cancel to not change it.
  • Type yes to hide the blank posts dialogue; no to show it.
  • Click OK.


How to replace or not replace the word 'blacklist' with 'Personal Dungeon'.

  • Click on the ▼ in the top right bar that displays your name, level, coins etc.
  • Click on Dan's Userscript.
  • Press OK.
  • Press Cancel.
  • Press Cancel.
  • Press OK.
  • Press OK.

Note
You can choose to show and hide the threads and replies at any point. See the button that is to the left of the posts x - z of x text that is located near the bottom of the All Forum Posts page / Clan forum / Mail / threads etc.

When there is spam, there will be a jump to non-spam threads link. These links will be disabled when the spam threads are deleted. Also, Map Of The Week threads aren't hidden by default. Threads are hidden by players that have blank name (that player is like to be a spammer).

CLEARING YOUR LOCAL STORAGE WILL REMOVE ALL REQUIRED SAVED DATA.

DO NOT EDIT THE SOURCE CODE AS YOU MAY PREVENT FEATURES FROM WORKING!

I (DanWL) DO NOT WHAT THIS SCRIPT ('Hide Threads and Replies by Poster') TO BE REDISTRIBUTED ELSEWHERE ON THE INTERNET OR ANYWHERE ELSE UNLESS MY PERMISSION IS OBTAINED AND THAT YOU ARE GRANTED PERMISSION TO DO SO.


Edited 3/13/2017 12:29:49
Dan's Userscript (Hide Threads and Replies by Poster): 12/8/2016 08:11:54


Sherlock Holmes
Level 55
Report
I use ignore option mostly, but this is very useful :)
Hope it will remove the spam attacks, if it is going to happen again :)
Dan's Userscript (Hide Threads and Replies by Poster): 12/8/2016 09:55:17

DanWL 
Level 61
Report
It would be a much higher file size if I made it filter out spam. Thanks for feedback :)
Dan's Userscript (Hide Threads and Replies by Poster): 12/8/2016 17:50:44

DanWL 
Level 61
Report
Going to update this in 6 hours from now. Updates will replace the list of players that you want to hide posts by, so you might want to make a copy of them and add them in after the update has happened.

Updates:

  • Ability to hide posts for up to 30 players.
  • Written the code a bit more efficiently.
  • Bug fixes.
  • Added support for Mail.
  • Added support for Clan Forum.


Edited 12/8/2016 23:50:18
Dan's Userscript (Hide Threads and Replies by Poster): 12/10/2016 18:01:44


FDR 
Level 46
Report
Does it block shredtail's spam?
Dan's Userscript (Hide Threads and Replies by Poster): 12/10/2016 18:05:46

DanWL 
Level 61
Report
It is possible hide his posts.

Edit: update to hide/show hidden thread button coming within 6 hours.

Edited 12/10/2016 18:06:55
Dan's Userscript (Hide Threads and Replies by Poster): 12/11/2016 23:23:55

DanWL 
Level 61
Report
Small update:

  • Tidied appearance of who's threads are being hidden.
  • Made the show/hide button's text change based on amount of threads hidden.
  • Fixed bug that cause the wrong threads to be hidden on Mail and Clan forum.
Dan's Userscript (Hide Threads and Replies by Poster): 12/17/2016 11:58:16


Belgian Gentleman 
Level 56
Report
You're such a devious guy DanWales while clever at the same time. You finally developed an extension that could censor anyone's opinion or information. A typical albility preserved for mods only. When I first installed it, I was so excited to use it. I was hoping it would give the off-topic a huge cleansing. And effectively it did succeed in doing so. No more spam, no more worries, or so I thought. Immediately upon opening my mailbox, my eyes didn't foresaw my whole mailbox to be empty. Could this be... ? Yes it was. You did put my name on the list. The list where you could hide threads of any user you want, and mail threads as well. Perhaps deception drove to to your hysteria of putting my name on that censor list. A hatred so big.. I wonder if it will last any longer

But cheers. You've put an amazing effort into coding this and I'm not denying it. I feel honoured to be your source of inspiration, even one year after the Cat Attack was sent.
Dan's Userscript (Hide Threads and Replies by Poster): 12/17/2016 12:16:31

DanWL 
Level 61
Report
Thanks. I worked on this independently.
In the next update, I'll remove your name from the list. I'll also find a way to hide people's posts.
Feel free to suggest updates.
- downvoted post by Жұқтыру
Dan's Userscript (Hide Threads and Replies by Poster): 12/17/2016 18:29:57


MightySpeck (a Koala) 
Level 58
Report
what about the clan league D thread? it was made by tabby.
Dan's Userscript (Hide Threads and Replies by Poster): 12/17/2016 18:47:27


Japanball
Level 56
Report
DanWL you are epic for making this! Thank you!
Dan's Userscript (Hide Threads and Replies by Poster): 12/18/2016 08:06:31


Sherlock Holmes
Level 55
Report
what about the clan league D thread? it was made by tabby.

Sadly it is hidden.
Dan's Userscript (Hide Threads and Replies by Poster): 12/18/2016 13:54:43

DanWL 
Level 61
Report
^ Just press the show X hidden threads button. Alternatively, don't hide threads by him.
Dan's Userscript (Hide Threads and Replies by Poster): 12/20/2016 18:52:25

DanWL 
Level 61
Report
Did some updates:

  • Fixed bug that caused the Dan's Userscript text to not seen when Dark Theme isn't enabled.
  • Reduced script's size by over 53%.
  • When hidden threads are shown, they have a strike through them.


I have tried hiding posts by the people who you don't what to see threads created by, but sometimes the wrong post is hidden. As soon as I fix that, I'll allow posts to be hidden.

Edited 12/23/2016 21:52:10
Dan's Userscript (Hide Threads and Replies by Poster): 12/23/2016 21:53:56

DanWL 
Level 61
Report
On the 3rd of January, I'll release an update that'll fix these bugs:

  • Trying to hide threads even though there aren't any threads to be hidden.
  • Bottom mail / clan forum thread not being hidden if it's posted by someone who you want to hide posts by.
  • Bug fixes for the last page of the sub-forum/clan forum/mail.

New features that might be added:

  • Having thread exceptions (to prevent Clan League threads, Roleplay Clan League thread etc. from being hidden).
  • Getting threads with all-caps subjects to become hidden.
  • Hide blank posts.
  • Hide replies by the same player(s) that you don't what to see threads created by.


Edited 12/31/2016 17:41:31
Dan's Userscript (Hide Threads and Replies by Poster): 1/1/2017 00:34:01

DanWL 
Level 61
Report
Fixed the above bugs and added the new features; they'll be made public in about 40 hours from now.
Anyone want to suggest any other features that I should add or improvements that could be made?
Dan's Userscript (Hide Threads and Replies by Poster): 1/1/2017 09:15:40


#The Prussian Job-Oh yeah, baby...
Level 50
Report
So it is actually very much the same as the blacklist-button?
Dan's Userscript (Hide Threads and Replies by Poster): 1/2/2017 11:44:28

DanWL 
Level 61
Report
Updated.
Dan's Userscript (Hide Threads and Replies by Poster): 1/4/2017 20:15:07

DanWL 
Level 61
Report
Updates:

  • Unlimited number of player threads and replies get hidden.
  • Unlimited number of thread exceptions.
  • Reduced the script's size.
Dan's Userscript (Hide Threads and Replies by Poster): 1/7/2017 11:57:00

DanWL 
Level 61
Report
If you have version 1.2.6 or less, you may need to uninstall and then reinstall the script for the changes to take affect.
Dan's Userscript (Hide Threads and Replies by Poster): 1/7/2017 14:16:48

DanWL 
Level 61
Report
Updates (for 1.7.0, 1.7.1 and 1.7.2):

  • Made jump to non-spam threads link. These will be disabled when the spam threads are deleted.
  • Threads are, by default hidden by spammers (subject to when I find them).
  • Turns blanked-out names to [blank name] so that player's name becomes visible and then hides threads and replies by that player.

To update to this new version instantly:
1) Go to your add-ons page (e.g. for Firefox, it's about:addons).
2) Click on Greasymonkey / Tampermonkey / Violent Monkey.
3) Click on settings button at the top of the page and select check for updates.

Edited 1/8/2017 00:14:24
Dan's Userscript (Hide Threads and Replies by Poster): 1/8/2017 22:29:38

DanWL 
Level 61
Report
Update: made invisible subjects become visible.
Dan's Userscript (Hide Threads and Replies by Poster): 1/9/2017 13:47:22


FDR 
Level 46
Report
Works great for me, keep up the good work Dan!
Dan's Userscript (Hide Threads and Replies by Poster): 1/12/2017 00:00:00

DanWL 
Level 61
Report
Here's a sneak preview of a UI that I'm making:
https://s25.postimg.org/5aq7zrw8f/Hide_Threads_and_Replies_by_Poster_preview_UI_bo.jpg
https://s25.postimg.org/otzemvkdr/Hide_Threads_and_Replies_by_Poster_preview_UI_to.jpg
Just need to tell the buttons what to do :)
If you think it could be improved, let me know how you'd improve it...
Dan's Userscript (Hide Threads and Replies by Poster): 1/19/2017 21:12:51

DanWL 
Level 61
Report
Updates:

  • Added UI (doesn't remember player names and threads exceptions after you close/reload the page).
  • You can now deicide if Map of the Week threads can be hidden or not by not going into the code! Instead, you can follow these steps:
    Click on the ▼ in the top right bar that displays your name, level, coins etc.
    Click on Dan's Userscript.
    Press OK.
    Press OK to change your MOTW preference, cancel to not change it.
    Type yes to hide MOTW threads; no to no longer hide them.
    Click OK.
  • Added ability to show and hide the downvoted threads an infinite amount of times.
  • Made blank links visible globally.
  • Bug fixes.

Note:
For the UI to get the correct thread exception, the Jump to Last Page links had to be removed and not recreated.

Edited 1/19/2017 21:16:36
Dan's Userscript (Hide Threads and Replies by Poster): 1/24/2017 02:26:25


Wally Balls 
Level 58
Report
Awesome, this does actual hiding of users!

I wanted to get rid of the 'show hidden' button at the bottom to make them even more invisible. If anybody else wants to do that, just comment out these two blocks of code (or just copy/paste this):

/* hide reset and restore buttons

td1.id = "btnTd";
TBL.childNodes[1].childNodes[0].appendChild(td1);
td1.parentNode.insertBefore(td1, td1.parentNode.childNodes[0]);
sHT.onclick = function() {showHiddenThreads();};
sHTS.cursor = "pointer";
td1.appendChild(sHT);
hTS.cursor = "pointer";
hT.onclick = function() {hideThreads();};
td1.appendChild(hT);

*/

/* hide reset and restore buttons

var TBL = document.getElementsByTagName("table")[document.getElementsByTagName("table").length - 2];
td1.id = "btnTd";
TBL.childNodes[1].childNodes[0].appendChild(td1);
var btnTd = document.getElementById("btnTd");
btnTd.parentNode.insertBefore(btnTd, btnTd.parentNode.childNodes[0]);
sHT.onclick = function() {showHiddenReplies();};
sHTS.cursor = "pointer";
td1.appendChild(sHT);
hTS.cursor = "pointer";
hT.onclick = function() {hideReplies();};
td1.appendChild(hT);

*/

Later I'm going to figure out how to hide the 'Players' and 'Thread Exceptions' columns.
Dan's Userscript (Hide Threads and Replies by Poster): 1/24/2017 06:03:37

DanWL 
Level 61
Report
You went past the "DON'T MODIFY ANYTHING BEYOND THIS POINT!" marker!
BTW, next update should be out in a couple of hours.

Updates:

  • Players and thread exceptions are remembered, so you no longer need to go into the code.
  • Bug fixes.


Edited 1/24/2017 06:04:09
Dan's Userscript (Hide Threads and Replies by Poster): 1/25/2017 03:04:34


Wally Balls 
Level 58
Report
Make Warlight Great Again v1.0

Hard Fork of Dan's Userscript v1.8.1.1

Features

Removes 'Players' and 'Thread Exceptions' columns and buttons
Removes 'Show hidden' buttons
Removes 'Blank Posts Hidden' pop ups.
Restores 'Jump to last page' links
Hides user [REGL] Pooh by default
Restores all other v1.8.1.1 features


Instructions

1. Install Dan's Userscript, verify it's working
2. Replace the code with Make Warlight Great Again v1.0 code
3. Turn off script updates. In Tampermonkey: settings > script update > never.


Code: <redacted> I'll create a new thread soon.

Edited 1/25/2017 22:11:27
Dan's Userscript (Hide Threads and Replies by Poster): 1/25/2017 11:20:45

DanWL 
Level 61
Report
^
Do you know how insulting it is for you to remove the Players and Thread Exceptions columns and the buttons?
I've spent between 24 and 50 hours working the UI and I still am...

"Removes 'Blank Posts Hidden' pop ups."
I'll make them optional in the next update.
Posts 1 - 30 of 44   1  2  Next >>   

Contact | About WarLight | Play Risk Online | Multiplayer Strategy Game | Challenge Friends, Win Money | Skill Game | Terms of Service