2 <html lang=
"${LANG}" class=
"dark">
6 <title>QBT_TR(Add trackers)QBT_TR[CONTEXT=TrackersAdditionDialog]
</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
);
25 $("trackersUrls").focus();
26 $("addTrackersButton").addEventListener("click", (e
) => {
30 fetch("api/v2/torrents/addTrackers", {
32 body
: new URLSearchParams({
33 hash
: new URI().getData("hash"),
34 urls
: $("trackersUrls").value
41 window
.parent
.qBittorrent
.Client
.closeFrameWindow(window
);
49 <div style=
"text-align: center; margin-top: 10px;">
50 <label for=
"trackersUrls">QBT_TR(List of trackers to add (one per line):)QBT_TR[CONTEXT=TrackersAdditionDialog]
</label>
51 <textarea name=
"list" id=
"trackersUrls" rows=
"10" cols=
"1"></textarea>
52 <input type=
"button" value=
"QBT_TR(Add)QBT_TR[CONTEXT=HttpServer]" id=
"addTrackersButton">