mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Make google-ima a valid injectable scriptlet
Related feedback: https://www.reddit.com/r/uBlockOrigin/comments/1m4dbk1/ublock_being_detected_on_south_park_studios/
This commit is contained in:
parent
23155d81cd
commit
47cbb43a0e
2 changed files with 2 additions and 0 deletions
|
|
@ -210,6 +210,7 @@ class RedirectEngine {
|
|||
const entry = this.resources.get(this.aliases.get(name) || name);
|
||||
if ( entry === undefined ) { return; }
|
||||
if ( entry.mime.startsWith(mime) === false ) { return; }
|
||||
if ( entry.data === undefined ) { return; }
|
||||
return {
|
||||
js: entry.toContent(),
|
||||
world: entry.world,
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@ export default new Map([
|
|||
} ],
|
||||
[ 'google-ima.js', {
|
||||
alias: 'google-ima3', /* adguard compatibility */
|
||||
data: 'text',
|
||||
} ],
|
||||
[ 'googlesyndication_adsbygoogle.js', {
|
||||
alias: [
|
||||
|
|
|
|||
Loading…
Reference in a new issue