Author Topic: My Little Pony: Friendship for Blockheads: General V2  (Read 9480638 times)

Last post was by me, and is a new script.
Now if only you could create a script to get tony to stop posting here

You know, it really is funny that while you tell people to simply ignore anything related to MLP on the forum, you have to make a script that automatically hides Tony's posts.

You know, it really is funny that while you tell people to simply ignore anything related to MLP on the forum, you have to make a script that automatically hides Tony's posts.
Hey Aphtonites.

Here's one for you.

EDIT: Bug fixed. Should work now.

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: January 19, 2012, 01:29:04 PM by CityRPG »

The best of both worlds, everyone wins?


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

I'm probably the only one who would want you to do so, and if you do my suggestions are back a page.
« Last Edit: January 19, 2012, 01:50:28 PM by Blastdown »

I like the remove LT script.

This show is so tribal its ridiculous.




yeah i was waiting to see if this would happen and i was right, this is the biggest reason why i would want it to be fixed up some.
a bug in the major catagory, in my opinion.

I don't know anyone who even uses that TBH, and on the off chance you do you can just disable the script for a second



yeah i was waiting to see if this would happen and i was right, this is the biggest reason why i would want it to be fixed up some.
a bug in the major catagory, in my opinion.
I'll fix it. Give me a second.

I don't know anyone who even uses that TBH, and on the off chance you do you can just disable the script for a second
I always wonder about it, is there a reason for my username always being first?
Like, is it first for me only?

I always wonder about it, is there a reason for my username always being first?
Like, is it first for me only?
The list always places the logged in user first or very close to it. On mine Doomonkey is first and I'm second. It also re-sorts the list every time somebody logs out, it seems.

The list always places the logged in user first or very close to it. On mine Doomonkey is first and I'm second.
oh ok, I thought it was something about the time you logged in at like the last person has been online the longest in that session or whatever

So this script blocks LT's posts?

So this script blocks LT's posts?
Yes, it blocks him and anyone quoting him