From fc231998b9357b74c46450856535f948145b884a Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Thu, 6 Mar 2025 09:50:37 -0500 Subject: [PATCH] Improve `overlay-buster` scriptlet Related discussion: https://github.com/uBlockOrigin/uBlock-issues/discussions/3470 --- src/js/resources/scriptlets.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/resources/scriptlets.js b/src/js/resources/scriptlets.js index 105bdb75e..f182a961a 100755 --- a/src/js/resources/scriptlets.js +++ b/src/js/resources/scriptlets.js @@ -2103,8 +2103,8 @@ builtinScriptlets.push({ // Experimental: Generic nuisance overlay buster. // if this works well and proves to be useful, this may end up // as a stock tool in uBO's popup panel. -function overlayBuster() { - if ( window !== window.top ) { return; } +function overlayBuster(allFrames) { + if ( allFrame === '' && window !== window.top ) { return; } var tstart; var ttl = 30000; var delay = 0;