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

disable the script to see my post above, lol


disable the script to see my post above, lol
Wait how do you use those?

Wait how do you use those?

Tampermonkey for Chrome, Greasemonkey for Firefox.

So people can quote me now and see it?

Tampermonkey for Chrome, Greasemonkey for Firefox.
Ok good it works.

Oh my god this script is beautiful.

Oh my god this script is beautiful.



I can't help but notice the irony.

Latest post by -snip-
i lol'd

Code: [Select]
[code]
// ==UserScript==
// @name       User Removal
// @namespace  
// @version    0.3
// @description  something useful
// @include    http://forum.blockland.us/*
// @copyright  2012+, Kingdaro
// ==/UserScript==

// var postForm = document.getElementById('quickModForm');
var posts = document.getElementsByTagName('td');
var n = ['action=profile;u=[b]36235[/b]'];

var i;
for (i=0;i<=posts.length;i++){
var v = posts[i];
var str = v.innerHTML;

if (str.search(n)>-1){
if (v.className=='windowbg' || v.className=='windowbg2'){
posts[i].innerHTML = '<div style=" \
text-align:center; \
">-snip-</div>';
}
}
}

Change the bolded part to anyone else's profile ID to block them too. I'd just make a new script/entry in Tamper/Greasemonkey.[/code]

I wonder if all new posts show up as blank now.

I love you for making that script, now if only everyone in the topic used it

I love you for making that script, now if only everyone in the topic used it

Is your own post snipped?

so whats with all this greasemonkey talk?
sounds like you guys did something


i'll add something and if it's relevant you can decide
Quote
Yes it is possible. I've written a Greasemonkey script to block users on a forum before. It needs to be tailored to that site though as far as I know.

The basic mechanics are you create an array of usernames/user ID's/whatever and save as LocalStorage, then on page load you iterate through that array, and select the element on the page which has the innerHTML value equal to the name/ID, then hide the appropriate parent element with display:none;

Edit: here is a basic implementation: http://pastebin.com/hScM8FBU It adds links to ignore users on their profile page. so you'll need to adapt the url checking, and of course adapt the element selectors


also, i have no idea how to use greasemonkey and i bet others don't either. you should write down exactly how to do whatever you did.
« Last Edit: January 19, 2012, 10:44:44 AM by Blastdown »

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