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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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));