您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button on Steam store page that can be used to open that page inside the Steam client;
当前为
// ==UserScript== // @name Open in Steam // @namespace http://tampermonkey.net/ // @version 1.0.1 // @description Adds a button on Steam store page that can be used to open that page inside the Steam client; // @author The24thDS // @match https://store.steampowered.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=steampowered.com // @grant none // ==/UserScript== (function() { 'use strict'; const element = document.createElement('a'); element.setAttribute('href', `steam://openurl/${window.location.href}`); element.setAttribute('style', `position: absolute; top: 20px; right: 20px; padding: 5px 20px; border-radius: 5px; background-color: #c5c3c0; color: #171a21; font-weight: bold;`); element.innerHTML = 'Open in Steam'; document.body.appendChild(element); })();