Greasy Fork镜像 支持简体中文。

bwiki一键勾选重复文件确认框

在文件上传位置增加一个按钮,点击后一键勾选重复文件确认

  1. // ==UserScript==
  2. // @name bwiki一键勾选重复文件确认框
  3. // @namespace https://wiki.biligame.com/blhx/%E7%94%A8%E6%88%B7:1541127
  4. // @version 0.1
  5. // @description 在文件上传位置增加一个按钮,点击后一键勾选重复文件确认
  6. // @author Flandre Cirno
  7. // @match https://wiki.biligame.com/blhx/index.php*action=*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. function clickAllFileWarning() {
  13. $(".file-warning input").click();
  14. }
  15.  
  16. function clickAllInit() {
  17. var clickAllButton = document.createElement('div');
  18. clickAllButton.onclick = clickAllFileWarning;
  19. clickAllButton.style['text-align'] = "center";
  20. clickAllButton.style['cursor'] = "pointer";
  21. clickAllButton.innerText = "勾选确认重复文件";
  22. document.getElementById("msupload-div").before(clickAllButton);
  23. }
  24.  
  25. if (document.readyState == 'loading') {
  26. document.addEventListener('DOMContentLoaded', clickAllInit);
  27. } else {
  28. setTimeout(clickAllInit, 2500);
  29. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址