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

댓글 남기기

댓글을 남기려면 로그인하세요.