GeoGuessr Custom Map Sizes

Edit 'width' and 'height' for each map size to fit your needs // If you can't click the "Increase button" the Game already thinks you are at the max-height it can go // If you want to always have a big map edit the values for 'size-1' as that is the default one that triggers when starting a new game // Some sizes like the auto-shrink height are fixed I believe // Don't forget to save the script and refresh the page after each change

目前為 2019-03-01 提交的版本,檢視 最新版本

// ==UserScript==
// @name         GeoGuessr Custom Map Sizes
// @namespace    https://greasyfork.org/en/users/250979-mrmike
// @version      0.1
// @description  Edit 'width' and 'height' for each map size to fit your needs // If you can't click the "Increase button" the Game already thinks you are at the max-height it can go // If you want to always have a big map edit the values for 'size-1' as that is the default one that triggers when starting a new game // Some sizes like the auto-shrink height are fixed I believe // Don't forget to save the script and refresh the page after each change
// @author       MrAmericanMike
// @include      /^(https?)?(\:)?(\/\/)?([^\/]*\.)?geoguessr\.com($|\/.*)/
// @grant        none
// @run-at       document-start
// ==/UserScript==

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css.replace(/;/g, ' !important;');
    head.appendChild(style);
}


addGlobalStyle (`
/* Map at size 0 and active (Hoover) */
.guessmap.size-min.is-active.size-0 .guessmap-map{
  width: 560px;
  height: 300px;
}

/* Map at size 1 and active (Hoover) */
.guessmap.is-active.size-1 .guessmap-map{
  width: 780px;
  height: 480px;
}

/* Map at size 2 and active (Hoover) */
.guessmap.is-active.size-2 .guessmap-map{
  width: 1080px;
  height: 560px;
}

/* Map at size 3 and active (Hoover) */
.guessmap.is-active.size-3 .guessmap-map{
  width: 1650px;
  height: 720px;
}

/* Map set to size 0 and not active */
.guessmap.size-min.size-0 .guessmap-map{
  width: 160px;
  height: 60px;
}

/* Map set to size 1 and not active */
.guessmap.size-1 .guessmap-map{
  width: 160px;
  height: 60px;
}

/* Map set to size 2 and not active */
.guessmap.size-2 .guessmap-map{
  width: 160px;
  height: 60px;
}

/* Map set to size 3 and not active */
.guessmap.size-3 .guessmap-map{
  width: 160px;
  height: 60px;
}

.guessmap-map{
  margin: 0px;
}


`);