Greasy Fork 支持简体中文。

JDownloader Automat

Send fireload.com (or any active webpage) URL to JDownloader using Click'n'Load 2 functionality.

目前為 2023-05-07 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name JDownloader Automat
  3. // @namespace https://toplak.info
  4. // @author Bernard Toplak
  5. // @version 1.0
  6. // @description Send fireload.com (or any active webpage) URL to JDownloader using Click'n'Load 2 functionality.
  7. // @match https://*.fireload.com/*
  8. // @grant GM.xmlHttpRequest
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. var url = window.location.href;
  15. var jdownloaderUrl = 'http://127.0.0.1:9666/flash/add?urls='+url;
  16.  
  17. GM.xmlHttpRequest({
  18. method: 'POST',
  19. url: jdownloaderUrl,
  20. headers : {
  21. Referer: "http://localhost/"
  22. },
  23. data: 'urls='+ url,
  24. onload: function(response) {
  25. console.log('URL sent to JDownloader: '+url);
  26. },
  27. onerror: function(error) {
  28. console.error('Error sending URL to JDownloader:', error);
  29. }
  30. });
  31.  
  32. })();