// ==UserScript== // @name Devuplads Remove Bloat // @description show only download button and try click // @namespace https://greasyfork.org/users/821661 // @match https://devuploads.com/* // @match https://thecubexguide.com/* // @match https://djxmaza.in/* // @match https://dev.miuiflash.com/* // @run-at document-start // @grant none // @version 1.1.7 // @author hdyzen // @license MIT // @downloadURL none // ==/UserScript== (function () { 'use strict'; // Devuploads page const isDevuploadPage = location.hostname === 'devuploads.com'; // Styles css const styleDevuploads = `*,div.mb-xl-5{margin:0!important}*{box-sizing:border-box!important;padding:0!important}h2.text-center.filesof{margin:10px!important}.footer,.navbar{display:none!important}#container>.row,#files_list>.row{gap:10px!important}#container{height:100vh!important;display:flex!important;justify-content:center!important;align-items:center!important;flex-direction:column!important}#files_list>.row>div{margin:0!important;max-width:unset!important;flex-grow:1!important}#files_paging{margin-top:10px!important}body{background-color:#1d2025!important}#files_paging.paging,#folders_paging,div.bg-white,.form-control{background:#3a414b!important;color:#b0c5e3!important}div.border-bottom{border-color:#576271!important}@media (orientation:portrait){body{padding:10px!important}}`; const styleRedirects = `body,html{overflow:hidden!important;background:#1d2025!important}.download-btn > button, #dlbtn, #downbtn, a.btn.btn-primary.btn-block.mb-4{max-width: 500px!important;}.download-btn,#downloadNow{position: fixed!important;top: 0!important;left: 0!important;z-index: 99999999!important;max-width: 100%!important;width: 100%!important;height: 100%!important;display: flex!important;justify-content: center!important;align-items: center!important;flex-direction: column!important;background-color: #1d2025!important;}`; // Boost Interval function boostInterval() { const sto = setInterval; setInterval = (arg, time) => sto(arg, time * 0.05); } boostInterval(); // Try click generate download button async function tryClick() { while (true) { await new Promise(r => setTimeout(r, 1000)); const button = document.querySelector('.btn-block.downloadbtn:not([style*="none"])'); button.click(); } } // Add styles function addStyle() { const style = document.createElement('style'); style.innerHTML = isDevuploadPage ? styleDevuploads : styleRedirects; document.documentElement.appendChild(style); } addStyle(); // Try click call if (!isDevuploadPage) tryClick(); })();