Tired of cclown? Me too.
Below is userscript called "*****-be-gone" (TM)
Removes his topics from the forums and removes his posts from threads. Because giving him attention is a nono.
Spoiler:Code:// ==UserScript== // @name *****-be-gone // @version 0.1.01 // @author Awesomolocity // @description Man, fuck cclown // @match http://www.logicalgamers.com/* // ==/UserScript== var cclown = [ 'cclown23', 'owlcapone', 'do not add water'//,'rygaku' ];//Add more annoying people as needed var users = document.getElementsByClassName('username'), i = 0, node, nodes = []; for(i = 0;i<users.length;i++){ if(cclown.indexOf(users[i].innerText.toLowerCase()) != -1){//cclown up in here? if(document.getElementById('posts')){//We in a thread? if(users[i].parentNode.parentNode.parentNode.id.indexOf('post') != -1){//ignorelisted nodes.push(users[i].parentNode.parentNode.parentNode); } else{ nodes.push(users[i].parentNode.parentNode.parentNode.parentNode.parentNode); } } else if(users[i].parentNode.parentNode.className === 'author'){//We on a forum index page? nodes.push(users[i].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode); } } } var i = 0; while(i>-1){ i++; }
Can't figure out how to make your own damn userscript?
Click to install
Results 1 to 15 of 15
Thread: *****-be-gone
- 21 Sep. 2014 02:33am #1
*****-be-gone
Last edited by Awesomolocity; 21 Sep. 2014 at 02:45am.
- 21 Sep. 2014 02:37am #2
ty +rep
yup this is really me gamersoul AVA
- 21 Sep. 2014 02:37am #3
if(!!document.getElementById('posts'))
if(document.getElementById('posts'))
i = nodes.length-1;
while(i>=0){
nodes[i].parentNode.removeChild(nodes[i]);
i--;
}
for (i = nodes.length - 1; i >= 0; i--) nodes[i].parentNode.removeChild(nodes[i]);
- 21 Sep. 2014 02:46am #4
- 21 Sep. 2014 06:21am #5
No. Your logic would make the for loop obsolete. In this day and age, it is optimized. It's about readability, not nanoseconds.
- 21 Sep. 2014 05:24pm #6
- 21 Sep. 2014 09:29pm #7
- 22 Sep. 2014 03:46am #8
Best userscript ever.
Ily.There's nothing ideal about being real, there's so many flaws to cover and conceal.
- 22 Sep. 2014 09:11pm #9
Moderator Bachelor of Science in Virginity
- Age
- 31
- Join Date
- Nov. 2009
- Location
- Toronto
- Posts
- 5,421
- Reputation
- 546
- LCash (Rank 3)
- 1.96
- 24 Sep. 2014 08:46pm #10
what have i done to get listed on that xD
- 27 Sep. 2014 07:10pm #11
- 23 May. 2015 10:12pm #12I'm lightning on my feet
- 28 May. 2015 09:22am #13
.parentNode.parentNode.parentNode.parentNode.paren tNode.parentNode.parentNode
lol
- 03 Jun. 2015 07:45pm #14
mfw
Code:var i = 0; while(i>-1){ i++; }
- 03 Jun. 2015 07:56pm #15
Leave the poor OP alone! His username is Awesomolocity for god's sake. What did you guys expect, some godsend script?
I'm lightning on my feet