您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Opens Steam Links in the Steam Application
当前为
// ==UserScript== // @name Steam Link App Opener // @namespace https://github.com/jaxellis // @version 1.0.0 // @description Opens Steam Links in the Steam Application // @author Jaxellis // @icon https://store.steampowered.com/favicon.ico // @homepage https://github.com/jaxellis/Steam-Link-App-Opener // @supportURL https://github.com/jaxellis/Steam-Link-App-Opener/issues/ // @include http://* // @include https://* // @grant none // @license GPL-3.0-or-later; https://www.gnu.org/licenses/gpl-3.0.txt // ==/UserScript== class LinkCollector { constructor(domains) { this.regex = this.#createRegex(domains); } getLinks() { return [...document.querySelectorAll('a[href]')].filter( this.#isDomain, this ); } #createRegex(domains) { let filterRegex = ''; for (let domain of domains) { filterRegex += `${domain.replaceAll('.', '\\.')}\/.\\w*|`; } return new RegExp(filterRegex.replace(/\|([^\|]*)$/, '$1')); } #isDomain(link) { return link.href.match(this.regex); } } function main() { const pageLinks = new LinkCollector([ 'store.steampowered.com', 'steamcommunity.com', ]).getLinks(); for (let link of pageLinks) { link.href = `steam://openurl/${link.href}`; } } main();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址