Hide Threads Tampermonkey Script
Page 1 of 1
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Thu, 27th Feb 2020 19:58    Post subject: Hide Threads Tampermonkey Script
As request, a script to hide threads. You can click the small next to each thread, or in the thread page, click the "Hide Thread" button at the top. There is a toggle added in the side menu.





Click here to install:
https://raw.githubusercontent.com/LeoNatan/NFOHump/master/IgnoreThread/NFOHumpIgnoreThread.user.js

Enjay
Back to top
Frant
King's Bounty



Posts: 24520
Location: Your Mom
PostPosted: Thu, 27th Feb 2020 21:06    Post subject:
Awesome. You're worthy of the title code monkey. Thanks a lot. Smile

Updated the first post with your scripts.


Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn!

"The sky was the color of a TV tuned to a dead station" - Neuromancer


Last edited by Frant on Thu, 27th Feb 2020 21:19; edited 1 time in total
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Thu, 27th Feb 2020 21:18    Post subject:
Poop, I see there is some bug with the X button. Will fix soon.
Back to top
Frant
King's Bounty



Posts: 24520
Location: Your Mom
PostPosted: Thu, 27th Feb 2020 21:20    Post subject:
Why is FAQ in the left menu suddenly changed to a 9? And now it says 11?
Can't disable threads yet but I'm in no hurry.


Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn!

"The sky was the color of a TV tuned to a dead station" - Neuromancer
Back to top
Waargh




Posts: 6997
Location: hell on earth
PostPosted: Thu, 27th Feb 2020 21:30    Post subject:
I bet this turns your PC into a bit-sheckel farm, be careful Laughing


Today I didn't even need to use my AK. I gotta say it was a good day. (c) - Ice Cube
Back to top
Frant
King's Bounty



Posts: 24520
Location: Your Mom
PostPosted: Thu, 27th Feb 2020 21:38    Post subject:
That's a possibility since I can't really read js script without a lot of difficulty and head scratching. I've never dabbled in js in any form and the syntax and labels in his scripts are difficult to decode compared to way back when I coded C# and dabbled in C and C++ (but I'm lazy so I preferred not having to deal with every little bit of trash collection etc.) and waaay back I did 6502 assembly and 68k assembly.

I doubt Leo is so desperate that he'd plant a cryptominer in his scripts anyway. Wink


Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn!

"The sky was the color of a TV tuned to a dead station" - Neuromancer
Back to top
Frant
King's Bounty



Posts: 24520
Location: Your Mom
PostPosted: Thu, 27th Feb 2020 21:46    Post subject:
Okay, now I know what that number in the options menu is. It's increasing every time I visit a thread I haven't visited after I installed the script.


Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn!

"The sky was the color of a TV tuned to a dead station" - Neuromancer
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Thu, 27th Feb 2020 21:47    Post subject:
Well, I did order AMD Threadripper 3000 computers parts, I am desperate for shekels. Laughing

You can disable threads from inside, using the buttons.

The counter is related to another script—the cookie fixer. It's a debug information. It shows how many threads you've read since last cleanup. Once you reach 95, my fixes go into action and the old cookie bugs won't happen again.
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Thu, 27th Feb 2020 21:49    Post subject:
Fixed buttons.

You can read the scripts, they are using very rudimentary JS.
Back to top
Frant
King's Bounty



Posts: 24520
Location: Your Mom
PostPosted: Thu, 27th Feb 2020 21:53    Post subject:
Well, nothing is happening when I click the X, the thread is still there. I used the "Hide thread" option as well and both thread-numbers are listed in the text-box (with a comma between them). Threads are still there. Updated to 1.0.1. I'll close the browser and check again.

Nope. The functions you added look okay but the script doesn't hide the thread.


Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn!

"The sky was the color of a TV tuned to a dead station" - Neuromancer
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Thu, 27th Feb 2020 21:59    Post subject:
What browser? Do you mind posting the console output?
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Fri, 28th Feb 2020 11:57    Post subject:
Fixed an issue with thread detection
Back to top
garus
VIP Member



Posts: 34200

PostPosted: Fri, 28th Feb 2020 13:11    Post subject:
snip


Last edited by garus on Tue, 27th Aug 2024 21:22; edited 1 time in total
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Fri, 28th Feb 2020 13:31    Post subject:
It's a terrible experience, all these scripts. Everything is jumping, just like modern web SPA crapola. Laughing
Back to top
garus
VIP Member



Posts: 34200

PostPosted: Fri, 28th Feb 2020 13:45    Post subject:
snip


Last edited by garus on Tue, 27th Aug 2024 21:22; edited 1 time in total
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Fri, 28th Feb 2020 14:26    Post subject:
Back to top
Frant
King's Bounty



