Remove Spam

By Steinn Last update Nov 7, 2010 — Installed 236 times.

There are 3 previous versions of this script.

// ==UserScript==
// @name           Remove Spam
// @namespace      http://stive.knoxx.net
// @require        http://code.jquery.com/jquery-1.3.2.min.js
// @include        http://*.orkut.tld/CommTopics?cmm=*
// ==/UserScript==

var spans = new Array("Imagens no Status 07/11/2010","Imagens no Status 08/11/2010","Imagens no Status 09/11/2010","Imagens no Status 09/11/2010","Veja como colocar fotos no status[2]", "Gente vejam isso =O","[OFF] Hipótese que eleição tenha sido sabotada", "Gente meu orkut esta doido o que aconteceu ?", "Aprenda colocar vídeo no STATUS � vejam");

$("table.displaytable tr").each(function(){
    var title;
    title = $("td:eq(1) a", this).text();
    IsASpam = (spans.join().indexOf(title)>=0);
    if(IsASpam){
        $(".normcheck:eq(0)", this).attr('checked', true);
    }
    IsASpam=false;
});

var button;
button =  '<span class="grabtn"><a id="removespam" class="btn" href="javascript: void(0);">Remove Spam</a></span><span class="btnboxr"><img height="1" width="5" alt="" src="http://static1.orkut.com/img/b.gif"></span>';

$(".parabtns").append(button);

$("#removespam").live('click', function(){
    console.log("Aff");
    $("table.displaytable tr").each(function(){
        IsChecked = $(".normcheck:eq(0)", this).attr('checked');
        if(IsChecked){
            Uid = $("td:eq(2) a:eq(1)", this).attr('href');;
            console.log(Uid);
            window.open(Uid);
            with(unsafeWindow){
                deleteTopics(document.topicsForm);
            }
        }
    });
    return false;
});