VideoPlayerMagic-Styles

CSS Styles for VideoPlayerMagic

ของเมื่อวันที่ 15-02-2024 ดู เวอร์ชันล่าสุด

สคริปต์นี้ไม่ควรถูกติดตั้งโดยตรง มันเป็นคลังสำหรับสคริปต์อื่น ๆ เพื่อบรรจุด้วยคำสั่งเมทา // @require https://update.sleazyfork.org/scripts/487369/1327742/VideoPlayerMagic-Styles.js

// ==UserScript==
// @name         VideoPlayerMagic-Styles
// @namespace    vpm-s
// @version      2024-02-15_3
// @description  CSS Styles for VideoPlayerMagic
// @author       SimplyMe
// @license      MIT
// @grant        none
// ==/UserScript==

let vpmStyles = {
    'www.pornhub.com': `div#player.maximized {position: fixed !important; top: 0; left: 0; height: 100vh !important; width: 100vw !important; z-index: 5000;}
                        div#player.maximized video-element {height: inherit; width: inherit;}`
};

function injectStyles() {
    let styleTag = document.createElement('style');
    styleTag.innerHTML = vpmStyles[document.location.host];
    document.head.appendChild(styleTag);
}