您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Opens Steam links instantly on Club250 pages
// ==UserScript== // @name Club250 Steam Link Opener // @namespace http://tampermonkey.net/ // @version 1.2 // @description Opens Steam links instantly on Club250 pages // @author Alper Alkan // @match *://club.steam250.com/app/* // @grant none // @run-at document-end // @license MIT // ==/UserScript== (function() { 'use strict'; // Function to extract and open the Steam link function openSteamLink() { // Query the DOM to find any link elements with the desired URL pattern const linkElements = document.querySelectorAll('a[href*="https://store.steampowered.com/app/"]'); // Check if any link elements exist if (linkElements.length > 0) { // Extract the first matching href attribute const linkToOpen = linkElements[0].href; console.log("Redirecting to " + linkToOpen); // Open the link in the same tab window.location.href = linkToOpen; } else { console.error('Steam link not found'); } } // Run the function to open the link openSteamLink(); })();