EVERYTHING IS RICKROLL

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

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

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);
    });

})();