Off Topic > Off Topic

My Little Pony: Friendship for Blockheads: General V2

Pages: << < (18087/34068) > >>

Regulith:


--- Quote from: TwenteFreak on January 19, 2012, 01:04:03 PM ---I find it pretty sad you guys need a script to ignore some guy.

--- End quote ---


--- Quote from: Regulith on January 18, 2012, 11:23:46 PM ---Rational people can ignore a crying child, and so can I, because the child will either become tired of crying, forget what they were crying about and do something else, or the parent will do something to calm them down. It becomes a problem when the child cries for a majority of the day, every day, and shows no signs of stopping.

--- End quote ---

Think of the script as an advanced pair of really good earplugs.

aludane:

My life is complete.

http://www.youtube.com/watch?feature=player_embedded&v=p8IKykVvNUs#!

masterockets:


--- Quote from: Chrono on January 19, 2012, 01:07:06 PM ---So basically no self control is what you're saying?

--- End quote ---
I could be saying a lot of things, but if you want to say it's that way I'm fine with that

CityRPG:

Hey everypony,

I have a gift for you guys. Posted in the LT Drama, but here you go: A script to prevent LT threads from appearing.

If you want, I'll work on the original so that it's a bit smarter about what it removes.


--- Code: ---// ==UserScript==
// @name         LT Ignore Topics
// @version      0.1.1
// @description  Ignore Lord Tony's 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[2].innerHTML.search("Lørd Tøny") > -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;
}
}
--- End code ---


CityRPG:

Last post was by me, and is a new script.

Pages: << < (18087/34068) > >>

Go to full version