您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
steam商店页面添加点数商店跳转按钮 添加市场跳转按钮 steam页面/社区导航栏添加网页key激活跳转
当前为
// ==UserScript== // @name steam_pointsshop // @icon https://store.steampowered.com/favicon.ico // @namespace http://tampermonkey.net/ // @version 0.21 // @description steam商店页面添加点数商店跳转按钮 添加市场跳转按钮 steam页面/社区导航栏添加网页key激活跳转 // @author wsz987 // @match https://store.steampowered.com/app/* // @match https://steamcommunity.com/* // @match https://store.steampowered.com/* // @require https://cdn.staticfile.org/jquery/1.12.4/jquery.min.js // @grant GM_openInTab // @supportURL https://keylol.com/t615154-1-1 // ==/UserScript== (function() { 'use strict'; /*窗口跳转 true:窗口切换到点数页面 false 点数页面打开但保持当前商店页面 */ const setting = { 窗口跳转:false } if(location.hostname=="store.steampowered.com"||location.hostname=="steamcommunity.com"){ $('.supernav_container').append("<a class='menuitem' href='https://store.steampowered.com/account/registerkey' target='_blank'>key激活</a>") } var appid=location.pathname.split('/')[2], points_href="https://store.steampowered.com/points/shop/app/"+appid, market_href="https://steamcommunity.com/market/search?appid=753&category_753_Game[]=tag_app_"+appid; $("div.apphub_OtherSiteInfo > a").before("<a class='btnv6_blue_hoverfade btn_medium' id='market_btn' href='javascript:void(0)' style='margin:5px !important' title='跳转到对应市场'><span>市场</span></a><a class='btnv6_blue_hoverfade btn_medium' id='points_btn' href='javascript:void(0)' style='margin-right:5px !important' title='跳转到对应点数商店'><span>点数商店</span></a>") if(setting.窗口跳转){ $('#points_btn')[0].href=points_href $('#points_btn')[0].target='_blank' $('#market_btn')[0].href=market_href $('#market_btn')[0].target='_blank' }else{ $('body').on("click", "#points_btn",()=>{ GM_openInTab(points_href) }) $('body').on("click", "#market_btn",()=>{ GM_openInTab(market_href) }) } })();