Steam Check System Requirements Button

Adds a "check system requirements" button to the store page of a Steam app, which will see if a computer meets an app's system requirements

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name          Steam Check System Requirements Button
// @namespace     DoomTay
// @description   Adds a "check system requirements" button to the store page of a Steam app, which will see if a computer meets an app's system requirements
// @version       1.0.2
// @include       http://store.steampowered.com/app/*
// @include       https://store.steampowered.com/app/*
// @grant         none

// ==/UserScript==

var appID = window.location.href.match(/store.steampowered.com\/app\/(\d+)/)[1];

var sysReqButton = document.createElement("a");
sysReqButton.className = "linkbar";
sysReqButton.innerHTML = "Check system requirements";
sysReqButton.href = "steam://checksysreqs/" + appID;

var buttonsBlock = document.getElementsByClassName("underlined_links")[0].getElementsByClassName("details_block")[1];

//Usually will put the link above "View discussions", but that link may not always be there
buttonsBlock.insertBefore(sysReqButton, (buttonsBlock.querySelector("a[href*='/discussions/']") || buttonsBlock.lastElementChild));