6 <title>QBT_TR(Remove tracker)QBT_TR[CONTEXT=confirmDeletionDlg]
</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", () => {
14 const host
= new URI().getData("host");
15 const urls
= new URI().getData("urls");
16 $("confirmDeleteTrackerText").textContent
= "QBT_TR(Are you sure you want to remove tracker %1 from all torrents?)QBT_TR[CONTEXT=TrackersFilterWidget]".replace("%1", `"${host}"`);
18 $("cancelBtn").focus();
19 $("cancelBtn").addEvent("click", (e
) => {
21 window
.parent
.qBittorrent
.Client
.closeWindows();
23 $("confirmBtn").addEvent("click", (e
) => {
25 const cmd
= "api/v2/torrents/removeTrackers";
34 window
.parent
.qBittorrent
.Client
.closeWindows();
43 <div style=
"padding: 10px 10px 0px 10px;">
44 <p id=
"confirmDeleteTrackerText"></p>
45 <div style=
"text-align: right;">
46 <input type=
"button" id=
"cancelBtn" value=
"QBT_TR(Cancel)QBT_TR[CONTEXT=MainWindow]">
47 <input type=
"button" id=
"confirmBtn" value=
"QBT_TR(Remove)QBT_TR[CONTEXT=MainWindow]">