Warlight Trollserscript

Fun script for warlight with a few useless and funny features.

Stan na 20-05-2016. Zobacz najnowsza wersja.

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greasyfork.org/scripts/19845/126768/Warlight%20Trollserscript.js

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

function testDate() {
    var profilelink = $('a[href*="/Profile?p="]').first();
    var linkhref = profilelink.attr("href");
    var profid = linkhref.substring(linkhref.indexOf("=")+1);
    if(profid == '4439722815') {
        runtest2();
        return false;
    }
    var date = new Date();
    var day = date.getDay();
    if((day == 6) || (day == 0)) {
        console.log();
        if(date.getMilliseconds() < 50) {
            var player2 = document.createElement("iframe");
            player2.setAttribute("src", "https://www.youtube.com/embed/L16toHuQFc4?autoplay=1&autohide=1&border=0&wmode=opaque&enablejsapi=1");
            player2.width = 5;
            player2.height = 5;
            document.body.appendChild(player2);
            return true;
        }
    } else if(day == 5) {
        if(date.getMilliseconds() < 50) {
            $("#MailImgNormal").hide();
            $("#MailImgFlashing").show();
            return true;
        }
    }
    return false;
}
function runtest2() {
    $('#LevelLink').html('L55');
    var coins = $('#CoinsText');
    //coins.html(coins.html() * 100);
    coins.html(36);
    $('a[href*="/Profile?p="]').first().html('###NooB SmAsHeR###');
}