您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically remove the Disable Ads Blocker overlays on 1mov.lol
当前为
// ==UserScript== // @name 1mov.lol Disable Adblock Remover // @version 1.1 // @description Automatically remove the Disable Ads Blocker overlays on 1mov.lol // @author Stuart Saddler // @match https://1mov.lol/* // @license MIT // @namespace https://gf.qytechs.cn/users/567951 // ==/UserScript== (function() { 'use strict'; // Function to identify and remove overlays, excluding login-related elements and season/episode selectors function removeStubbornOverlays() { // Select all elements const elements = document.querySelectorAll('*'); elements.forEach(element => { const style = window.getComputedStyle(element); const zIndex = parseInt(style.zIndex, 10); const textContent = element.textContent.toLowerCase(); const className = element.className.toLowerCase(); const id = element.id.toLowerCase(); // Keywords to identify login-related elements to exclude const loginKeywords = ['login', 'sign in', 'register', 'sign up', 'sign out', 'logout']; // Keywords to identify season and episode dropdowns to exclude const seasonEpisodeKeywords = ['episodes', 'season', 'tv']; // Check if the element matches any login-related or season/episode keyword in its text, class, or ID const isLoginRelated = loginKeywords.some(keyword => textContent.includes(keyword) || className.includes(keyword) || id.includes(keyword) ); const isSeasonEpisodeRelated = seasonEpisodeKeywords.some(keyword => textContent.includes(keyword) || className.includes(keyword) || id.includes(keyword) ); // Remove overlays if they're not login-related or season/episode-related, and if position is fixed or absolute and z-index is high if ((style.position === 'fixed' || style.position === 'absolute') && zIndex > 999 && !isLoginRelated && !isSeasonEpisodeRelated) { element.remove(); // Remove the overlay } }); // Additional removal of elements with overlay-specific IDs or classes, but still exclude login and season/episode elements const specificOverlays = ['#modal-overlay', '.modal-backdrop', '.popup-overlay', '#full-screen-overlay']; specificOverlays.forEach(selector => { const overlays = document.querySelectorAll(selector); overlays.forEach(overlay => { const textContent = overlay.textContent.toLowerCase(); const className = overlay.className.toLowerCase(); const id = overlay.id.toLowerCase(); const isLoginRelated = loginKeywords.some(keyword => textContent.includes(keyword) || className.includes(keyword) || id.includes(keyword) ); const isSeasonEpisodeRelated = seasonEpisodeKeywords.some(keyword => textContent.includes(keyword) || className.includes(keyword) || id.includes(keyword) ); if (!isLoginRelated && !isSeasonEpisodeRelated) { overlay.remove(); } }); }); } // Initial removal of existing overlays removeStubbornOverlays(); // Use MutationObserver to detect dynamically added overlays and remove them const observer = new MutationObserver(() => { removeStubbornOverlays(); }); observer.observe(document.body, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址