样式优化
parent
93d7a63c11
commit
3193e8a00f
|
@ -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___");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue