From 111dbb88d3372f65ae6bcfb722d8964a9cde1a2c Mon Sep 17 00:00:00 2001 From: Ghostery Adblocker Bot Date: Wed, 14 Jan 2026 21:58:23 +0000 Subject: [PATCH] Update scriptlets --- package.json | 2 +- ubo.js | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 3815da8..2fbbc71 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "index.js", "type": "module", "scripts": { - "build": "deno build.ts --tagName 1.68.1rc1 > ubo.js", + "build": "deno build.ts --tagName 1.68.1rc2 > ubo.js", "test": "node --test" }, "author": { diff --git a/ubo.js b/ubo.js index f8ea33c..13b3e72 100644 --- a/ubo.js +++ b/ubo.js @@ -1256,7 +1256,7 @@ aliases: ["urlskip.js"], world: 'ISOLATED', requiresTrust: false, func: function (scriptletGlobals = {}, ...args) { -function urlSkip(url, blocked, steps, directive = {}) { +function urlSkip(url, blocked, steps) { try { let redirectBlocked = false; let urlout = url; @@ -1316,10 +1316,7 @@ function urlSkip(url, blocked, steps, directive = {}) { } // Regex extraction from first capture group if ( c0 === 0x2F ) { // / - const re = directive.cache ?? new RegExp(step.slice(1, -1)); - if ( directive.cache === null ) { - directive.cache = re; - } + const re = new RegExp(step.slice(1, -1)); const match = re.exec(urlin); if ( match === null ) { return; } if ( match.length <= 1 ) { return; } @@ -32907,7 +32904,7 @@ function trustedClickElement( return chrome.dom.openOrClosedShadowRoot(elem); } } - return null; + return elem.shadowRoot; }; const querySelectorEx = (selector, context = document) => {