>>4
(function(){
var posts = document.getElementsByClassName('post');
var i = posts.length;
while(i--) {
var post = posts[i];
var n = post.getElementsByClassName('postername');
if(!(n.length))
continue;
var t = n[0].textContent;
if(!t.match('^Anonymous$')) {
post.parentNode.removeChild(post);
}
}
})();
>6,7
I've tried at least half a dozen of these filter scripts and not a single damn one has ever worked. I have other 4chan scripts that work fine, WRRRRRRRYYYYYYYYYYYY!
>>11
Try this one:
// ==UserScript==
// @name fix prog
// @description fixes all of *!FrOzEn2BUo's posts on /prog/
// @namespace http://dis.4chan.org/prog/
// @include http://dis.4chan.org/*;
// @version 1.?
// ==/UserScript==
for each (var div in document.getElementsByTagName('div'))
if (/^post\b/.test(div.className)
&& /^!FrOzEn2BUo/.test(div.getElementsByTagName('span')[4].innerHTML))
div.parentNode.removeChild(div)
>>11
Before you install it, remove the ; from the @include field.
Name:
Anonymous2009-01-10 14:30
>>13
No joy, I even upgraded to FF3 (and got back my bookmarks from 2 years ago in the process), grrr.
Name:
Anonymous2009-01-10 15:16
>>15
Do you have Greasemonkey installed? Try disabling the rest of your extensions and restarting.
Name:
Anonymous2009-01-10 15:55
>>16
I don't have the slightest clue why it doesn't work. Using the script from >>13 currently. Disabled all other extensions and other Greasemonkey scripts. All the error console says is: