您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
adds event listeners to the arrows keys to navigate inventory pages
当前为
// ==UserScript== // @name steam, navigate inventory pages // @description adds event listeners to the arrows keys to navigate inventory pages // @version 1.1 // @author Tobias L // @include https://steamcommunity.com/id/*/inventory* // @license GPL-3.0-only // @namespace https://github.com/WhiteG00se/User-Scripts // ==/UserScript== setTimeout(function () { const nextPageButton = document.querySelector(".sih_button.next_page") const previousPageButton = document.querySelector(".sih_button.prev_page") document.addEventListener("keydown", function (e) { if (e.key === "ArrowRight") nextPageButton.click() if (e.key === "ArrowLeft") previousPageButton.click() }) }, 1000)