EVERYTHING IS RICKROLL

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(У мене вже є менеджер скриптів, дайте мені встановити його!)

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.

(I already have a user style manager, let me install it!)

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

})();