// ==UserScript== // @name Nexus Mods Auto Slow Download // @namespace http://tampermonkey.net/ // @version 1.0 // @description Automatically clicks the "Slow download" button on Nexus Mods file pages. // @author NewsGuyTor // @match https://www.nexusmods.com/*/mods/*?tab=files* // @grant none // @license MIT // @downloadURL https://update.greasyfork.icu/scripts/525364/Nexus%20Mods%20Auto%20Slow%20Download.user.js // @updateURL https://update.greasyfork.icu/scripts/525364/Nexus%20Mods%20Auto%20Slow%20Download.meta.js // ==/UserScript== (function() { 'use strict'; const MAX_ATTEMPTS = 10; const RETRY_DELAY = 500; let attemptCount = 0; function clickSlowDownload() { const slowDownloadButton = document.getElementById('slowDownloadButton'); if (slowDownloadButton) { console.log('Found Slow Download button, clicking...'); slowDownloadButton.click(); } else if (attemptCount < MAX_ATTEMPTS) { attemptCount++; setTimeout(clickSlowDownload, RETRY_DELAY); } else { console.log('Slow Download button not found after maximum attempts'); } } if (document.readyState === 'complete' || document.readyState === 'interactive') { clickSlowDownload(); } else { window.addEventListener('load', clickSlowDownload); } })();