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

  1. // ==UserScript==
  2. // @name Steam Check System Requirements Button
  3. // @namespace DoomTay
  4. // @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
  5. // @version 1.0.2
  6. // @include http://store.steampowered.com/app/*
  7. // @include https://store.steampowered.com/app/*
  8. // @grant none
  9.  
  10. // ==/UserScript==
  11.  
  12. var appID = window.location.href.match(/store.steampowered.com\/app\/(\d+)/)[1];
  13.  
  14. var sysReqButton = document.createElement("a");
  15. sysReqButton.className = "linkbar";
  16. sysReqButton.innerHTML = "Check system requirements";
  17. sysReqButton.href = "steam://checksysreqs/" + appID;
  18.  
  19. var buttonsBlock = document.getElementsByClassName("underlined_links")[0].getElementsByClassName("details_block")[1];
  20.  
  21. //Usually will put the link above "View discussions", but that link may not always be there
  22. buttonsBlock.insertBefore(sysReqButton, (buttonsBlock.querySelector("a[href*='/discussions/']") || buttonsBlock.lastElementChild));

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址