From 5a7256b878973c886dcd83932ce5285c4da7a3b8 Mon Sep 17 00:00:00 2001 From: Bhsd <55071315+bhsd-harry@users.noreply.github.com> Date: Mon, 22 Jan 2024 01:13:00 +0800 Subject: [PATCH 1/2] feat(Gadget-wikieditor-highlight.js): multiple selections Depend on codemirror-mediawiki@2.1.11 --- .../MediaWiki:Gadget-wikieditor-highlight.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gadgets/wikieditor-highlight/MediaWiki:Gadget-wikieditor-highlight.js b/src/gadgets/wikieditor-highlight/MediaWiki:Gadget-wikieditor-highlight.js index f62f150b..b97780c7 100644 --- a/src/gadgets/wikieditor-highlight/MediaWiki:Gadget-wikieditor-highlight.js +++ b/src/gadgets/wikieditor-highlight/MediaWiki:Gadget-wikieditor-highlight.js @@ -28,6 +28,7 @@ "highlightActiveLine", "bracketMatching", "closeBrackets", + "allowMultipleSelections", ]); const [config] = await Promise.all([ libCachedCode.getCachedCode("https://testingcf.jsdelivr.net/npm/wikiparser-node/config/moegirl.json"), From a5165f9415280ba740ce2d66efbb30312a67e790 Mon Sep 17 00:00:00 2001 From: Bhsd <55071315+bhsd-harry@users.noreply.github.com> Date: Mon, 22 Jan 2024 01:32:26 +0800 Subject: [PATCH 2/2] Update MediaWiki:Gadget-wikieditor-highlight.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 临时加速缓存更新 --- .../MediaWiki:Gadget-wikieditor-highlight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gadgets/wikieditor-highlight/MediaWiki:Gadget-wikieditor-highlight.js b/src/gadgets/wikieditor-highlight/MediaWiki:Gadget-wikieditor-highlight.js index b97780c7..fabeb9bb 100644 --- a/src/gadgets/wikieditor-highlight/MediaWiki:Gadget-wikieditor-highlight.js +++ b/src/gadgets/wikieditor-highlight/MediaWiki:Gadget-wikieditor-highlight.js @@ -18,7 +18,7 @@ const script = document.createElement("script"); script.addEventListener("load", resolve); script.type = "module"; - script.src = "https://testingcf.jsdelivr.net/npm/@bhsd/codemirror-mediawiki/mw/dist/base.min.js"; + script.src = "https://testingcf.jsdelivr.net/npm/@bhsd/codemirror-mediawiki/mw/dist/base.js"; document.head.append(script); }); }