From 2839963d95ae8e1f08710bfc0b505178aa3a7e08 Mon Sep 17 00:00:00 2001 From: Ghostery Adblocker Bot Date: Fri, 8 May 2026 20:29:50 +0000 Subject: [PATCH] Update scriptlets --- package.json | 2 +- ubo.js | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 6614087..49cd6cb 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "type": "module", "scripts": { - "build": "deno build.ts --tagName 1.70.1b5 > ubo.js", + "build": "deno build.ts --tagName 1.70.1rc0 > ubo.js", "test": "node --test" }, "author": { diff --git a/ubo.js b/ubo.js index a2b0084..e12f112 100644 --- a/ubo.js +++ b/ubo.js @@ -21573,12 +21573,15 @@ function freezeElementProperty( const logPrefix = safe.makeLogPrefix('freeze-element-property', property, selector, pattern); const matcher = safe.initPattern(pattern, { canNegate: true }); const owner = (( ) => { - if ( Object.hasOwn(Element.prototype, property) ) { - return Element.prototype; + if ( Object.hasOwn(HTMLScriptElement.prototype, property) ) { + return HTMLScriptElement.prototype; } if ( Object.hasOwn(HTMLElement.prototype, property) ) { return HTMLElement.prototype; } + if ( Object.hasOwn(Element.prototype, property) ) { + return Element.prototype; + } if ( Object.hasOwn(Node.prototype, property) ) { return Node.prototype; } @@ -21822,12 +21825,15 @@ function freezeElementProperty( const logPrefix = safe.makeLogPrefix('freeze-element-property', property, selector, pattern); const matcher = safe.initPattern(pattern, { canNegate: true }); const owner = (( ) => { - if ( Object.hasOwn(Element.prototype, property) ) { - return Element.prototype; + if ( Object.hasOwn(HTMLScriptElement.prototype, property) ) { + return HTMLScriptElement.prototype; } if ( Object.hasOwn(HTMLElement.prototype, property) ) { return HTMLElement.prototype; } + if ( Object.hasOwn(Element.prototype, property) ) { + return Element.prototype; + } if ( Object.hasOwn(Node.prototype, property) ) { return Node.prototype; }