FastDL fetcher

Gets FastDL Lua lines to add to your GMOD server

  1. // ==UserScript==
  2. // @name FastDL fetcher
  3. // @namespace http://higherdimensionsgaming.com/
  4. // @version 1.4
  5. // @description Gets FastDL Lua lines to add to your GMOD server
  6. // @author [HDG] Mr DeeJayy
  7. // @match http://steamcommunity.com/sharedfiles/filedetails/?id=*
  8. // @match https://steamcommunity.com/sharedfiles/filedetails/?id=*
  9. // @grant none
  10. // ==/UserScript==
  11. var GMOD = $(/Garry\'s Mod/i.test (document.body.innerHTML) );
  12. var ADDON = $(/Subscribe/i.test (document.body.innerHTML) );
  13. var _URL = window.location.href;
  14. var Regex = /\d{5,}/;
  15. var ID = Regex.exec(_URL);
  16. var x = document.getElementsByClassName("example");
  17. if (GMOD) {
  18. if (ADDON) {
  19. document.getElementsByClassName("game_area_purchase_margin")[0].innerHTML = document.getElementsByClassName("game_area_purchase_margin")[0].innerHTML + "<div class=\"game_area_purchase_game\"><h1><span>Add to FastDL</span><br><input type=\"text\" value=\"resource.AddWorkshop('" + ID + "')\" style=\"height: 25px;width: 300px;\"></span></h1></div>";
  20. }
  21. }

QingJ © 2025

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