d2jsp
Log InRegister
d2jsp Forums > Off-Topic > General Chat > General Archive > How To Actually Block Nekosama Threads
Prev12345620Next
Add Reply New Topic
Member
Posts: 35,926
Joined: Apr 17 2010
Gold: 80.16
Oct 23 2015 10:12pm
Any way to actually give a fuck?
Member
Posts: 33,479
Joined: Feb 7 2009
Gold: 1,341.48
Warn: 10%
Oct 23 2015 10:14pm
doesn't always work.
Member
Posts: 67,597
Joined: Mar 15 2012
Gold: 0.69
Oct 23 2015 10:15pm
Cannot thank enough
Member
Posts: 62,870
Joined: Aug 2 2009
Gold: 1,189.90
Oct 23 2015 10:16pm
Quote (Ididitfortehlulz @ Oct 23 2015 09:14pm)
doesn't always work.


Made it in under 2 minutes, I don't doubt it's a pile of shit code.

But it's made to only run on GC, so if that's your problem you'll have to expand the @match parameter.
Member
Posts: 33,479
Joined: Feb 7 2009
Gold: 1,341.48
Warn: 10%
Oct 23 2015 10:18pm
Quote (AnimeFTW @ Oct 23 2015 09:16pm)
Made it in under 2 minutes, I don't doubt it's a pile of shit code.

But it's made to only run on GC, so if that's your problem you'll have to expand the @match parameter.


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+?

This post was edited by Ididitfortehlulz on Oct 23 2015 10:19pm
Member
Posts: 9,470
Joined: Jul 12 2009
Gold: 2.60
Oct 23 2015 10:19pm

Not sure why the quality of the S/S is so awful


This post was edited by Fioravanti on Oct 23 2015 10:20pm
Member
Posts: 62,870
Joined: Aug 2 2009
Gold: 1,189.90
Oct 23 2015 10:20pm
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+?


Change @match to http://forums.d2jsp.org/forum.php?f=27*
Member
Posts: 33,479
Joined: Feb 7 2009
Gold: 1,341.48
Warn: 10%
Oct 23 2015 10:21pm
Quote (AnimeFTW @ Oct 23 2015 09:20pm)


ilu

I imagine this is possible on mobile as well, if using tamper through chrome browser?

This post was edited by Ididitfortehlulz on Oct 23 2015 10:21pm
Member
Posts: 62,870
Joined: Aug 2 2009
Gold: 1,189.90
Oct 23 2015 10:21pm
Quote (AnimeFTW @ Oct 23 2015 08: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' ];

// 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 > 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';
}
}


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


Quoting with fix added

This post was edited by AnimeFTW on Oct 23 2015 10:24pm
Member
Posts: 1,814
Joined: Jan 19 2012
Gold: 101.10
Warn: 10%
Oct 23 2015 10:21pm
My keys
Go Back To General Archive Topic List
Prev12345620Next
Add Reply New Topic