Advertisement
Aidiera

atomizer's replacer

May 2nd, 2015
1,061
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. // ==UserScript==
  2. // @name update NMaps links to Appspot links
  3. // @namespace atomizer
  4. // @description Replace "http://(www.)nmaps.net/" with "https://numa-notdot-net.appspot.com/"
  5. // @include https://numa-notdot-net.appspot.com/*
  6. // @include https://forum.droni.es/*
  7. // @include https://n.wikia.com/wiki/*
  8. // ==/UserScript==
  9. (function () {
  10. var OLDDOMAIN = /^https?:\/\/(www.)?nmaps.net/i;
  11. var NEWDOMAIN = 'https://numa-notdot-net.appspot.com';
  12. var links = document.links;
  13. for (var i = 0; i < links.length; i++) {
  14. var href = links[i].href;
  15. links[i].href = href.replace(OLDDOMAIN, NEWDOMAIN);
  16. }
  17. }) ();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement