「User:Irukaza/js/editConflict.js」:修訂間差異
跳至導覽
跳至搜尋
無編輯摘要
imported>=海豚= 無編輯摘要 |
imported>=海豚= 無編輯摘要 |
||
| 第8行: | 第8行: | ||
const wgCurRevisionId = mw.config.get("wgCurRevisionId"); | const wgCurRevisionId = mw.config.get("wgCurRevisionId"); | ||
let needCheckFlag = true; | let needCheckFlag = true; | ||
const api = new mw.Api({ timeout: 5000 }); | |||
const wpSave = $("#wpSave"); | const wpSave = $("#wpSave"); | ||
const editform = $("#editform"); | const editform = $("#editform"); | ||
| 第47行: | 第47行: | ||
window.open(`https://www.hmoegirl.com/?diff=${result.query.pages[pageid].revisions[0].revid}`, "_blank").focus(); | window.open(`https://www.hmoegirl.com/?diff=${result.query.pages[pageid].revisions[0].revid}`, "_blank").focus(); | ||
}); | }); | ||
disable($("# | disable($("#wikieditor").on("click", () => { | ||
setTimeout(() => { | setTimeout(() => { | ||
alert(conflictAlert); | alert(conflictAlert); | ||