Author Topic: guys i need a new mlp thread blocker  (Read 628 times)

i had to redo my computer and now i don't have my mlp thread blocker and i need a new one


and no i am not trying to start a damn stuffstorm i seriously just want the thread blocker god damn

Don't click on the thread?



I don't understand why people want to block MLP threads, as long as people keep pony-related stuff in the thread for it, it's fine by me.

I don't understand why people want to block MLP threads, as long as people keep pony-related stuff in the thread for it, it's fine by me.
This

I love how stupid some people are

Eh, maybe people just don't want to see it. I don't get why its an issue.

Code: [Select]
// ==UserScript==
// @name         Ignore Pony Topics
// @version      0.1.1
// @description  Ignore Pony topics, too.
// @include      http://forum.blockland.us/index.php?board=*
// @copyright    2012+ Iban
// ==/UserScript==

var tables = document.getElementsByTagName('table'), matchClass = "bordercolor", badRows = new Array();

for(var i = 0; tables.length; i++)
{
if((" "+tables[i].className+" ").indexOf(" "+matchClass+" ") > -1) {
var rows = tables[i].getElementsByTagName('tr');

for(var j = 0; j < rows.length; j++) {
var cells = rows[j].getElementsByTagName('td');

if(cells[1].innerHTML.search(/pony/i) > -1) {
badRows.push(rows[j]);
}
}

// Google Chrome intelligently places a <tbody> in the <table>.
// However, the original SMF code does not have the <tbody>
// Cover our ass.

var tbody = tables[i].getElementsByTagName('tbody');

for(var k = 0; k < badRows.length; k++) {
if(tbody.length) {
tbody[0].removeChild(badRows[k]);
}

// No <tbody>, remove straight from the <table>
else {
tables[i].removeChild(badRows[k]);
}
}

break;
}
}
« Last Edit: May 25, 2012, 10:05:09 PM by Pepsidude »