From ae7c49edd9228164007dea40226bb6981c2e0b83 Mon Sep 17 00:00:00 2001 From: Feast <1353216996@qq.com> Date: Wed, 1 Mar 2023 17:50:58 +0800 Subject: [PATCH] Update DocCleaner.user.js --- DocCleaner.user.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/DocCleaner.user.js b/DocCleaner.user.js index 6d421d0..c938a07 100644 --- a/DocCleaner.user.js +++ b/DocCleaner.user.js @@ -866,29 +866,31 @@ } ); - //学习啦 + //学习啦 Startup.on( "www.xuexila.com", (context) => { document.body.oncopy = null; - Global.inject(context.Visual.Element); + Global.inject(context.Visual.Element); Global.loadVue(); Global.loadElement(); }, (context, __, plugins) => { document.body.oncopy = null; - let app = Template.CreateApp( + let app = Template.CreateApp( context.App, plugins, context.Visual.Element, () => { context.Visual.show(); } - ); - app.$message.success("清除 Ctrl+C 限制"); - },{ - Visual: new UIElement("div", "Feast-app", true),App:{} - } + ); + app.$message.success("清除 Ctrl+C 限制"); + }, + { + Visual: new UIElement("div", "Feast-app", true), + App: {}, + } ); //在以上区域编写