angewNoEPDF

To replace epdf to pdf in the link

Versión del día 17/07/2017. Echa un vistazo a la versión más reciente.

// ==UserScript==
// @name         angewNoEPDF
// @namespace    no
// @version      0.01
// @description  To replace epdf to pdf in the link
// @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');

}