File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ function currentInProjectRepo() {
3838}
3939
4040module . exports = {
41- registerMenu
41+ registerMenu,
42+ show
4243}
4344
Original file line number Diff line number Diff line change 1- const { registerMenu} = require ( "../config/ui/menu" ) ;
2- const { Debugger} = require ( "../debugger/debugger" ) ;
1+ const { registerMenu, show} = require ( "../config/ui/menu" ) ;
32const { getUnsafeWindow} = require ( "../utils/scope-util" ) ;
43const { DocumentHook} = require ( "../hook/document-hook" ) ;
54const { initConfig, getGlobalConfig} = require ( "../config/config" ) ;
@@ -16,18 +15,12 @@ function init() {
1615 // 增加可视化的配置
1716 registerMenu ( ) ;
1817
19- // 增加一个测试断点
20- // const jsonpDebugger = new Debugger("test", true, "match-regexp", /xxxxx/);
21- // getGlobalConfig().addDebugger(jsonpDebugger);
22-
2318 // 为document增加hook点
24- const unsafeWindow = getUnsafeWindow ( ) ;
25- new DocumentHook ( unsafeWindow . document ) . addHook ( ) ;
19+ new DocumentHook ( getUnsafeWindow ( ) . document ) . addHook ( ) ;
2620
2721 if ( GM_getValue ( "js-script-hook-open-configuration" ) ) {
2822 GM_setValue ( "js-script-hook-open-configuration" , false ) ;
29- const configurationComponent = new ConfigurationComponent ( ) ;
30- configurationComponent . show ( ) ;
23+ show ( ) ;
3124 }
3225
3326}
You can’t perform that action at this time.
0 commit comments