Opera userjs: Post torrent links to ruTorrent (may also work in other browsers)

peshua19

Member
May 25, 2018
897
0
16
Well, the title kind of explains it all. I have used this script myself for some time now and thought I may as well share it; who knows, maybe someone even has use for it.

The script adds a ruTorrent icon next to torrent links matching the rule set defined in the script. At this moment the script catches magnet links and links ending in ".torrent", but this can all be extended by the user. The script I share only works on gameupdates.org, so you should add some more sites to the list if you intend to use it. This is all explained in the script.

This is how the script alters links:


Configurable options:
* userjs default: @include and @exclude rules to define which url's the script should work on
* ruTorrent location (must be configured prior to use)
* Rule set
* Show an inline alert message when a link is submitted (default: true)
* Remove the 'add to ruTorrent' icon after submitting a linkg (default: false)
* Insert the icon before the link. If set to false, the icon is inserted after the link (default: true).

Download here.

Before using, you may need to enable cross network navigation in opera. Do so by navigating to opera:config#Network|AllowCrossNetworkNavigation and checking the box.

Hope anyone finds some use for it, and if it works on other browsers, let me know ;-)