Discussions » Creation Requests

怎样把网页里的链接替换

§
Posted: 2019-11-28

怎样把网页里的链接替换

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

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

§
Posted: 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"; } } })();

Post reply

Sign in to post a reply.