EVERYTHING IS RICKROLL

rickroll is life, rickroll is everything, rickroll does not forgive, rickroll does not forget

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Advertisement:

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

Advertisement:

// ==UserScript==
// @name         EVERYTHING IS RICKROLL
// @version      V1.0
// @description  rickroll is life, rickroll is everything, rickroll does not forgive, rickroll does not forget
// @author       SUPA_CBOII
// @license      MIT
// @match        *://*/*
// @namespace https://greasyfork.org/users/1590323
// ==/UserScript==

(function() {
    'use strict';

    const iframe = document.createElement("iframe");
    iframe.style.position = "fixed";
    iframe.style.top = "0";
    iframe.style.left = "0";
    iframe.style.width = "100vw";
    iframe.style.height = "100vh";
    iframe.style.border = "none";
    iframe.style.margin = "0";
    iframe.style.padding = "0";
    iframe.style.zIndex = "999999";

    // YouTube embed with minimal UI
    iframe.src =
        "https://www.youtube.com/embed/dQw4w9WgXcQ" +
        "?autoplay=1" +// autoplay
        "&controls=0" +// hide controls
        "&modestbranding=1" +// hide YouTube logo as much as allowed
        "&rel=0" +// no related videos
        "&showinfo=0" +// hide title (legacy but still helps)
        "&fs=0" +// disable fullscreen button
        "&disablekb=1" +// disable keyboard controls
        "&iv_load_policy=3";// hide annotations

    window.addEventListener("load", () => {
        document.body.innerHTML = "";
        document.body.appendChild(iframe);
    });

})();