Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #7194: Add scriptletGlobals (#7195)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonok-edm authored and iccub committed Apr 17, 2023
1 parent 92e7c08 commit 2a2165b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ class ScriptFactory {
case .engineScript(let configuration):
let source = [
"(function(){",
// This map is used by some of uBlock Origin's resources
"const scriptletGlobals = new Map();",
// This boolean is used by a script injected by cosmetic filters and enables that script via this boolean
// The script is found here: https://github.com/brave/adblock-resources/blob/master/resources/de-amp.js
// - Note: This script is only a smaller part (1 of 3) of de-amping:
Expand Down

0 comments on commit 2a2165b

Please # to comment.