Steam ARG SEARCH button

SEARCH button

  1. // ==UserScript==
  2. // @name Steam ARG SEARCH button
  3. // @namespace reddit/defproc/steam-arg-search
  4. // @description SEARCH button
  5. // @include http://store.steampowered.com/app/*
  6. // @include https://store.steampowered.com/app/*
  7. // @version 1
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. var btn = document.createElement("button");
  12. btn.addEventListener('click', function(){
  13. g_strBuffer == '';
  14. var strPassword = prompt();
  15. if( !strPassword )
  16. {
  17. return;
  18. }
  19.  
  20. $J.ajax({
  21. url: "http:\/\/store.steampowered.com\/actions\/clues",
  22. dataType: "json",
  23. cache: false,
  24. data: {key: strPassword}
  25. }).done(function( result ) {
  26. if( result && result.url )
  27. window.location = result.url;
  28. else if( result.response )
  29. alert(result.response);
  30. });
  31. });
  32.  
  33. btn.setAttribute("style", "top:0;left:0;position:absolute;color:#fff;background:#444;padding:10px 20px;border:none");
  34. btn.innerHTML = "SEARCH";
  35. document.body.appendChild(btn);

QingJ © 2025

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