NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name PSPrices Better Navigation
// @namespace https://psprices.com/
// @version 0.3
// @description Simplified pagination navigation
// @author nascent
// @match https://psprices.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=psprices.com
// @grant none
// @updateURL https://openuserjs.org/meta/nascent/PSPrices_Better_Navigation.meta.js
// @downloadURL https://openuserjs.org/install/nascent/PSPrices_Better_Navigation.user.js
// @license GPL-3.0-or-later
// ==/UserScript==
(function() {
'use strict';
// Remove first and last page buttons
const firstPageBtn = document.querySelector('a[aria-label="First page"]');
const lastPageBtn = document.querySelector('a[aria-label="Last page"]');
if (firstPageBtn) firstPageBtn.remove();
if (lastPageBtn) lastPageBtn.remove();
// Remove "Go back" / "Go" text from prev/next buttons, keeping just the chevron icons
const prevBtn = document.querySelector('a[icon="chevron_left"]');
const nextBtn = document.querySelector('a[icon_right="chevron_right"]');
if (prevBtn) prevBtn.querySelector('span.hidden')?.remove();
if (nextBtn) nextBtn.querySelector('span.hidden')?.remove();
})();