New Userscript

绕开chrome单次下载数量限制

当前为 2025-01-17 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name New Userscript
  3. // @namespace http://tampermonkey.net/
  4. // @version 2025-01-17
  5. // @description 绕开chrome单次下载数量限制
  6. // @author whq
  7. // @match https://ncm.worthsee.com/
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=worthsee.com
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. window.alert("csss");
  17.  
  18.  
  19.  
  20. window.downloadAll=function () {
  21. var els = document.getElementsByClassName("result-download-link");
  22. var index = 0;
  23.  
  24. function downloadNext() {
  25. if (index < els.length) {
  26. els[index].click();
  27. index++;
  28. setTimeout(downloadNext, 100); // 延迟100毫秒后下载下一个文件
  29. }
  30. }
  31. downloadNext();
  32. }
  33. })();