From e597707eaeefa1748a593d59dc353ab6661cfa5d Mon Sep 17 00:00:00 2001 From: nobody Date: Sat, 30 Jan 2021 06:45:21 +0100 Subject: [PATCH] Improved: HTML filter (#257) --- core/manipulate-dom.js | 23 +++++++++++++++-------- pages/updates/updates.html | 1 + 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/core/manipulate-dom.js b/core/manipulate-dom.js index 4ebca7e6..be71c4f2 100644 --- a/core/manipulate-dom.js +++ b/core/manipulate-dom.js @@ -73,10 +73,11 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) { encoder = new TextEncoder(); isFirstData = true; filter = browser.webRequest.filterResponseData(details.requestId); + let data = []; header.value = 'text/html; charset=UTF-8'; - //Note that this will not work if the '