Greasy Fork镜像 支持简体中文。

SteamWorkshop downloader

none

  1. // ==UserScript==
  2. // @name SteamWorkshop downloader
  3. // @version 0.4
  4. // @author vaniOK20
  5. // @match *://steamcommunity.com/workshop/filedetails/?id=*
  6. // @match *://steamcommunity.com/sharedfiles/filedetails/?id=*
  7. // @icon https://www.google.com/s2/favicons?sz=64&domain=steamcommunity.com
  8. // @description none
  9. // @grant none
  10. // @namespace https://gf.qytechs.cn/users/1192314
  11. // ==/UserScript==
  12. const header = document.querySelector('.game_area_purchase_game');
  13.  
  14. if (header) {
  15. while (header.firstChild) {
  16. header.firstChild.remove();
  17. }
  18. }
  19.  
  20. //id
  21. const url=window.location.href;
  22. const url2 = url.slice(0, url.indexOf('&searchtext='));
  23. const id = url2.replace(/\D/g, '');
  24.  
  25. //game id
  26. const GameBut = document.querySelector('.breadcrumb_separator');
  27. const GameButt = GameBut.nextElementSibling.getAttribute('href');
  28. const idGame = GameButt.replace(/\D/g, '');
  29.  
  30. const b=document.createElement('div');
  31. header.appendChild(b);
  32. b.innerText = "Command SteamCmd:";
  33.  
  34. const characterCount = `workshop_download_item ${idGame} ${id}`.length;
  35.  
  36. const bb=document.createElement('div');
  37. b.appendChild(bb);
  38. bb.style="background-color: black; color: white;";
  39. bb.style.width = `${characterCount+18}%`;
  40. bb.innerText =`workshop_download_item ${idGame} ${id}`;
  41.  
  42.  
  43. //button create
  44. const a=document.createElement('a');
  45. a.href="https://ggntw.com/steam/"+id;
  46. a.innerText='Download';
  47. a.style="margin-left: 500px;"
  48. b.appendChild(a);

QingJ © 2025

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