您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add a link to Steam search for games on Keymailer.co
// ==UserScript== // @name Steam button for Keymailer // @name:ru Кнопка Steam для Keymailer // @namespace https://www.keymailer.co/g/games // @version 2.0 // @description Add a link to Steam search for games on Keymailer.co // @description:ru Добавляет ссылку на поиск игр в Steam на Keymailer.co // @author Fan4eG // @match https://www.keymailer.co/g/games/* // @grant none // ==/UserScript== (function() { 'use strict'; function removeSpecialCharacters(string) { return string.replace(/™/g, '').replace(/®/g, '').replace(/©/g, '').replace(/℠/g, '').replace(/℗/g, '').replace(/™️/g, '').replace(/©️/g, ''); } function addSteamLinkButton() { const pathArray = window.location.pathname.split('/'); const gameId = pathArray[pathArray.length - 1]; const gameTitleElement = document.querySelector('h1'); const gameTitle = removeSpecialCharacters(gameTitleElement.textContent.trim()); const button = document.createElement('button'); button.innerHTML = 'STEAM'; button.style.position = 'absolute'; button.style.top = '0'; button.style.right = '0'; button.style.padding = '5px'; button.style.background = 'rgb(17, 99, 231)'; button.style.color = 'white'; button.style.zIndex = '9999'; button.style.cursor = 'pointer'; button.style.fontFamily = 'inherit'; button.style.border = '2px solid black'; button.addEventListener('click', function() { window.open('https://store.steampowered.com/search/?term=' + encodeURI(gameTitle), '_blank'); }); gameTitleElement.style.position = 'relative'; gameTitleElement.appendChild(button); } addSteamLinkButton(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址