angewNoEPDF

To rewrite the link end by pdf

目前为 2017-07-17 提交的版本。查看 最新版本

// ==UserScript==
// @name         angewNoEPDF
// @namespace    no
// @version      0.01
// @description  To rewrite the link end by pdf
// @author       fanll
// @match        http://onlinelibrary.wiley.com/*
// @grant        none
// ==/UserScript==

var links,thisLink;
links = document.evaluate("//a[@href]",
    document,
    null,
    XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
    null);

for (var i=0;i<links.snapshotLength;i++) {
    var thisLink = links.snapshotItem(i);

    thisLink.href = thisLink.href.replace(/epdf/i, 'pdf');

}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址