Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

怎样把网页里的链接替换

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

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

Comments

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

Sign In or Register to comment.