Deluge WebUI remote torrent adder

This script adds a Deluge icon next to torrent and magnet links. Clicking on it adds the torrent to the WebUI without leaving the page.

Author
Adam Rogers
Daily installs
0
Total installs
69
Ratings
1 0 0
Version
1.7.0
Created
Updated
License
N/A
Applies to
All sites

Author's Description

This is an upgrade of "Quickly add torrent files to Deluge 1.2+ WebUI" by "adios_" (from userscripts.org) to work with GreaseMonkey 4 and Deluge WebUI 1.3.

Changelog:

1.7.0 (2018-02-12) :
* Rewrote the xmlHttpRequest call for GreaseMonkey 4 compatibility
* Content-type of request changed to 'application/json'
* Removed scanning for site-specific torrent URLs, leaving only magnet and .torrent links (can be reenabled by uncommenting the appropriate code)
* Code cleanup


Original script v1.6.5 is here:
http://userscripts-mirror.org/scripts/show/79003

Changelog:

1.6.5 (14th jan. 2012) :
* fix : removed an alert() popup
* Some more code cleanup

1.6 (13th jan. 2012) :
* Handles magnet links
* Code refactoring

1.5 (18th oct. 2011) :
* Fix URL parsing for bt-chat.com
* Various bugfixes

1.4 (13th feb. 2011) :
* Add support for HTTPS

1.3 (1st aug. 2010) :
* Properly escape JSON strings

1.2 (13th jun. 2010) :
* Remove hardcoded config values, now use the user-configured ones

1.1 (12th jun. 2010) :
* More torrent links detected
* Cookie support
* Torrent link now properly displays instead of "javascript:;"
* Code cleanup

1.0 (25th nov. 2009) :
* First Version