

markDuplicates.ts - Example of a new linke added trigger markDuplicatesNewLinkEvent which uses the output from the save history events to add comments and disable added links which were already downloaded.ĭifferent event trigger types - getEventTriggerProperties.saveHistory.ts - Example of a context menu trigger saveHistor圜ontextMenuEvent and download stopped trigger saveHistoryDownloadStoppedEvent which use the same function to save links to history files based on hoster.prioritizePackages.ts - Example of a button trigger prioritizePackagesButtonEvent and interval trigger prioritizePackagesIntervalEvent which execute the same function to prioritize packages with smaller unfinished links.eventTriggers.ts - Strongly-typed trigger event property object.Not all functions are available to all trigger types.


jdownloader.d.ts - Strongly-typed global functions provided to event scripter.Export any functions which should be accessible from the jdownloader global object in the event scripter. Code can be written here or imported from other modules. index.ts - Main entry point for all scripts.Some files included in this repository are examples and some are necessary for proper typing. If the script is marked a "synchronous" then JDownloader may lock up so it is recommended to run the script once with the check box unchecked. Click allow go give access after verifying the script is correct. The first time the script runs, a prompt asking for permission to execute the local file may display. Note: if you are using Windows which uses "\" characters in paths, they must be doubled. Jdownloader.saveHistoryDownloadStoppedEvent() Require("C:\\Program Files\\JDownloader\\jdownloader.js") Install all the node modules, including typescript and webpack by running the command: Once downloaded and extracted, open a command prompt in the directory.

You can alternatively use git or fork this repository. The easiest way to get started is to download the code as a ZIP file.
