Skip to content

Commit ae8c183

Browse files
ghostery-adblocker-bot[bot]Ghostery Adblocker Bot
andauthored
Update scriptlets (#52)
Co-authored-by: Ghostery Adblocker Bot <ghostery-adblocker-bot@users.noreply.github.com>
1 parent 4e76bfa commit ae8c183

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "index.js",
66
"type": "module",
77
"scripts": {
8-
"build": "deno build.ts --tagName 1.70.1b5 > ubo.js",
8+
"build": "deno build.ts --tagName 1.70.1rc0 > ubo.js",
99
"test": "node --test"
1010
},
1111
"author": {

‎ubo.js‎

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21573,12 +21573,15 @@ function freezeElementProperty(
2157321573
const logPrefix = safe.makeLogPrefix('freeze-element-property', property, selector, pattern);
2157421574
const matcher = safe.initPattern(pattern, { canNegate: true });
2157521575
const owner = (( ) => {
21576-
if ( Object.hasOwn(Element.prototype, property) ) {
21577-
return Element.prototype;
21576+
if ( Object.hasOwn(HTMLScriptElement.prototype, property) ) {
21577+
return HTMLScriptElement.prototype;
2157821578
}
2157921579
if ( Object.hasOwn(HTMLElement.prototype, property) ) {
2158021580
return HTMLElement.prototype;
2158121581
}
21582+
if ( Object.hasOwn(Element.prototype, property) ) {
21583+
return Element.prototype;
21584+
}
2158221585
if ( Object.hasOwn(Node.prototype, property) ) {
2158321586
return Node.prototype;
2158421587
}
@@ -21822,12 +21825,15 @@ function freezeElementProperty(
2182221825
const logPrefix = safe.makeLogPrefix('freeze-element-property', property, selector, pattern);
2182321826
const matcher = safe.initPattern(pattern, { canNegate: true });
2182421827
const owner = (( ) => {
21825-
if ( Object.hasOwn(Element.prototype, property) ) {
21826-
return Element.prototype;
21828+
if ( Object.hasOwn(HTMLScriptElement.prototype, property) ) {
21829+
return HTMLScriptElement.prototype;
2182721830
}
2182821831
if ( Object.hasOwn(HTMLElement.prototype, property) ) {
2182921832
return HTMLElement.prototype;
2183021833
}
21834+
if ( Object.hasOwn(Element.prototype, property) ) {
21835+
return Element.prototype;
21836+
}
2183121837
if ( Object.hasOwn(Node.prototype, property) ) {
2183221838
return Node.prototype;
2183321839
}

0 commit comments

Comments
 (0)