mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-18 17:02:27 +02:00
Further fine tune nowoif scriptlet
This commit is contained in:
parent
0598476b99
commit
cb6486859c
@ -80,7 +80,7 @@
|
|||||||
const decoy = /\bobj\b/.test(arg3)
|
const decoy = /\bobj\b/.test(arg3)
|
||||||
? createDecoy('object', 'data', url)
|
? createDecoy('object', 'data', url)
|
||||||
: createDecoy('iframe', 'src', url);
|
: createDecoy('iframe', 'src', url);
|
||||||
let popup = decoy.contentWindow;
|
let popup = decoy.contentWindow || decoy;
|
||||||
Object.defineProperty(popup, 'closed', { value: false });
|
Object.defineProperty(popup, 'closed', { value: false });
|
||||||
if ( /\blog\b/.test(arg3) ) {
|
if ( /\blog\b/.test(arg3) ) {
|
||||||
popup = new Proxy(popup, {
|
popup = new Proxy(popup, {
|
||||||
|
Loading…
Reference in New Issue
Block a user