d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > General Archive > How To Actually Block Nekosama Threads
Prev14567820Next
Add Reply New Topic
Member
Posts: 87,226
Joined: Apr 1 2011
Gold: 62.77
Oct 24 2015 02:17am
is there a way that i can make it so i can still see TABITHACAT's threads though? :)

Member
Posts: 26,379
Joined: Feb 24 2011
Gold: 69.69
Oct 24 2015 02:20am
ty based animeftw
Member
Posts: 7,143
Joined: Apr 29 2013
Gold: 16.37
Oct 24 2015 02:37am
Quote (wraps @ Oct 24 2015 01:17am)
is there a way that i can make it so i can still see TABITHACAT's threads though? :)


Remove 2nd userID from line 9 of script :)
You may also add userIDs to block others

This post was edited by RustyWest on Oct 24 2015 02:38am
Member
Posts: 161,550
Joined: Oct 18 2006
Gold: 4.03
Warn: 20%
Oct 24 2015 03:02am
Quote (Shakti @ Oct 23 2015 07:30pm)
how do you find other users id's ? Im about to go HAM with this thing


url.. dummy
Member
Posts: 161,550
Joined: Oct 18 2006
Gold: 4.03
Warn: 20%
Oct 24 2015 03:04am
Quote (xyzamp @ Oct 23 2015 09:12pm)
Any way to actually give a fuck?


not if you're a man
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.


Quote (Ididitfortehlulz @ Oct 23 2015 09:18pm)
It only works on the 1st page of gc. Doesn't work if the page link is anything but http://forums.d2jsp.org/forum.php?f=27

is there a way to change the match so its http://forums.d2jsp.org/forum.php?f=27&o=0 - 100+?


man james can't code for shit

This post was edited by GRATS on Oct 24 2015 03:05am
Member
Posts: 87,226
Joined: Apr 1 2011
Gold: 62.77
Oct 24 2015 03:16am
Quote (RustyWest @ Oct 24 2015 03:37am)
Remove 2nd userID from line 9 of script :)
You may also add userIDs to block others


thank you bro! :)

i took off TABITHACAT'S user id from the script so i can still see her threads! :D
Member
Posts: 18,491
Joined: Sep 2 2008
Gold: 0.00
Oct 24 2015 08:26am
please send me code for version that makes it so i can only ever see lostpigeon threads
Member
Posts: 28,023
Joined: Sep 19 2010
Gold: 5,114.30
Oct 24 2015 08:31am
Quote (AnimeFTW @ Oct 23 2015 09: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 tel:10769801076980[/URL]



Wow. You're amazing.
Member
Posts: 9,944
Joined: Oct 2 2015
Gold: 1,500.00
Oct 24 2015 08:39am
Holy shit that's brutal, LOL! But amazing nonetheless.
Member
Posts: 25,572
Joined: Jan 10 2009
Gold: 5,347.00
Oct 24 2015 09:04am
Yeah this dude kinda sucks. Just tries way too hard to be interesting
Go Back To General Archive Topic List
Prev14567820Next
Add Reply New Topic