d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > General Archive > How To Actually Block Nekosama Threads
Prev1234520Next
Add Reply New Topic
Member
Posts: 21,490
Joined: Sep 9 2011
Gold: 2.00
Oct 23 2015 08:42pm
Quote (Tuna_BeIIy @ Oct 23 2015 09:18pm)
whats my id

oh wait i dont exist


720952, the number of champions.
Member
Posts: 24,778
Joined: Mar 7 2008
Gold: 1.00
Oct 23 2015 08:47pm
Quote (AnimeFTW @ 23 Oct 2015 21:16)
0: Get Tampermonkey for Chrome or GreaseMonkey for Firefox

1: Click Tampermonkey/Greasemonkey

2: Choose "Add Script"

3: Overwrite default with this
Code
// ==UserScript==
// @name Block Nekosama
// @description Block NekoSama's threads
// @match http://forums.d2jsp.org/forum.php?f=27
// ==/UserScript==

var userId = '434436';

var els = document.querySelectorAll('tr > td > a[href="user.php?i=' + userId + '"]');

for(var i=0,l=els.length; i<l; i++){
els[i].parentNode.parentNode.style.display = 'none';
}


4: Profit


for what it's worth, TABITHACAT's id is 1076980


mkk and with greasemonkey??
Member
Posts: 62,870
Joined: Aug 2 2009
Gold: 1,189.90
Oct 23 2015 09:40pm
Quote (eric838 @ Oct 23 2015 07:47pm)
mkk and with greasemonkey??


Ask MTTK

Quote (Reset @ Oct 23 2015 07:33pm)
you need to modify the script to take an array of ids james


I didn't expect people to actually use it, it was more of a joke at nekosama's last thread

but okay one sec
Member
Posts: 2,362
Joined: Apr 23 2013
Gold: 13.37
Oct 23 2015 09:43pm
Quote (AnimeFTW @ Oct 23 2015 05:16pm)
0: Get Tampermonkey for Chrome or GreaseMonkey for Firefox

1: Click Tampermonkey/Greasemonkey

2: Choose "Add Script"

3: Overwrite default with this
Code
// ==UserScript==
// @name Block Nekosama
// @description Block NekoSama's threads
// @match http://forums.d2jsp.org/forum.php?f=27
// ==/UserScript==

var userId = '434436';

var els = document.querySelectorAll('tr > td > a[href="user.php?i=' + userId + '"]');

for(var i=0,l=els.length; i<l; i++){
els[i].parentNode.parentNode.style.display = 'none';
}


4: Profit


for what it's worth, TABITHACAT's id is 1076980

im to lazy though..
Member
Posts: 62,870
Joined: Aug 2 2009
Gold: 1,189.90
Oct 23 2015 09:45pm
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', '990405' ];

for(var uid=0;uid<userId.length;uid++){
var els = document.querySelectorAll('tr > td > a[href="user.php?i=' + userId[uid] + '"]');

for(var i=0,l=els.length; i<l; i++){
els[i].parentNode.parentNode.style.display = 'none';
}
}


Now accepts as many userids as you want. Just add them to the userId array.









To get this working on firefox:
Click the arrow next the the greasemonkey icon
add new userscript
Type in "Block threads" for name
"BlockThreads" for namespace
Click ok
paste in script on next screen
done

This post was edited by AnimeFTW on Oct 23 2015 09:50pm
Member
Posts: 15,154
Joined: Feb 3 2015
Gold: 20.69
Oct 23 2015 09:50pm
Quote (AnimeFTW @ Oct 23 2015 07:45pm)
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', '990405' ];

for(var uid=0;uid<userId.length;uid++){
var els = document.querySelectorAll('tr > td > a[href="user.php?i=' + userId[uid] + '"]');

for(var i=0,l=els.length; i<l; i++){
els[i].parentNode.parentNode.style.display = 'none';
}
}


Now accepts as many userids as you want. Just add them to the userId array.


Ty
Member
Posts: 24,507
Joined: Mar 2 2008
Gold: 8,231.41
Oct 23 2015 09:51pm
now I never need to see a devil_kin thread
Member
Posts: 71,093
Joined: Nov 5 2006
Gold: 1.71
Warn: 50%
Oct 23 2015 09:55pm
Quote (AnimeFTW @ Oct 24 2015 03:45pm)
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', '990405' ];

for(var uid=0;uid<userId.length;uid++){
var els = document.querySelectorAll('tr > td > a[href="user.php?i=' + userId[uid] + '"]');

for(var i=0,l=els.length; i<l; i++){
els[i].parentNode.parentNode.style.display = 'none';
}
}


Now accepts as many userids as you want. Just add them to the userId array.









To get this working on firefox:
Click the arrow next the the greasemonkey icon
add new userscript
Type in "Block threads" for name
"BlockThreads" for namespace
Click ok
paste in script on next screen
done


i dont know why it wont work for me
Member
Posts: 62,870
Joined: Aug 2 2009
Gold: 1,189.90
Oct 23 2015 10:00pm
Quote (MoreTimeToKill @ Oct 23 2015 08:55pm)
i dont know why it wont work for me


Make sure the greasemonkey icon isn't faded out(aka enabled)

This post was edited by AnimeFTW on Oct 23 2015 10:00pm
Member
Posts: 9,470
Joined: Jul 12 2009
Gold: 2.60
Oct 23 2015 10:11pm
This thread needs to be stickied.
Go Back To General Archive Topic List
Prev1234520Next
Add Reply New Topic