// ==UserScript== // @name 全局工具箱 // @namespace http://iapp.run // @version 0.2.1 // @description 添加一个按钮到每个网页左上方的位置,点击后显示工具箱的菜单 // @author zero-ljz // @homepage https://github.com/zero-ljz/scripts/blob/main/greasemonkey/tools.js // @license MIT // @match *://*/* // @grant GM_registerMenuCommand // @grant GM_info // @grant GM_xmlhttpRequest // @require https://openuserjs.org/src/libs/sizzle/GM_config.js // @grant GM_getValue // @grant GM_setValue // @grant GM.getValue // @grant GM.setValue // @grant GM_addStyle // @downloadURL https://update.greasyfork.icu/scripts/469339/%E5%85%A8%E5%B1%80%E5%B7%A5%E5%85%B7%E7%AE%B1.user.js // @updateURL https://update.greasyfork.icu/scripts/469339/%E5%85%A8%E5%B1%80%E5%B7%A5%E5%85%B7%E7%AE%B1.meta.js // ==/UserScript== (function () { "use strict"; GM_addStyle(` .gm-acrylic-box { background-color: rgba(255, 255, 255, 0.6); color: #333; box-shadow: inset 1px 1px rgb(255 255 255 / 20%), inset -1px -1px rgb(255 255 255 / 10%), 1px 3px 24px -1px rgb(0 0 0 / 15%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); */ } .gm-glass-box { background-image: linear-gradient(125deg, rgba(64, 64, 64, 0.3), rgba(64, 64, 64, 0.2) 70%); /* background-image: linear-gradient(125deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2) 70%); */ color: #ADADAD; box-shadow: inset 1px 1px rgb(255 255 255 / 20%), inset -1px -1px rgb(255 255 255 / 10%), 1px 3px 24px -1px rgb(0 0 0 / 15%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } `); // 使用