样式优化

scripts
王良 2024-04-24 10:48:25 +08:00
parent 93d7a63c11
commit 3193e8a00f
1 changed files with 3 additions and 3 deletions

View File

@ -159,7 +159,7 @@
// 创建插件div // 创建插件div
api.createPluginDiv = (options) => { api.createPluginDiv = (options) => {
options = { options = {
...{ name: "油猴脚本" }, ...{ name: "未知名的脚本" },
...options ...options
} }
@ -223,14 +223,14 @@
// 隐藏插件 // 隐藏插件
api.hidePlugin = () => { api.hidePlugin = () => {
if (context.pluginElement) { if (context.pluginElement) {
context.pluginElement.style.display = "none"; context.pluginElement.classList.add("____ds-tampermonkey-hide___");
} }
} }
// 显示插件 // 显示插件
api.showPlugin = () => { api.showPlugin = () => {
if (context.pluginElement) { if (context.pluginElement) {
context.pluginElement.style.display = "block"; context.pluginElement.classList.remove("____ds-tampermonkey-hide___");
} }
} }