oxygen

19/03/2023 19:08:35

当前为 2025-05-24 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

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