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 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name GeoGuessr Custom Map Sizes
  3. // @namespace https://greasyfork.org/en/users/250979-mrmike
  4. // @version 0.1
  5. // @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
  6. // @author MrAmericanMike
  7. // @include /^(https?)?(\:)?(\/\/)?([^\/]*\.)?geoguessr\.com($|\/.*)/
  8. // @grant none
  9. // @run-at document-start
  10. // ==/UserScript==
  11.  
  12. function addGlobalStyle(css) {
  13. var head, style;
  14. head = document.getElementsByTagName('head')[0];
  15. if (!head) { return; }
  16. style = document.createElement('style');
  17. style.type = 'text/css';
  18. style.innerHTML = css.replace(/;/g, ' !important;');
  19. head.appendChild(style);
  20. }
  21.  
  22.  
  23. addGlobalStyle (`
  24. /* Map at size 0 and active (Hoover) */
  25. .guessmap.size-min.is-active.size-0 .guessmap-map{
  26. width: 560px;
  27. height: 300px;
  28. }
  29.  
  30. /* Map at size 1 and active (Hoover) */
  31. .guessmap.is-active.size-1 .guessmap-map{
  32. width: 780px;
  33. height: 480px;
  34. }
  35.  
  36. /* Map at size 2 and active (Hoover) */
  37. .guessmap.is-active.size-2 .guessmap-map{
  38. width: 1080px;
  39. height: 560px;
  40. }
  41.  
  42. /* Map at size 3 and active (Hoover) */
  43. .guessmap.is-active.size-3 .guessmap-map{
  44. width: 1650px;
  45. height: 720px;
  46. }
  47.  
  48. /* Map set to size 0 and not active */
  49. .guessmap.size-min.size-0 .guessmap-map{
  50. width: 160px;
  51. height: 60px;
  52. }
  53.  
  54. /* Map set to size 1 and not active */
  55. .guessmap.size-1 .guessmap-map{
  56. width: 160px;
  57. height: 60px;
  58. }
  59.  
  60. /* Map set to size 2 and not active */
  61. .guessmap.size-2 .guessmap-map{
  62. width: 160px;
  63. height: 60px;
  64. }
  65.  
  66. /* Map set to size 3 and not active */
  67. .guessmap.size-3 .guessmap-map{
  68. width: 160px;
  69. height: 60px;
  70. }
  71.  
  72. .guessmap-map{
  73. margin: 0px;
  74. }
  75.  
  76.  
  77. `);