Greasy Fork is available in English.

John Legend Everywhere!

John Legend is the brand ambassador of Neopets and now the ambassador of your screen. Make every Neopets page LEGENDARY! He appears randomly every 15 pages or so after between 1 and 5 seconds.

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ć!)

Advertisement:

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ć!)

Advertisement:

// ==UserScript==
// @name         John Legend Everywhere!
// @namespace    https://lel.wtf
// @license      GNU GPLv3
// @version      1.0
// @description  John Legend is the brand ambassador of Neopets and now the ambassador of your screen. Make every Neopets page LEGENDARY! He appears randomly every 15 pages or so after between 1 and 5 seconds.
// @author       Lamp
// @include      https://www.neopets.com/*
// @match        https://www.neopets.com/*
// @icon         https://lel.wtf/johnlegend.png
// @grant        none
// ==/UserScript==

(function() {

    function random(min, max) {
  return Math.floor(Math.random() * (max - min + 1)) + min;
}

    function johnlegend() {
        var img = document.createElement('img');
        // img.width = "60";
        // img.height = "60";
        img.id = 'johnlegend';
        img.src = "https://lel.wtf/johnlegend.png";
        bottom = 300;
        left = -450;
        rotate = 310;
        img.setAttribute("style", "z-index:999;transition: left 2s ease-in-out .5s;position:fixed;left:" + left + "px;bottom:" + bottom + "px;transform: scaleX(-1) rotate(" + rotate + "deg);-moz-transform: scaleX(-1) rotate(" + rotate + "deg);-o-transform: scaleX(-1) rotate(" + rotate + "deg);-webkit-transform: scaleX(-1) rotate(" + rotate + "deg); filter: FlipH;");
        document.getElementsByTagName('body')[0].append(img);


    }

    function hidelegend() {

        document.getElementById('johnlegend').style.left = "-450px";
    }

    function showlegend() {

        document.getElementById('johnlegend').style.left = "-150px";
        setTimeout(() => {
            hidelegend();
        }, 5000);
    }
    johnlegend();



    islegend = random(1, 15);
    whenlegend = random(1000, 5000);


    if (islegend == 11){
    setTimeout(() => {
        showlegend();
    }, whenlegend);
    }

    console.log(islegend);
    console.log(whenlegend);

})();