您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Send fireload.com (or any active webpage) URL to JDownloader using Click'n'Load 2 functionality.
当前为
// ==UserScript== // @name JDownloader Automat // @namespace https://toplak.info // @author Bernard Toplak // @version 1.0.1 // @licence GPL3 // @description Send fireload.com (or any active webpage) URL to JDownloader using Click'n'Load 2 functionality. // @match https://*.fireload.com/* // @grant GM.xmlHttpRequest // ==/UserScript== (function() { 'use strict'; var url = window.location.href; var jdownloaderUrl = 'http://127.0.0.1:9666/flash/add?urls='+url; GM.xmlHttpRequest({ method: 'POST', url: jdownloaderUrl, /* required to skip the pop-up requesting confirmation each time a new URL is added Additional change is necessary in JD settings: go to Settings -> Advanced Settings (icon left) -> enter "remoteapi" and add "localhost" to the JSON */ headers : { Referer: "http://localhost/" }, onload: function(response) { console.log('URL sent to JDownloader: '+url); }, onerror: function(error) { console.error('Error sending URL to JDownloader:', error); } }); })();