steam protocol opener

steam protocol opener Adds a button to all Steam sites to open in the Steam application.

  1. // ==UserScript==
  2. // @name:ru steam протокол
  3. // @name steam protocol opener
  4. // @namespace http://tampermonkey.net/
  5. // @version 0.1
  6. // @description:ru steam protocol opener Добавляет кнопку на все параметры Steam, чтобы открыть в приложении steam.
  7. // @description steam protocol opener Adds a button to all Steam sites to open in the Steam application.
  8. // @author dEN5_and_updated_for_Lolboblol
  9. // @match /https:\/\/.*steam.*\.com\/.*/
  10. // @match http*://steamcommunity.com/*
  11. // @match http*://store.steampowered.com/*
  12. // @icon https://www.google.com/s2/favicons?domain=steampowered.com
  13. // @grant none
  14. // ==/UserScript==
  15.  
  16. function find(){
  17. document.location.href = "steam://openurl/"+document.location.href;
  18.  
  19. }
  20.  
  21. var global_actions = document.querySelector("#global_actions");
  22. var zNode = document.createElement ('button');
  23. zNode.innerHTML = '<button class="global_action_link" id="find" type="button">open on steam</button>'
  24. global_actions.appendChild (zNode);
  25.  
  26.  
  27. document.getElementById ("find").addEventListener (
  28. "click", find, false
  29. );

QingJ © 2025

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