NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name OpenSubtitles.org easy download // @namespace http://tampermonkey.net/ // @version 0.1 // @description Makes the download button more visible // @author VitorMM // @match https://www.opensubtitles.org/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; var nobrs = document.getElementsByClassName("nobr"); [].forEach.call(nobrs, function (nobr) { var downloadTxt = document.createTextNode("DOWNLOAD"); var emptyTxt = document.createTextNode(""); var children = nobr.childNodes; var formatClass = true; [].forEach.call(children, function (child) { if (child.className === "none") { child.innerText = downloadTxt.textContent; child.style.fontWeight = "900"; child.style.fontSize = "40px"; child.style.color = "#1f77cd"; nobr.innerHTML = child.outerHTML; formatClass = false; var downloadLinkBlock = nobr.parentElement; downloadLinkBlock.innerHTML = nobr.outerHTML; } }); if (formatClass) { nobr.innerHTML = emptyTxt.textContent; } }); })();