EVERYTHING IS RICKROLL

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

Advertisement:

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

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

})();