NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name nCore buttons // @namespace http://tampermonkey.net/ // @version 1.0 // @description Egyedi kategória gombokat ad a letöltés oldalra. // @author IceCube018 // @license GPL-3.0-or-later // @updateURL https://openuserjs.org/meta/IceCube018/nCore_buttons.meta.js // @include http://*ncore.cc/torrents.php* // @include https://*ncore.cc/torrents.php* // @grant none // @run-at document-ready // ==/UserScript== var pager; var newElement; var link; var separator; var texts = ["Film HD", "Sorozat HD", "Film SD", "Sorozat SD", "Film HD/HU", "Sorozat HD/HU", "Film SD/HU", "Sorozat SD/HU"]; var hrefs = ["/torrents.php?tipus=hd", "/torrents.php?tipus=hdser", "/torrents.php?tipus=xvid", "/torrents.php?tipus=xvidser", "/torrents.php?tipus=hd_hun", "/torrents.php?tipus=hdser_hun", "/torrents.php?tipus=xvid_hun", "/torrents.php?tipus=xvidser_hun"]; (function() { 'use strict'; pager = document.getElementById("pager_top"); separator = document.createTextNode(" | "); newElement = document.createElement("div"); newElement.id = "custom_buttons"; newElement.style = "text-align: center; margin: 15px"; for(var i = 0; i<texts.length; i++){ link = document.createElement("a"); link.innerText = texts[i]; link.href = hrefs[i]; newElement.appendChild(link); newElement.appendChild(separator.cloneNode()); } pager.parentNode.insertBefore(newElement, pager); })();