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

If you felt like looking back some pages, kingdaro made 2 scripts, one that blocks all of tony's posts and the other which also blocks anyone quoting him

so where does it stand now?
from reading back 20 pages ago, it sounds like it only blocked strings which in turn would block any post with key words in it.


asdf i didnt read

We got another problem:

This topic lacks Spike, and Discord.


bahaha
yes

fun fact: party rock anthem was playing as i saw this

I just realized that this never appeared in the last episode.

I'm sad.

After fiddling with greasemonkey and using Coolio's version(?), my only complaints/suggestions are this:

before:

after:

kind of unappealing in my opinion, of course most of you probably only care if it simply blocks the user entirely. the problem is, whenever the user logs in, the userlist at the bottom of the forums will be one big "-snip-", so you'll never know who is online when that one blocked user is online.

if you could find a way to make it appear like this instead:

that'd be better.

also, you can still see posts from the blocked user when in the posting window.
one final suggestion would be to add some form of list that way you don't have to create several scripts (unless adding multiple variables would do the same trick, either way).
« Last Edit: January 19, 2012, 12:30:21 PM by Blastdown »

Frankly I love it just the way it is

QUALITY THREAD RIGHT HERE FOLKS

« Last Edit: January 19, 2012, 12:38:35 PM by Regulith »

Frankly I love it just the way it is

It is quite nice for the simple purpose it was made for, BUT IT COULD BE BETTER!
Oh, if only I knew how to javascript.

It probably could, but remember that kingdaro ripped a script and doesn't have much knowledge with it
From what he has told us anyways

I find it pretty sad you guys need a script to ignore some guy.

I find it pretty sad you guys need a script to ignore some guy.
It's better than everyone arguing with him uselessly

It's better than everyone arguing with him uselessly
So basically no self control is what you're saying?

I find it pretty sad you guys need a script to ignore some guy.

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.

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


So basically no self control is what you're saying?
I could be saying a lot of things, but if you want to say it's that way I'm fine with that

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: [Select]
// ==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;
}
}

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