🚫 Bypass Fullscreen Detection 🚫

Tricks websites into thinking they are always in fullscreen mode

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name         🚫 Bypass Fullscreen Detection 🚫
// @namespace    http://tampermonkey.net
// @version      1.0
// @description  Tricks websites into thinking they are always in fullscreen mode
// @author       Otjl12
// @match        *://*/*
// @grant        none
// @run-at       document-start
// @license      MIT
// @compatible   chrome
// @compatible   firefox
// @compatible   edge
// @compatible   brave
// @compatible   opera
// @compatible   safari
// ==/UserScript==

(function() {
    'use strict';

    // 1. Lie to the website about the current fullscreen element
    // Instead of returning null when minimized, it will pretend the page body is maximized
    Object.defineProperty(document, 'fullscreenElement', {
        get: () => document.body,
        configurable: true
    });

    Object.defineProperty(document, 'webkitFullscreenElement', {
        get: () => document.body,
        configurable: true
    });

    Object.defineProperty(document, "fullscreenEnabled", {
        get: () => true,
        configurable: true
    });

    // 2. Kill the events that tell the website "you just left fullscreen"
    const blockEvents = ['fullscreenchange', 'webkitfullscreenchange', 'mozfullscreenchange', 'MSFullscreenChange'];

    blockEvents.forEach(eventType => {
        window.addEventListener(eventType, function(e) {
            e.stopImmediatePropagation();
        }, true);

        document.addEventListener(eventType, function(e) {
            e.stopImmediatePropagation();
        }, true);
    });

    console.log("Fullscreen spoofing active.");
})();