.
*** NSFW ****
I need to use a user script to replace one link to another
https://www.thenude.eu/index.php?page=t ... odel_pages - to: http://www.amkingdom.com/model/photo/
For now i got: http://www.amkingdom.com/model/photo/ang127&class=model - but how to remove "&class=model_pages" on the end
Code: Select all
// ==UserScript==
// @name ATKGALLERIA_1
// @namespace http://www.thenude.eu/
// @version 1.0
// @description try to take over the world!
// @author You
// @match www.thenude.eu/*
// @include www.thenude.eu/*
// @exclude
// @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('https://www.thenude.eu/index.php?page=tnap&action=outgoingLink&out_url=http%3A%2F%2Frefer.ccbill.com%2Fcgi-bin%2Fclicks.cgi%3FCA%3D903646-0000%26PA%3D672208%26HTML%3Dhttp%3A%2F%2Fwww.amkingdom.com%2Ftour%2Fmodel%2F',
'http://www.amkingdom.com/model/photo/');
}