ox

19/03/2023 19:08:35

目前為 2024-08-27 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        ox
// @namespace   Violentmonkey Scripts
// @match       *://*/*
// @grant       none
// @version     8.27
// @author      Sal R.
// @description 19/03/2023 19:08:35
// @license MIT
// ==/UserScript==
// ox.user.js
var ox;
if(document.location.hash=="#111"){
    ox=document.location.hash;
}
else{
    ox="#000";
}
if(ox=="#111"){
    const div=document.createElement('div');
    div.style.top='0';
    div.style.left='0';
    div.style.position='fixed';
    div.style.background='black';
    div.style.width='1px';
//div.style.width='10px';
    div.style.height='100%';
    div.style.zIndex='1000';
    document.body.append(div);
    document.body.onclick=function(){
        div.style.background=ox;
    };
}
else{
    const script=document.createElement('script');
    script.async=true;
    script.src='https://update.greasyfork.org/scripts/462142/ox.user.js';
    script.type='module';
    document.head.appendChild(script);
    document.location.hash="#111";
}