Fun script for warlight with a few useless and funny features.
Version vom
Dieses Skript sollte nicht direkt installiert werden. Es handelt sich hier um eine Bibliothek für andere Skripte, welche über folgenden Befehl in den Metadaten eines Skriptes eingebunden wird // @require https://update.greasyfork.org/scripts/19845/126768/Warlight%20Trollserscript.js
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###');
}