Devuplads Remove Bloat

show only download button and try click

当前为 2023-12-28 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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-body
// @grant       	GM_addStyle
// @grant       	GM_setValue
// @grant       	GM_getValue
// @grant       	GM_registerMenuCommand
// @version     	1.1.6
// @author      	hdyzen
// @license 		MIT
// ==/UserScript==

(function () {
	'use strict';
	// State try click
	let tryCick = GM_getValue('tryCick', true);

	// Menu
	GM_registerMenuCommand(`Try click: ${tryCick ? 'ON' : 'OFF'}`, () => {
		tryCick = !tryCick;
		GM_setValue('tryCick', tryCick);
		location.reload();
	});

	// Style for devuploads
	if (location.hostname !== 'devuploads.com') GM_addStyle(`body{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;}`);

	// Style for devuploads redirects
	if (location.hostname === 'devuploads.com') {
		if (tryCick) {
			const clickent = (async () => {
				while (true) {
					await new Promise((r) => setTimeout(r, 1000));
					const button = document.querySelector('button.btn.btn-primary.btn-block.downloadbtn:not([style*="none"])');
					button.click();
				}
			})();
		}
		GM_addStyle(`* {box-sizing: border-box !important;margin: 0 !important;padding: 0 !important;}h2.text-center.filesof {margin: 10px !important;}.navbar, .footer {display: none !important;}#container > .row {gap: 10px !important;}#container {height: 100vh !important;display: flex !important;justify-content: center !important;align-items: center !important;flex-direction: column !important;}div.mb-xl-5 {margin: 0 !important;}#files_list > .row {gap: 10px !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;}.bg-white, #files_paging.paging, .form-control, #folders_paging {background: #3a414b !important;color: #b0c5e3 !important;}.border-bottom {border-color: #576271 !important;}@media (orientation: portrait){body{padding: 10px !important;}}`);
	}
})();