This page provides an easy to use JDownloader Click'n'Load script
Add this script to all pages that display CnL elements:
You can upload a copy of this script to your own server if you prefer. It doesn't depends on any other component.
The script will scan the entire page for CnL buttons and add event handlers. The button needs to be present when the
DOMContentLoaded event is fired.
To initiate a CnL element,
place a button on your page like this:
<input type="button" value="Download" data-cnl-crypted="DATA" data-cnl-jk="LINK-PASSWORD" data-cnl-password="ARCHIVE-PASSWORD" />
Replace the values as needed.
You can have as many buttons as you want on a single page. You are not bound to use buttons at all and can add the
data-cnl-* attributes to any element you like.
Description of Attributes:
If you need a script to generate password and links, you can use the PHP file below.
cnl_create with an array of all links to protect and you get an array returned which contains values for the two important button data values.
//Pad CnL Links as needed with zeros
//Be sure we pad at least one block
//Converts links into CnL format.
//$links: Array of URLs
//Returns: Array with values for "jk" and "crypted"
//Decrypts CnL links for debugging.
//$data: Data (base64 encoded)
//Returns: Array of decrypted links
Separate all links using CRLF (
in a single string and encrypt this string using Type=aes128 Mode=cbc Padding=zero.
The key must be exactly 16 bytes in length and is used as the initialization vector too.
If your library doesn't supports zero padding you have to implement it yourself.