Improve overlay-buster scriptlet

Related discussion:
https://github.com/uBlockOrigin/uBlock-issues/discussions/3470
This commit is contained in:
Raymond Hill 2025-03-06 09:50:37 -05:00
parent 4a5c2723ff
commit fc231998b9
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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;