Skip to content
TORNLIFE More

[Userscript] Forum Blocker

Started by Zanoab [1877054] on in Tools & Userscripts.

7 replies · 499 views · thread synced · 5 days ago · View on torn.com
About this thread

Posts archived: 8 / 8 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
8
Discussion span
→
People posting
6
Likes on archived posts
20
Authority score
51 / 100
Historical score
38 / 100
Story score
39 / 100
Engagement score
59 / 100
Zanoab [1877054]

Script is here: https://pastebin.com/raw/QXPvET8t

I literally coded this in a few hours so there may be issues.

How to block threads:
  • Go to a forum board.
  • Find a thread from the user you want to block.
  • Click the (empty) icon on the left, next to the thread type icon.
  • Refresh or navigate to another page to see the effect.
How to block posts:
  • Go to a thread.
  • Find a post from the user you want to block.
  • Click the "Block User" button on the right.
  • Refresh or navigate to another page to see the effect.
Bonus features:
  • Separately tracks if you want to hide threads or posts. Lets users hide threads but read posts normally or vice versa.
  • Inserts a placeholder message with how many consecutive posts/threads were hidden and the posters' names.
  • Allows temporarily unhiding posts/threads.
  • Allows unblocking user threads/posts by unhiding a thread/post and clicking the same button.
  • Works in the laptop.
  • Hide blocked posts/threads messages.
To-Do List:
  • Block thread icon (accepting suggestions and I will need version for on and off if possible)
  • Block posts from users of specific factions
  • Apply new blocks/unblocks immediately (code already in place but never tested yet)
  • Other popular and reasonable suggestions
Changelog:
  • 0.5.1
    • Allow showing/hiding blocked posts/threads messages
    • Blocked threads message reduced to one line and no longer bold.
  • 0.5.0
    • Added support for laptop page
Screenshot:

[image: puu.sh]
Baldr [1847600] Reporter

I'm trying this out. So far, I'm not a big fan of all the msgs about a blocked thread. For some reason, the msgs about blocked posts don't bother me as much, but when I'm looking at all the threads in a subforum, the msgs about blocked threads are very annoying.

It took me a bit to figure out how to block threads. Looks like you plan to add icons in that column which will help.

Googling around quickly, I found this image, and thought if you shrunk it down and made on for the red button, one for green, that might give you something. https://www.welovesolo.com/wp-content/uploads/2014/08/p16ua49hom1gq910gu1hof1q1011qo9-details.jpg

Or a couple of others :

https://d2gg9evh47fn9z.cloudfront.net/800px_COLOURBOX18478334.jpg

https://www.avocado.com.au/wp-content/uploads/2016/08/resources-traffic-lights-300x225.png


Baldr [1847600] Reporter

I think part of the reason that the msgs about a blocked thread bother me is because they are in bold, designed to draw attention. They also have two lines of text instead of the one that most threads have.

Normally, threads with new posts are in solid black, threads with no new posts are in a lighter gray color. The threads we've marked as "not interested in seeing this" shouldn't be actively trying to draw our attention. Personally, I'd just as soon not see the whole "there is a hidden thread click here to view" thing at all, but if it needs to be there, two bold lines of text just makes it worse.


Ahab [1735214]

Just have a nuke option that removes everything and doesn't show anything about removed stuff.

Is there a list of id's we can just easily edit.... on mobile right now.
Zanoab [1877054]

Thanks for the feedback and suggestions guys. I've removed the second line from the blocked threads message and it is no longer bold. I also added a button to the top of the page next to "Back to " to show/hide blocked threads/posts messages (effect is immediate).