Steam250 Redirector

Adds a button to Steam250 for region-locked games.

  1. // ==UserScript==
  2. // @name Steam250 Redirector
  3. // @namespace https://mjyai.com
  4. // @version 1.0.0
  5. // @description Adds a button to Steam250 for region-locked games.
  6. // @author mjy
  7. // @match *://store.steampowered.com/app/*
  8. // @grant none
  9. // @license GPL-3.0
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. function addSteam250Button() {
  16. const errorBox = document.querySelector('#error_box');
  17. const pageHeader = document.querySelector('h2.pageheader');
  18.  
  19. if (errorBox && pageHeader && pageHeader.innerText.includes("OOPS, SORRY!")) {
  20. const appIdMatch = window.location.pathname.match(/\/app\/(\d+)/);
  21. if (appIdMatch) {
  22. const appId = appIdMatch[1];
  23. const steam250Url = `https://club.steam250.com/app/${appId}`;
  24.  
  25. const button = document.createElement('a');
  26. button.href = steam250Url;
  27. button.innerText = 'View on Steam250';
  28. button.style.display = 'block'; // New line
  29. button.style.width = '90%'; // 90% width
  30. button.style.margin = '10px auto'; // Centered
  31. button.style.padding = '12px';
  32. button.style.background = '#1b2838';
  33. button.style.color = 'white';
  34. button.style.borderRadius = '5px';
  35. button.style.textDecoration = 'none';
  36. button.style.fontSize = '14px';
  37. button.style.textAlign = 'center';
  38.  
  39. errorBox.appendChild(button);
  40. }
  41. }
  42. }
  43.  
  44. window.addEventListener('load', addSteam250Button);
  45. })();

QingJ © 2025

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