Posts: 24520
Location: Your Mom
PostPosted: Fri, 28th Feb 2020 14:29    Post subject:
I updated script to 1.0.2, opened console and looked for a random thread in useless void to hide. I selected https://www.nfohump.com/forum/viewtopic.php?t=114802, chose "hide" at the top and the thread id is listed in Hidden threads but it's showing as normal. Copied the console output but I saw nothing regarding your script, only errors about doubleclick's ad-crap which is blocked by ublock Origin (obviously tried with ublock disabled). The console doesn't show any reaction to any Tampermonkey scripts and I don't know where to find the Tampermonkey logs (if there are any).

Quote:
Navigated to https://www.nfohump.com/forum/viewforum.php?f=1
Navigated to https://www.nfohump.com/forum/index.php
Navigated to https://www.nfohump.com/forum/viewforum.php?f=20
Navigated to https://www.nfohump.com/forum/index.php
Navigated to https://www.nfohump.com/forum/viewforum.php?f=17
Navigated to https://www.nfohump.com/forum/viewtopic.php?t=106129
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
BlockTube Init inject.js:773:11
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://googleads.g.doubleclick.net/pagead/id. (Reason: CORS request did not succeed). 7
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://googleads.g.doubleclick.net/pagead/id. (Reason: CORS request did not succeed). 14
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://googleads.g.doubleclick.net/pagead/id. (Reason: CORS request did not succeed).
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. UiZg82R89Qc:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. OA1V7cI28hI:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. iWT14kvjxxQ:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. hN7P2ivXYCI:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. uZt1xKtPbUQ:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. 4gY1AHjq1y8:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. nFRX0d2HWbY:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. FCPutYaGFlE:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. 7QyoRzZrF00:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. WV-t-cB6K-8:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. PMIHxBveqBI:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. kElo7qi47N0:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. HbQvkFPTqLY:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. ZlVxx3HVW24:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. KZJ-TXpBKCU:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. EkdP5SrHuvQ:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. 2eCAphdQPck:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. Aex51crY0Yo:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. gP7dm9oeW94:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. yHMjZE0JUkQ:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. JmDLZORG6Cg:1:1
Loading failed for the <script> with source “https://static.doubleclick.net/instream/ad_status.js”. XDUoBELaCy4:1:1
MouseEvent.mozPressure is deprecated. Use PointerEvent.pressure instead. base.js:1109:334
Navigated to https://www.nfohump.com/forum/viewforum.php?f=17
Navigated to https://www.nfohump.com/forum/viewtopic.php?t=114802
Navigated to https://www.nfohump.com/forum/viewforum.php?f=17
Navigated to https://www.nfohump.com/forum/index.php
Navigated to https://www.nfohump.com/forum/viewforum.php?f=1


Checked the Hidden threads text-box to see if the thread 114802 had been added (which it had).



I guess it's a bit more complicated intercepting thread-id's while the browser is receiving the data and filter that particular portion out before it's rendered. Don't waste too much time on it, I can live with the nuisance of a few threads. Wink


Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn!

"The sky was the color of a TV tuned to a dead station" - Neuromancer
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Fri, 28th Feb 2020 15:00    Post subject:
Wait, can you take a look at TemperMonkey's script settings? When is the script configured to run? Try setting it at "document end".
Back to top
Frant
King's Bounty



Posts: 24520
Location: Your Mom
PostPosted: Fri, 28th Feb 2020 15:26    Post subject:
It was set to default, changed it to "document end", no change. Tried changing "Run only in top frame" from default to "No", then "Yes" and back to default. No change.

I picked a different random thread in Useless Void; https://www.nfohump.com/forum/viewtopic.php?t=114657 and it is still showing.


Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn!

"The sky was the color of a TV tuned to a dead station" - Neuromancer
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Fri, 28th Feb 2020 16:02    Post subject:
How odd, they get blocked on my Firefox.

What browser are you using?

BTW, surprisingly, I have been blocking by random the same threads as your random threads. Laughing
Back to top
Frant
King's Bounty



Posts: 24520
Location: Your Mom
PostPosted: Fri, 28th Feb 2020 16:13    Post subject:
I'm using Firefox as well!?!

A list of addons:

Adblock for Youtube
Blocktube (these complement each other)
DuckDuckGo Privacy Essentials
Google Analytics Blocker (could this interfere with something your script is using?)
Imgur-Uploader
Privacy Possum
Tampermonkey
uBlock Origin
Video Blocker (it hides content from specified channels from showing up)

That's it. Then I have a massive hosts file but still... Your other scripts work just fine.


Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn!

"The sky was the color of a TV tuned to a dead station" - Neuromancer
Back to top
LeoNatan
Banned



Posts: 73193
Location: Ramat Gan, Israel 🇮🇱
PostPosted: Thu, 24th Feb 2022 14:36    Post subject:
@Frant Apologies. I will take a look soon. Better late than never. Laughing
Back to top
Page 1 of 1 All times are GMT + 1 Hour
NFOHump.com Forum Index - General chatter
Signature/Avatar nuking: none (can be changed in your profile)  


Display posts from previous:   

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group