Block bloody spammers
// ==UserScript==
// @name           Block users
// @namespace      file:///home/quake/blockuser.js
// @include        http://*.wikidot.com/*
// @include        http://*.wikidot.dev/*
// @match          http://*.wikidot.com/*
// @match          http://*.wikidot.dev/*
// ==/UserScript==
 
var runCode = function() {
    var $ = jQuery;
    $('span.printuser').livequery(function() {
        var nick_name = $("a", this).text();
        if (nick_name) {
            var link = 'https://spam-killer.wikidot.com/spam-killer.php?kill_user=' + encodeURIComponent(nick_name);
            $(this).prepend('<a href="' + link + '" style="color: red; font-weight: bold; font-size: 180%; text-decoration: none; padding: 0 3px" target="_blank">☠</a> ');
        }
    });
};
 
function addToBody(callback) {
    var script = document.createElement("script");
    script.textContent = "(" + callback.toString() + ")();";
    document.body.appendChild(script);
}
 
addToBody(runCode);
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License