Thingiverse Navigation Helpers

Tools for Thingiverse. Adding ability to navigate easier using Left and Right Arrow key

Fra og med 30.10.2025. Se den nyeste version.

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         Thingiverse Navigation Helpers
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Tools for Thingiverse. Adding ability to navigate easier using Left and Right Arrow key
// @author       Mirido
// @license      MIT
// @match        https://www.thingiverse.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=thingiverse.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    document.addEventListener('keydown', function(event) {
        if (event.key == 'ArrowRight' || event.key == 'ArrowLeft') {
            event.preventDefault();

            const url = new URL(window.location.href);

            const params = new URLSearchParams(window.location.search);
            const paramValue = params.get('page');
            if (paramValue == null) {
                if (event.key == 'ArrowLeft') return;
                url.searchParams.append('page', 2);
            } else {
                if (event.key == 'ArrowRight') {
                    url.searchParams.set('page', parseInt(paramValue) + 1);
                } else {
                    if (paramValue == 2) {
                        url.searchParams.delete('page');
                    } else {
                        url.searchParams.set('page', parseInt(paramValue) - 1);
                    }
                }
            }
            window.location.href = url.toString();
        }
    });
})();