Greasy Fork is available in English.

MOREtrackers

Adds more trackers to torrent magnet links.

// ==UserScript==
// @name            MOREtrackers
// @description:tr  Torrent magnet bağlantısına fazladan izleyici ekler.
// @description:az  Torrent maqnit bağlantılarına daha çox izləyici əlavə edir.
// @description:en  Adds more trackers to torrent magnet links.
// @description:de  Fügt mehr Tracker zu Torrent-Magnet-Links hinzu.
// @description:fr  Ajoute plus de trackers aux liens magnétiques torrent.
// @description:es  Agrega más rastreadores a los enlaces magnéticos de torrent.
// @description:ru  Добавляет больше трекеров к магнитным торрент-ссылкам.
// @version         0.6
// @namespace       https://github.com/metinsanli
// @homepageURL     https://greasyfork.org/scripts/447607
// @author          metinsanli
// @icon            data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAABiCAYAAACYsttCAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAe1SURBVHhe7ZxLbBVVGIDP7a4PNmICmsKmz11pURRBQGKisQhbFsqjLzQRYhCMKxeYGBPjoyZiLRpwQ3xtaJUYrbGJ7UJjb4srKbiSCIvubMOy3n96pvf23pk5/5n5zzn/zJ2PNDPn9mTOf/7z3X8e99LC/MrqqrBEQW65wSEuVzE0yK0VrJmmCYe4XMVgVYCcaFxIYF2AvApEYzuOvAJUUI8SOBGAaxUA6k2CBs6LUe/YWBtnp4C8CuAwHYsnQF4FauEmgal4nF4EchePW3wm4lkXwNVkuUvADep8Oa0AaYCjoJQxFYpVnwW4eibN9XMC4OWnnxCFgjrCoD7PvXBSHDo2KFu0UOQsrwBIVu19ZoYGIkoaVY0ArqbJL721qCRwJUmSUVlVgDRIoCJtEgQKkIWFMAVmgV1KoDsyu2uANMjHWQJAZ+RQAdKwEC5JgwSY0dlVACAt8rlcYCyqCCMFcDm9XAI6IMKwKFlWgLSRBgmAoCiVAricGpe0cj/f6wBRVkbKvgLkEpjBFwElQHqmZZasSQCgK4DLaXFKadYkSM1FYLreV+mRoObjYBWuP7Y1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VBnEkT9HwRMfD9/+6XcU/OP5YvG+BeBBOuCXVzXEsBX0KOA+KJivLlQFLM/fCdbwdwvXSxOfvGZeGv4RfmKHeILQEQaJNjWvvEaIIyoGK+8c0FcLv0s3bsrX1kD2lOlCnGhtPCTVy7JV+0R/SgYQ4LHxQN7euVe+KPUaqDf+dFPRXef+UfBlej+RTPVfBqbW8T9lWXZ2th//Jff5J55klcAojcm90rQs2ef3MOhirNy8QHo72JuhblSBUjwJi4T4yB/Ff+Qe2Uwh9ne0SWaNkWfl6mZ+vqq+OrjD2RLD2x187k0/bvcM48ngLfjNRNCchA8NoeDi7Qz/QdlSx8dCWwKQHsRaLmC2RyusXQnsPuZftnSx1WJV7EuAFloGZbg8MCI3IsPNxE2VIBcgmge3Pqw9wUPCrhIUHMKyCWI5sjAKdHRU759TQKHahB4DZBLEM3pt98TrW3tspUclyKEXgS69TI+ELfp2OGC8PWPxrWfDahwIUKoAGQ4MsmGBK+UKsGJN94Ujc3N8tXk7H6234rEPuvPAcIgu9e2/IzAx8aw8Iyg+Ou0mPrmqrjz9235Kh74wknP3v3iyMkRsbl0oVmNyTkoBQByCfAs3ftX3JyfE0t3S9uFOe+1Wzdq/87gtrYO0drRKbp37BS9Tx7wKooKE/NACQDkEvCBci7oawCyc5Ktk1sVMKyjocmhnIvWRSBZAh2uhqNhjUCRRu27ANIE5hKQ4IsQZ16xbgNJE+hoNeImjDu684r9HIA0eQ5XIosSAL4IqvnFFgAgTZ7DlcAkKs348wuaYyIBANLEOV4Fx8NbwRfBn2tiAQDSxDleBcfDWwXmSiIAkDUJ6kUEMgGALEkA1IMEpAIA5BI4XgUGIRiFXACAPGEMViCrEhgRAMiqBFkTwZgAQBYlALIkglEBgKxKAGRBAuMCAEYkYJJ9RqHEwooAgJEkMcp8OkUQ4n/ANdQtYM3nhAAAAABJRU5ErkJggg==
// @include         *://solidtorrents.to/*
// @include         *://ibit.to/*
// @include         *://torrentgalaxy.to/*
// @include         *://www.torlock2.com/*
// @include         *://katcr.to/*
// @include         *://www.gtdb.to/*
// @include         *://nyaa.si/*
// @include         *://yts.*/*
// @include         *://1337x.to/*
// @include         *://rarbg.best/*
// @run-at          document-end
// @description Adds more trackers to torrent magnet links.
// ==/UserScript==

function mergeLinks(readyTrackersText) {
  var magnetTags = document.querySelectorAll('[href^="magnet"]');
  magnetTags.forEach((magnet) => {
    magnet.setAttribute(
      "href",
      magnet.getAttribute("href") + readyTrackersText
    );
  });
}

const nto = new XMLHttpRequest(),
  method = "GET",
  url = "https://newtrackon.com/api/live";

nto.open(method, url, true);
nto.setRequestHeader("Access-Control-Allow-Headers", "*");
nto.withCredentials = false;

nto.onreadystatechange = function () {
  if (nto.readyState === XMLHttpRequest.DONE) {
    var status = nto.status;
    if (status === 0 || (status >= 200 && status < 400)) {
      var ntoRawList = nto.responseText.split("\n");
      var trackersList = ntoRawList
        .filter((tracker) => tracker)
        .map((tracker) => "&tr=" + encodeURIComponent(tracker))
        .join("");
      mergeLinks(trackersList);
    } else {
      console.error("MORETRACKERS: Could not get trackers to add!");
    }
  }
};

nto.send();