From 187f1831f0e87a4ca779197a775e179ff4dd84b9 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 20 Dec 2020 11:54:24 -0500 Subject: [PATCH] Allow more local resources to be redirected as data: URIs Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/issues/1388#issuecomment-748625280 --- src/js/redirect-engine.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/js/redirect-engine.js b/src/js/redirect-engine.js index 20c59cb57d6a6..5d8fd8a7b18b2 100644 --- a/src/js/redirect-engine.js +++ b/src/js/redirect-engine.js @@ -58,6 +58,7 @@ const redirectableResources = new Map([ } ], [ 'amazon_ads.js', { alias: 'amazon-adsystem.com/aax2/amzn_ads.js', + data: 'text', } ], [ 'amazon_apstag.js', { } ], @@ -72,30 +73,36 @@ const redirectableResources = new Map([ } ], [ 'doubleclick_instream_ad_status.js', { alias: 'doubleclick.net/instream/ad_status.js', + data: 'text', } ], [ 'empty', { data: 'text', // Important! } ], [ 'google-analytics_analytics.js', { alias: 'google-analytics.com/analytics.js', + data: 'text', } ], [ 'google-analytics_cx_api.js', { alias: 'google-analytics.com/cx/api.js', } ], [ 'google-analytics_ga.js', { alias: 'google-analytics.com/ga.js', + data: 'text', } ], [ 'google-analytics_inpage_linkid.js', { alias: 'google-analytics.com/inpage_linkid.js', } ], [ 'googlesyndication_adsbygoogle.js', { alias: 'googlesyndication.com/adsbygoogle.js', + data: 'text', } ], [ 'googletagmanager_gtm.js', { alias: 'googletagmanager.com/gtm.js', + data: 'text', } ], [ 'googletagservices_gpt.js', { alias: 'googletagservices.com/gpt.js', + data: 'text', } ], [ 'hd-main.js', { } ],