2 <html lang=
"${LANG}" class=
"dark">
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>
10 <script src=
"scripts/localpreferences.js?v=${CACHEID}"></script>
11 <script src=
"scripts/color-scheme.js?v=${CACHEID}"></script>
15 window
.addEventListener("DOMContentLoaded", () => {
16 window
.addEventListener("keydown", (event
) => {
19 event
.preventDefault();
20 window
.parent
.qBittorrent
.Client
.closeFrameWindow(window
);
26 $("addWebSeedsButton").addEventListener("click", (e
) => {
29 fetch("api/v2/torrents/addWebSeeds", {
31 body
: new URLSearchParams({
32 hash
: new URI().getData("hash"),
33 urls
: $("urls").value
.split("\n").map(w
=> encodeURIComponent(w
.trim())).filter(w
=> (w
.length
> 0)).join("|")
40 window
.parent
.qBittorrent
.Client
.closeFrameWindow(window
);
48 <div style=
"text-align: center;">
50 <label for=
"urls">QBT_TR(List of web seeds to add (one per line):)QBT_TR[CONTEXT=HttpServer]
</label>
51 <textarea name=
"list" id=
"urls" rows=
"10" cols=
"1"></textarea>
53 <input type=
"button" value=
"QBT_TR(Add)QBT_TR[CONTEXT=HttpServer]" id=
"addWebSeedsButton">