您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a button to steam price history near the add to cart button
// ==UserScript== // @name Steam Price History Button // @description Adds a button to steam price history near the add to cart button // @include https://store.steampowered.com/app/* // @namespace https://gf.qytechs.cn/users/8233 // @license MIT // @version 0.0.2 // ==/UserScript== var parts = window.location.href.split('/'); if (parts.indexOf('store.steampowered.com') === 2 && parts[3] == 'app') { //word history in different languages const wordhistory = { 'en': 'History', 'pl': 'Historia', 'es': 'Historia', 'ro': 'Istorie', 'it': 'Storia', }; var backs = document.getElementsByClassName('game_purchase_action_bg'); for (var i = 0; i < backs.length; ++i) { //create the link, give it proper href, one of nice steam styles via a class var a = document.createElement('a'); a.href = 'https://steampricehistory.com/app/' + parts[4]; a.className = 'btnv6_blue_hoverfade btn_medium'; //and give the link button proper word, with fallback to english const word = wordhistory[document.documentElement.lang] || wordhistory['en']; a.innerHTML = '<span>' + word + '</span>'; //and add it to each game buy element we can find (in case there are more cus deluxe edition, bundle, etc.) var con = backs[i]; con.insertBefore(a, con.firstChild); } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址