您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds "direct download" button, unchecks download manager and semi-hides the checkbox, its label and the old download button.
// ==UserScript== // @name www.opensubtitles.org - direct download button // @namespace monnef.tk // @include http://www.opensubtitles.org/en/subtitles/* // @version 1 // @grant none // @require http://code.jquery.com/jquery-2.1.3.min.js // @description Adds "direct download" button, unchecks download manager and semi-hides the checkbox, its label and the old download button. // ==/UserScript== this.$ = this.jQuery = jQuery.noConflict(true); function semiHide(elem) { elem.css("opacity", "0.1"); } $(function() { setTimeout(function() { var check = $("#cbDownloader").prop("checked", false); var checkLabel = check.next(); var but = $("#bt-dwl"); var box = but.parent().parent(); box.prepend($("<div>").css("height", "10px").css("border-bottom", "1px solid #ddd").css("margin-bottom", "5px")); box.prepend($("<a />").html("Direct download").addClass("bt-dwl").attr("href", but.attr("rel"))); [check, checkLabel, but].map(semiHide); }, 50); });