Sleazy Fork is available in English.

討論 » 建立請求

怎样把网页里的链接替换

§
發表於:2019-11-28

怎样把网页里的链接替换

把网页里的 attachment.php?aid=3339398 替换成attachment.php?aid=3339398&clickDownload=1

https://greasyfork.org/zh-CN/scripts/373033-bt之家附件直下 类似于这个

§
發表於:2020-01-17

(function (){ var nodes = document.querySelectorAll("a"); for(var node of nodes){ if(node.href.includes("attachment.php?aid=")){ node.href+="&clickDownload=1"; } } })();

發表回覆

登入以回復