GeoGuessr: Middle Click = Double "N"

When you middle-click (scroll wheel click), it simulates pressing "N" twice in GeoGuessr.

Från och med 2025-10-21. Se den senaste versionen.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         GeoGuessr: Middle Click = Double "N"
// @namespace    https://greasyfork.org/en/users/your-name
// @version      1.0
// @description  When you middle-click (scroll wheel click), it simulates pressing "N" twice in GeoGuessr.
// @author       Your Name
// @match        https://www.geoguessr.com/*
// @run-at       document-start
// @license      MIT
// @grant        none
// ==/UserScript==

(function () {
  'use strict';

  window.addEventListener('mousedown', (e) => {
    // middle mouse button = 1
    if (e.button === 1) {
      e.preventDefault();
      e.stopPropagation();

      // Create and dispatch two synthetic "N" keydown events
      const pressN = () => {
        const down = new KeyboardEvent('keydown', { key: 'n', code: 'KeyN', bubbles: true });
        document.dispatchEvent(down);
      };

      pressN();
      setTimeout(pressN, 80); // 80ms delay between presses
    }
  }, true);
})();