<< Back to Programming Forum   Search

Posts 1 - 23 of 23   
Hide Threads & Replies by Poster Official (2): 11/12/2017 00:43:32


DanWL 
Level 62
Report
Link to previous thread: https://www.warlight.net/Forum/260247-hide-threads-replies-poster-official.

Installation

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

What you need:


Greasymonkey support is discontinued as there are bugs within Greasymonkey that prevent some features from working; use Tampermonkey instead.

Install link: https://greasyfork.org/en/scripts/29925-hide-threads-and-replies-by-poster.
Current public version: 2.2.0.11.

Features

  • Hides threads and replies by poster (the poster's names' are available in the Block List).
  • Ability to not hide threads even if you're hiding threads by the player that made the thread (these are known as Thread Exceptions).
  • Ability to hide off-topic threads on the all forum posts page.
  • Ability to hide individual threads (including Map Of The Week threads).
  • Hides threads and replies by players have have a blank name by default.
  • Hides blank posts.
  • Hides all-caps threads (they would be deleted anyway).
  • 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 thread/mail subjects become visible.
  • Makes invisible links globally become visible.

Feel free to suggest features.

Currently working on:

  • Bug fixes.
  • Optimisation.
  • Better UI.
  • Using Player IDs instead of player names to hide threads and replies by instead of player names.


If you encounter a bug, let me know.

Edited 1/17/2018 23:18:08
Hide Threads & Replies by Poster Official (2): 11/12/2017 00:46:09


DanWL 
Level 62
Report
2.2.0.3 changes:

  • Bug fixes that caused changing the settings to create multiple prompts/confirms when trying to change a setting.
  • Optimisation - decreased script size from 98.4KB to 71.1KB or saved about 250 lines.


I didn't update this for a while as I got busy IRL...
Hide Threads & Replies by Poster Official (2): 11/12/2017 00:47:42


knyte 
Level 58
Report
Using Player IDs instead of player names to hide threads and replies by instead of player names


👌👌👌👌👌👌👌👌👌👌👌👌

also whoa that's a lot of lines of code

Edited 11/12/2017 00:48:00
Hide Threads & Replies by Poster Official (2): 11/12/2017 01:01:19


DanWL 
Level 62
Report
^there used to be 500*4 lines of code to make the Add/Remove player from Blocklist and Add/Remove thread from Thread Exceptions buttons what to have as the onclick event. There was that much lines before because while and for loops only correctly worked on the last button. Now there's a function that calls another function to decide the onclick event for a button one button at a time.

It's difficult to squeeze time for this and make a game for an assignment, but I'll find a way to.
Hide Threads & Replies by Poster Official (2): 11/12/2017 02:29:40


Жұқтыру
Level 55
Report
Much faster userscript that is honestly better (https://www.warlight.net/Forum/269573-make-warlight-great-again-ag-dans-userscript)

besides being much faster, it's much smaller, it actually hides them (no show option), and it doesn't have any stylistic changes.

Dan's Stylish scripts are also very good and they work instantly - really Dan, stop promoting these slow userscripts and start working on your Stylish scripts instead.
- downvoted post by Wally Balls
Hide Threads & Replies by Poster Official (2): 11/12/2017 08:06:16


DanWL 
Level 62
Report
@Жұқтыру it is possible to hide all UI in the settings apart from the settings UI. This will become faster, I wrote it a while ago when I was relatively new and didn't know much features of JS and I saw things that could be done in a more efficient way.
Hide Threads & Replies by Poster Official (2): 11/13/2017 00:17:40


DanWL 
Level 62
Report
2.2.0.4 changes:

  • Bug fixes
  • Reduced script size from 71.1KB to 69.5KB - a lot more could be reduced but there were some quite important bug fixes included that to allow some features to work correctly.


Edited 11/13/2017 00:43:00
Hide Threads & Replies by Poster Official (2): 11/13/2017 14:23:04


DanWL 
Level 62
Report
Import and export settings buttons will be made within 3 hours to allow you to keep the current settings for the Warzone update.
Hide Threads & Replies by Poster Official (2): 11/13/2017 17:13:10


DanWL 
Level 62
Report
2.2.0.5 changes:

  • Bug fixes
  • Optimisation
  • Added ability to import/export settings via script Advanced settings.


I would recommend forcing your browser to update the script to this latest version of the script to ensure your current settings can be resumed once the current setting have been exported and pasted in a safe place.

To do this in Firefox:

  • Access the about:addons page
  • Click on User Scripts
  • Click on the settings wheel
  • Click on Check for Updates


To do this in Chrome:

  • Click on the Tampermokey icon
  • Click on Check for Userscript Updates


IDK how to to this for Safari or Edge.

Do not modify exported settings data as this could cause unexpected errors to occur. If exported settings data is modified, the error dealing system will allow you to copy the error details. Please send a copy of the error details to me so that I can fix the errors.

Edited 11/13/2017 17:34:47
Hide Threads & Replies by Poster Official (2): 11/14/2017 19:32:33


DanWL 
Level 62
Report
2.2.0.6 Changes:

  • Made the script work with Warzone.
  • Moved location of settings to be under the drop-down menu of your name in the top right.
  • Reduced script size from 73.7KB to 67.5KB.


Note: there are some visual errors, but almost all features work correctly. Some of these errors an broken features are listed below.

Known bugs:

  • Style for hidden all-caps threads not working correctly.
  • Hide x threads doesn't work correctly.
  • Blocking then unblocking players in current session forces threads by the previously blocked poster to not hide.
  • The script settings menu looks awful.
  • If there is a "X downvoted threads" button, then the add/remove from blocklist options and thread exceptions options appear next to it.
  • Both Add and Remove from blocklist options appear at the same time - the display of them should be chosen dynamically based on if you're hiding threads by the person that posted the thread.


If you find a bug that isn't listed above, inform me otherwise it may not get fixed.

Edited 11/14/2017 19:35:41
Hide Threads & Replies by Poster Official (2): 12/2/2017 19:32:08


DanWL 
Level 62
Report
Version 2.2.0.7 changes:

  • Jump to last page links are now no longer removed.
  • Fixed bug that caused Add/Remove player from blocklist and Add/Remove thread from thread exceptions buttons to get placed in the wrong place.
  • Fixed bugs that caused threads with all-caps subjects to not be hidden.
  • Fixed bugs that caused blank posts to not be hidden.

Version 2.2.0.8 changes:

  • Fixed bug that caused all edited posts to be hidden.


Edited 12/2/2017 20:10:24
Hide Threads & Replies by Poster Official (2): 12/2/2017 21:18:12


DanWL 
Level 62
Report
If you want to submit designs for the UI, please send them. Ideally use annotated pictures.
Looking for suggestions to improve every aspect of the UI...
Hide Threads & Replies by Poster Official (2): 12/3/2017 15:54:31


DanWL 
Level 62
Report
2.2.0.9 changes:

  • Made the settings UI look how it should.
  • Fixed bug that caused both Add and Remove form Block List buttons to appear.
  • Fixed bug that prevented all threads from being checked if they were meant to be hidden/shown.
  • Fixed bug that could have made blanked-out things not visible.
  • Fixed bugs that caused threads by certain people to not be hidden when hiding, showing and then hiding threads.
  • Discontinued showing a message that said how much blank posts have been hidden.


All known bugs are now fixed :)

