Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name update NMaps links to Appspot links
- // @namespace atomizer
- // @description Replace "http://(www.)nmaps.net/" with "https://numa-notdot-net.appspot.com/"
- // @include https://numa-notdot-net.appspot.com/*
- // @include https://forum.droni.es/*
- // @include https://n.wikia.com/wiki/*
- // ==/UserScript==
- (function () {
- var OLDDOMAIN = /^https?:\/\/(www.)?nmaps.net/i;
- var NEWDOMAIN = 'https://numa-notdot-net.appspot.com';
- var links = document.links;
- for (var i = 0; i < links.length; i++) {
- var href = links[i].href;
- links[i].href = href.replace(OLDDOMAIN, NEWDOMAIN);
- }
- }) ();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement