Nexus No Wait

Stay on current page and start slow download (support Manual/Vortex)

目前为 2019-12-21 提交的版本。查看 最新版本

// ==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
// @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();
        }
  	}
});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址