Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

JavaScript

Name: Anonymous 2009-04-25 12:35

hai /prog/

any javascriptfags on here?

i need help with a little piece of code for greasemonkey in ff.
i want to hide posts by a certain person in group threads on a social network site similar to facebook.
here http://i44.tinypic.com/e9cc50.png you can see the structure of the element i want to hide. a group thread consists of several elements just like this one (and some surrounding html, of course), only by different posters.
i've tried adapting the 4chan Spam Blocker script (http://tinyurl.com/djhm93) available on userscripts.org.
i've changed "blockquote" into "a" and "RAIDCHAN" into "name of target person" (and removed the || rest), but i can't figure out how to change the line before "i = i - 1;". reading the entries about removeChild and parentNode on selfhtml.org didn't get my any further, either.

TL;DR: how to change script to hide element by target person in picture.

candy girl, catgirls, oreo girl, chubbies, redheads, several camwhores and chans or velma cosplay in return.

Name: Anonymous 2009-04-25 13:34

First, thanks for the replies so far. I've tested it with the inclusion of jQuery in Greasemonkey, but it didn't work. Yes, domain and the person's name were changed. This may sound infinitely noobish, but did I put #3's  code snippet in the right place?

// ==UserScript==
// @name          jQuery
// @namespace     http://www.joanpiedra.com/jquery/greasemonkey
// @description      Play nicely with jQuery and Greasemonkey
// @author        Joan Piedra
// @homepage      http://www.joanpiedra.com/jquery/greasemonkey
// @include       http://www.domain.tld/*
// ==/UserScript==


// Add jQuery
var GM_JQ = document.createElement('script');
GM_JQ.src = 'http://jquery.com/src/jquery-latest.js';
GM_JQ.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(GM_JQ);

// Check if jQuery's loaded
function GM_wait() {
    if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(GM_wait,100); }
    else { $ = unsafeWindow.jQuery; letsJQuery(); }
}
GM_wait();

// All your GM code must be inside this function
function letsJQuery() {
    $("img.obj-profileImage [alt=namehere]").each(function() {
        $(this).parent().parent().remove();
    });

    alert($); // check if the dollar (jquery) function works
   
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List