From 392ef9646dd0f8f01e900f79fcba25eed1c3314d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E6=B5=B7?= Date: Mon, 7 Aug 2023 16:32:37 +0800 Subject: [PATCH] fix: dependencies --- src/gadgets/edit/MediaWiki:Gadget-edit.js | 2 +- src/gadgets/edit/definition.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gadgets/edit/MediaWiki:Gadget-edit.js b/src/gadgets/edit/MediaWiki:Gadget-edit.js index 4b4160a5..45d59534 100644 --- a/src/gadgets/edit/MediaWiki:Gadget-edit.js +++ b/src/gadgets/edit/MediaWiki:Gadget-edit.js @@ -99,7 +99,7 @@ $(() => { // 非维护组、技术组成员提出方针编辑请求时提醒需要走提案 if ( - new URLSearchParams(location.search).get("preload").startsWith("Template:编辑请求/") && + new URLSearchParams(location.search).get("preloadtitle").startsWith("编辑请求") && mw.config.get("wgNamespaceNumber") === 5 && mw.config.get("wgAction") === "edit" && !mw.config.get("wgUserGroups").some((value) => ["patroller", "sysop", "techeditor", "scripteditor", "interface-admin", "staff"].includes(value)) diff --git a/src/gadgets/edit/definition.yaml b/src/gadgets/edit/definition.yaml index 98a298bf..58431369 100644 --- a/src/gadgets/edit/definition.yaml +++ b/src/gadgets/edit/definition.yaml @@ -21,7 +21,8 @@ rights: peers: [] -dependencies: [] +dependencies: + - ext.gadget.libOOUIDialog _sites: - zh