CurseForge Instant Download

Instant downloading of Minecraft CurseForge mods.

当前为 2019-08-09 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name CurseForge Instant Download
  3. // @version 1.0.0
  4. // @description Instant downloading of Minecraft CurseForge mods.
  5. // @namespace https://allvvg.xyz
  6. // @author TrevTV
  7. // @match https://www.curseforge.com/minecraft/mc-mods/*/*
  8. // @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. var baseUrl = `https://www.curseforge.com/minecraft/mc-mods`
  16. var id = ((document.URL).split("/"))[7];
  17. var modName = ((document.URL).split("/"))[5];
  18. window.location.replace(`${baseUrl}/${modName}/download/${id}/file`);
  19. }
  20. )();