您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Stay on current page and start slow download (support Manual/Vortex)
当前为
- // ==UserScript==
- // @name Nexus No Wait
- // @description Stay on current page and start slow download (support Manual/Vortex)
- // @namespace NexusNoWait
- // @include https://www.nexusmods.com/*/mods/*
- // @run-at document-idle
- // @version 1.1
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
- // ==/UserScript==
- $(document).on( 'click', '.btn', function( event ) {
- var href = $(this).attr('href');
- if (~href.indexOf("file_id")){
- event.preventDefault();
- $.get( href, function( data ) {
- var slow = $(data).find('#slowDownloadButton');
- var downloadUrl = slow.data('download-url');
- document.location.href = downloadUrl;
- });
- var popup = $(this).parent();
- if (popup.hasClass('popup')){
- popup.children("button").click();
- }
- $(this).css("color", "green");
- $(this).text('LOADING');
- }
- });