Some things what I was going to do to made the UI better:

  • Make the main settings UI look better when viewing the settings on a small window size.
  • Make the main settings UI have less advanced options - move them into their own settings row.
  • Make the main settings UI have dropdowns/autocomplete of players/threads to remove.
  • When settings have been imported, don't refresh the page, only refresh the content.
  • Force the Thread Exceptions heading to not wrap when on a sub-forum/clan forum/mail.


I would like other ideas on how to improve the UI.

Edited 12/5/2017 23:10:41
Hide Threads & Replies by Poster Official (2): 12/5/2017 23:08:15


DanWL 
Level 62
Report
2.2.0.10 Changes:

  • Fix bug that caused the Dan's Userscript button to appear below the Sign Out button when using Muli's Userscript.
  • Fixed bugs that caused conflicts with Muli's Userscript.
  • Made UI buttons rounded.
  • Forced the Thread Exceptions column to not wrap.
  • Fixed bugs that caused some variables to become out of scope.
  • Slight performance increases.
  • Reduced script size to 67.2KB.


Edited 12/5/2017 23:20:04
Hide Threads & Replies by Poster Official (2): 12/25/2017 21:23:18


DanWL 
Level 62
Report
I'll release a version with bug fixes/new features soon. Just trying to prevent this thread from dying.
Hide Threads & Replies by Poster Official (2): 1/5/2018 13:27:39


DanWL 
Level 62
Report
2.2.0.11 changes:

  • Fixed the UI style to work with the new site design.
  • Fixed bug that caused hiding off-topic threads to not be hidden or shown.
  • Automated updating this thread with the changes.
  • Upgraded bug report system - bugs are sent via PMs.
  • Non-automatically detected bugs can be sent by accessing the script's settings then by clicking on Report Bug.
Hide Threads & Replies by Poster Official (2): 1/10/2018 02:07:41


DanWL 
Level 62
Report
Gathering required data hiding theads by player ids... should be done gathering it overnight, depending on internet and computer speed. If the site is running slowly around this time, you can blame me.

Edit: only takes 25 mins, just fixing a bug that caused some data that should be stored to be stored.

Edited 1/10/2018 02:27:36
Hide Threads & Replies by Poster Official (2): 1/10/2018 16:34:06


Rikku 
Level 61
Report
Didn't someone else (I can't remember who it was a while ago) create a very similar Script before this one
Hide Threads & Replies by Poster Official (2): 1/10/2018 18:45:40


DanWL 
Level 62
Report
That script was copied from a very early version of this but due to the change to Warzone, that script will run into several bugs.
Hide Threads & Replies by Poster Official (2): 1/12/2018 23:32:10


DanWL 
Level 62
Report
I would like feedback for this settings design:

Note: buttons will be rounded slightly and button labels will be perfectly centred. Also, there will be helpers that turn player names and player profile links into player ids. It will also be possible to directly add players to the Blocklist using just player ids.

If you don't give any feedback, then it's highly unlikely that I'll change the design again.
I'll wait up to the second of February this year for feedback. After that time, the settings design will be fully implemented.
Hide Threads & Replies by Poster Official (2): 1/13/2018 22:35:10


DanWL 
Level 62
Report
Updated design to this after noticing a couple of settings weren't accessible:


Edited 1/13/2018 22:35:23
Hide Threads & Replies by Poster Official (2): 1/16/2018 23:27:32


DanWL 
Level 62
Report
This is what the settings UI will look like:

If the settings menu doesn't fit properly on-screen, a scrollbar will appear, as shown below:


On the settings, I only need to make the add players button do stuff, make it possible to add multiple threads, make the content of the View buttons more presentable and make it easier/faster to reset settings.
There are other things that I need to fix such as changing player names on your Blocklist to player ids as this update will discontinue using player names as the primary way to hide posts.
Posts 1 - 23 of 23