// ==UserScript==
// @name          Streetmap Grid Convertor
// @namespace     http://www.unixdaemon.net/gmscripts/
// @description   Show a larger than usual, 5x5 grid on streetmap
// @include       http://streetmap.co.uk/newmap.srf*
// @include       http://www.streetmap.co.uk/newmap.srf*
// ==/UserScript==

// this forces all maps to size 2. if you don't like this tweak the code.

(function() {
  if (!(window.location.href.match(/\&z=/))) {
    window.location.replace(window.location + "&z=2");
  } else {
    if ((window.location.href.match(/\&z=1/))) {
      window.location.replace(window.location.href.replace(/\&z=1/, "&z=2"));
    }
    if ((window.location.href.match(/\&z=3/))) {
      window.location.replace(window.location.href.replace(/\&z=3/, "&z=4"));
    }
    if ((window.location.href.match(/\&z=5/))) {
      window.location.replace(window.location.href.replace(/\&z=5/, "&z=6"));
    }
  }

})();
