<< Back to Programming Forum   Search

Posts 1 - 11 of 11   
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.
This script's features and installation can be found in the previous thread.

Current public version: 2.2.0.6.

Feel free to suggest features.
If you encounter a bug, let me know.

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


Send any 'hate' or 'disagreements' directly to me via PMing me - https://www.warlight.net/Discussion/SendMail?PlayerID=222685 as these comments are irrelevant to this thread.

Edited 11/14/2017 19:34:42
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
Posts 1 - 11 of 11