qBittorrent Web UI clipboard support

Adds ctrl+v support to qBittorrent's Web UI, if a magnet link is in your clipboard it automatically adds the torrent.

ავტორი
axzxc1236
დღიური ინსტალაციები
0
მთლიანი ინსტალაციები
303
რეიტინგი
0 0 0
ვერსია
0.1
შექმნილია
10.08.2018
განახლებულია
10.08.2018
ლიცენზია
პ/გ
გამოყენებს მათ

This script is tested under Google Chrome 48 and qBittorrent 4.1.1, I didn't test it in other environments

This script adds ctrl+v support to qBittorrent's Web UI, if a magnet link is in your clipboard it automatically adds the torrent.

To use it, you must give clipboard access to the Web UI, and in Google Chrome you can only give clipboard access to a website if the website is HTTPS protected, so you need to sign a HTTPS certification for Web UI.
setting up HTTPS with self signed SSL certificates
setting up HTTPS with Let's Encrypt certificates

Don't forget to change the script to match you webUI. (It's required for the script to work.)
change "// @match" part in your script to work with your Web UI.