6 <title>QBT_TR(Add web seeds)QBT_TR[CONTEXT=HttpServer]
</title>
7 <link rel=
"stylesheet" href=
"css/style.css?v=${CACHEID}" type=
"text/css">
8 <script src=
"scripts/lib/MooTools-Core-1.6.0-compat-compressed.js"></script>
9 <script src=
"scripts/lib/MooTools-More-1.6.0-compat-compressed.js"></script>
13 window
.addEventListener("DOMContentLoaded", () => {
15 defaultEventType
: "keydown",
17 "Escape": function(event
) {
18 window
.parent
.qBittorrent
.Client
.closeWindows();
19 event
.preventDefault();
21 "Esc": function(event
) {
22 window
.parent
.qBittorrent
.Client
.closeWindows();
23 event
.preventDefault();
29 $("addWebSeedsButton").addEvent("click", (e
) => {
31 const hash
= new URI().getData("hash");
33 url
: "api/v2/torrents/addWebSeeds",
37 urls
: $("urls").value
.split("\n").map(w
=> encodeURIComponent(w
.trim())).filter(w
=> (w
.length
> 0)).join("|")
40 window
.parent
.qBittorrent
.Client
.closeWindows();
49 <div style=
"text-align: center;">
51 <label for=
"urls">QBT_TR(List of web seeds to add (one per line):)QBT_TR[CONTEXT=HttpServer]
</label>
52 <textarea name=
"list" id=
"urls" rows=
"10" cols=
"1"></textarea>
54 <input type=
"button" value=
"QBT_TR(Add)QBT_TR[CONTEXT=HttpServer]" id=
"addWebSeedsButton">