您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fixes the "Trading Cards" button in the category block
// ==UserScript== // @name SVC - Steam Viewer Cards // @namespace Steam // @version 1.211 // @description Fixes the "Trading Cards" button in the category block // @author gignorie // @match https://store.steampowered.com/app/* // @grant none // @require https://code.jquery.com/jquery-1.11.0.min.js // @icon https://steamcommunity.com/favicon.ico // @license MIT // ==/UserScript== var game_title = /app\/(.+?)\/(.*)\//.exec(location.href)[2].replace('_','+'); var cards_url = 'https://steamcommunity.com/market/search?q=cards+'+game_title; //var username = /id\/(.*)\/home\//.exec($J('#global_header').find('a.menuitem.supernav.username')[0].href)[1]; var category_block = $J("#category_block").find('div.game_area_details_specs'); for(var i=1; i<category_block.length;i++){ var cards_href = category_block[i].getElementsByClassName('name')[0].href; var cards_id = i; if(cards_href == 'https://store.steampowered.com/search/?category2=29&snr=1_5_9__423'){ break; } else cards_href = null; } if(cards_href === null)return console.log('SVC Debug: Category Cards - Undefined'); category_block[cards_id].getElementsByClassName('icon')[0].children[0].href = cards_url; category_block[cards_id].getElementsByClassName('name')[0].href = cards_url;