Devuplads Remove Bloat

show only download button and try click

目前為 2024-01-21 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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-start
// @grant       	GM_getValue
// @grant       	GM_setValue
// @version     	1.1.7.3
// @author      	hdyzen
// @license 		MIT
// ==/UserScript==
'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 {overflow: hidden !important;}div:has(> .download-btn) {max-width: unset !important;position: fixed !important;inset: 0 !important;z-index: 999 !important;display: flex !important;justify-content: center !important;align-items: center !important;background: #1d2025 !important;& .download-btn {width: 350px !important;}}#plzwait {position: fixed !important;top: 30% !important;left: 50% !important;translate: -50% -50% !important;}:is(#downloadNow, #adBlocked, #Blocked):not([style="display:none"]) {display: flex !important;justify-content: center !important;align-items: center !important;flex-direction: column !important;position: fixed !important;inset: 0 !important;max-width: unset !important;background-color: #1d2025 !important;z-index: 999 !important;& > a {max-width: 350px !important;}}.navbar, .stickyads_Mobile_Only {z-index: 0 !important;}ins {display: none !important;}`;

// Add styles
function addStyle() {
	const style = document.createElement('style');

	style.setAttribute('old', '');

	style.innerHTML = isDevuploadPage ? styleDevuploads : styleRedirects;

	document.documentElement.append(style);
}
addStyle();