d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > General Archive > How To Actually Block Nekosama Threads
Prev1111213141520Next
Add Reply New Topic
Member
Posts: 62,870
Joined: Aug 2 2009
Gold: 1,189.90
Nov 8 2015 05:50pm
Quote (AnimeFTW @ Oct 23 2015 10:01pm)
Code
// ==UserScript==
// @name Block Nekosama
// @description Block NekoSama's threads
// @match http://forums.d2jsp.org/forum.php?f=27*
// ==/UserScript==

// Preloaded with Nekosama and TABITHACAT
var userId = [ '434436', '1076980' ];

// Loop through all blocked users
for(var uid=0;uid<userId.length;uid++){

// Get all threads made by specific user
var els = document.querySelectorAll('tr > td:nth-child(3) > a[href="user.php?i=' + userId[uid] + '"]');

// Loop through all threads we just found
for(var i=0,l=els.length; i<l; i++){

// Make each thread invisible
els[i].parentNode.parentNode.style.display = 'none';
}
}


Really fucked up the script, this fixes a major bug. Please use this version.




For everyone just coming in, use this version.
Member
Posts: 37,565
Joined: Jul 20 2012
Gold: 301.69
Warn: 100%
Nov 8 2015 05:51pm
Why not add his multis too?
Member
Posts: 62,870
Joined: Aug 2 2009
Gold: 1,189.90
Nov 8 2015 05:53pm
Quote (SenorNZ @ Nov 8 2015 04:51pm)
Why not add his multis too?


I wasn't going to go through the hassle of finding them all. Just adding them to the list: var userId = [ '434436', '1076980' ]; works.

GC nerds aren't worth the time it would take. Plus I don't even use this stupid thing.
Member
Posts: 10,674
Joined: Oct 8 2012
Gold: 6,345.10
Nov 8 2015 05:55pm
loool
Member
Posts: 37,565
Joined: Jul 20 2012
Gold: 301.69
Warn: 100%
Nov 8 2015 05:56pm
Quote (AnimeFTW @ Nov 9 2015 11:53am)
I wasn't going to go through the hassle of finding them all. Just adding them to the list: var userId = [ '434436', '1076980' ]; works.

GC nerds aren't worth the time it would take. Plus I don't even use this stupid thing.


I agree on that for sure. I don't mind seeing dumb posts, or PMs for that matter so I don't block anyone
Member
Posts: 30,815
Joined: Mar 12 2008
Gold: 252.29
Nov 8 2015 08:03pm
Quote (AnimeFTW @ Nov 8 2015 10:44pm)
The bug in version 1?


Yesh.
Member
Posts: 19,504
Joined: Jul 10 2005
Gold: 292.00
Nov 8 2015 08:07pm
Tracking
Member
Posts: 15,338
Joined: Apr 3 2005
Gold: 2.75
Nov 8 2015 08:43pm
Quote (AnimeFTW @ 26 Oct 2015 00:06)


from what i'm reading there, i'd have to rewrite greasemonkey nearly from scratch since the mobile browser doesn't use overlays, nor does it have the same internal name for things. Too much of a headache when i could just not open his threads
Member
Posts: 8,242
Joined: Jan 11 2014
Gold: 16.00
Nov 8 2015 10:25pm
Quote (NekoSama @ 8 Nov 2015 22:03)
Yesh.


Move on child
Member
Posts: 30,432
Joined: Dec 28 2010
Gold: 134.69
Nov 8 2015 10:29pm
how do i make all threads nekosama colour?
Go Back To General Archive Topic List
Prev1111213141520Next
Add Reply New Topic