您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script hides the alert "UsingAdBlock".
当前为
// ==UserScript== // @name MyMovies: Hide the "UsingAdBlock" alert // @name:it MyMovies: Nasconde l'avviso "UsingAdBlock" // @description This script hides the alert "UsingAdBlock". // @description:it Questo script nasconde l'alert "UsingAdBlock". // @match https://*.mymovies.it/* // @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js // @grant none //// @run-at document-start // @version 1.0.1 // @author Cyrano68 // @license MIT // @namespace https://gf.qytechs.cn/users/788550 // ==/UserScript== (function() { "use strict"; console.log("==> MyMovies_HideUsingAdBlockAlert: HELLO! Loading script..."); document.addEventListener("DOMContentLoaded", onDOMContentLoaded); window.addEventListener("load", onWindowLoaded); createMutationObserver(); function onDOMContentLoaded() { console.log(`==> MyMovies_HideUsingAdBlockAlert: onDOMContentLoaded - document.readyState=${document.readyState}`); // DO NOTHING! } function onWindowLoaded() { console.log(`==> MyMovies_HideUsingAdBlockAlert: onWindowLoaded - document.readyState=${document.readyState}`); // DO NOTHING! } function onMutationList(mutationList, observer) { // We can simply check the presence of the popup in the DOM tree. var divContainer = $("div.fc-dialog-container:visible"); //console.log(`==> MyMovies_HideUsingAdBlockAlert: onMutationList - divContainer.length=${divContainer.length}`); if (divContainer.length > 0) { divContainer.hide(); divContainer.remove(); $("body").css("overflow-y", "scroll"); // Show vertical scrollbar console.log(`==> MyMovies_HideUsingAdBlockAlert: onMutationList - divContainer.length=${divContainer.length} ---> HIDDEN/REMOVED`); } /* // We also hide another popup appearing on top of the page. var divPrompt = $("div.gr-visual-prompt:visible"); //console.log(`==> MyMovies_HideUsingAdBlockAlert: onMutationList - divPrompt.length=${divPrompt.length}`); if (divPrompt.length > 0) { divPrompt.hide(); divPrompt.remove(); $("body").css("overflow-y", "scroll"); // Show vertical scrollbar console.log(`==> MyMovies_HideUsingAdBlockAlert: onMutationList - divPrompt.length=${divPrompt.length} ---> HIDDEN/REMOVED`); } */ } function createMutationObserver() { console.log("==> MyMovies_HideUsingAdBlockAlert: createMutationObserver"); // Options for the observer (which mutations to observe). const config = {attributes: true, childList: true, subtree: true, characterData: true}; var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; // Create an observer instance linked to the callback function. const observer = new MutationObserver(onMutationList); // Start observing the target node for configured mutations. observer.observe(document, config); } console.log("==> MyMovies_HideUsingAdBlockAlert: Script loaded"); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址