Off Topic > Off Topic

My Little Pony: Friendship for Blockheads: General V2

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

masterockets:

them playing makes me want to have everyone play a game together again
but we can never decide on which game

Regulith:


--- Quote from: Black and White on January 20, 2012, 01:10:50 AM ---"Dash your so small??!"

--- End quote ---

What about her so small?

Kingdaro:

hey guys, more userscriptiness


--- Code: ---// ==UserScript==
// @name       ThreadShield
// @namespace 
// @version    0.5
// @description  you'll never have to see that handicap again...even if it's me.
// @include    http://forum.blockland.us/*
// @copyright  2012+, Kingdaro
// ==/UserScript==

/*
Changelist:

0.4
-Allows for multiple names - surprised someone hasn't done this for me, it was piss easy, haha.
-SHOULD replace /just/ the name on the topic index under latest poster, it is returning a true search value so there shouldn't be any problems.
If there are please report them.

0.41
-Fixes the destroying the entire userlist if a blocked user is online
-Snips blocked names/profiles in the forum index

0.5
-Renamed to ThreadShield for blocking in only certain threads, credit to Nickelbob Ultra for the idea.
*/

var n = [

//enter the profiles of your people you want to block here, just after the "index.php?" part
//surround it in single or double quotes
//or you could enter the name instead to block anything that involves that user.

'Lørd Tøny',
'action=profile;u=4325',
];

var replaceText = '-snip-' //whatever you want it to say in place of removed posts.
var thread = 'topic=159737' //the "topic=" portion of the topic ID you would like to block, in this case it's the pony topic.

/* EDIT ANYTHING BELOW AND I WILL loving MURDER YOU
nah it's open source, just give credit where it's due :) */

var posts = document.getElementsByTagName('td');
var i;
var ii;
var nil;
for (i=0;i<=posts.length;i++){
for (ii=0;ii<n.length;i++){
var v = posts[i];
var vv = n[ii]
var str = v.innerHTML;

if (str.search(vv)>-1){
if (v.className=='windowbg' || v.className=='windowbg2'){
                            if (location.search.search(thread)>=0){
if (posts[i].width!='22%'){
if (str.search('Users active in past 15 minutes:')<0){
posts[i].innerHTML = '<div style=" \
text-align:center; \
">'+replaceText+'</div>';
}
}else{
var links = posts[i].getElementsByTagName('a');
links[1].innerHTML = replaceText;
links[1].href = nil
}
                        }
}
}
}
}

--- End code ---

thread-based blocking.

i actually had some fixes in place but i removed them because i was going to make this for just personal use and i didn't mind some of the problems, if they're too big of an issue i can make a quick 0.51 fix

i would make a thread but this is my special little treat for you guys.

Regulith:

Frankly I find the first script you made to be the best

All I ever wanted was something that removed Tony but still let me know if he posted to reduce any chance of confusion, and that's exactly what it does

BladeOfTheHorizon:


--- Quote from: Kingdaro on January 19, 2012, 11:53:00 PM ---good job going where you'll probably see it anyway

--- End quote ---

it seemed to lessen down when i posted that

probably will be some on the next page anyways

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

Go to full version