您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
steam商店页面添加点数商店跳转按钮
当前为
// ==UserScript== // @name steam_pointsshop // @icon https://store.steampowered.com/favicon.ico // @namespace http://tampermonkey.net/ // @version 0.1 // @description steam商店页面添加点数商店跳转按钮 // @author wsz987 // @match https://store.steampowered.com/app/* // @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 } var href="https://store.steampowered.com/points/shop/app/"+location.pathname.split('/')[2] $("div.apphub_OtherSiteInfo > a").before("<a class='btnv6_blue_hoverfade btn_medium' id='points_btn' href='javascript:void(0)'><span>点数商店</span></a>") if(setting.窗口跳转){ $('#points_btn')[0].href=href $('#points_btn')[0].target='_blank' }else $('body').on("click", "#points_btn",()=>{ GM_openInTab(href) }) })();