「User:Irukaza/js/editConflict.js」:修訂間差異
跳至導覽
跳至搜尋
無編輯摘要
imported>=海豚= 無編輯摘要 |
imported>=海豚= 無編輯摘要 |
||
| 行 24: | 行 24: | ||
needCheckFlag = false; | needCheckFlag = false; | ||
setTimeout(async () => { | setTimeout(async () => { | ||
disable(wpSave.attr("disabled", "disabled").val("正在保存......")); | disable(wpSave.attr("disabled", "disabled").val("正在保存......")); | ||
for (let i = 1; i <= 4; i++) { | for (let i = 1; i <= 4; i++) { | ||
| 行 100: | 行 89: | ||
}).attr("title", conflictAlert)); | }).attr("title", conflictAlert)); | ||
} else { | } else { | ||
var div = document.querySelector(".mw-editform #wpTextbox1"); | |||
div.innerHTML = div.innerHTML | |||
.replace(/誰/g,'谁') | |||
.replace(/鸞/g,'鸾') | |||
.replace(/鹵/g,'卤') | |||
.replace(/鹹/g,'咸') | |||
.replace(/鹺/g,'鹾') | |||
.replace(/鹻/g,'碱') | |||
.replace(/鹼/g,'碱') | |||
.replace(/鹽/g,'盐') | |||
.replace(/麗/g,'丽'); | |||
wpSave.val("正在保存......"); | wpSave.val("正在保存......"); | ||
editform.submit(); | editform.submit(); | ||