From 6df8493bb6f56f89c4b5bd43e0d34afcc5e70ba8 Mon Sep 17 00:00:00 2001
From: nobody42 <5514211-nobody42@users.noreply.gitlab.com>
Date: Sun, 17 May 2020 08:35:24 +0200
Subject: [PATCH 1/6] Addition to the encoding problem (#75)
---
core/constants.js | 3 ++-
manifest.json | 2 +-
pages/updates/updates.html | 38 ++++++++++++++++++++++----------------
3 files changed, 25 insertions(+), 18 deletions(-)
diff --git a/core/constants.js b/core/constants.js
index 17c3a8c3..44194f2f 100644
--- a/core/constants.js
+++ b/core/constants.js
@@ -104,5 +104,6 @@ const CharsetDomains = {
'hobbybrauerversand.de': 'iso-8859-1',
'pro-linux.de': 'iso-8859-15',
'wwwuser.gwdg.de': 'windows-1252',
- 'tyurem.net': 'windows-1251'
+ 'tyurem.net': 'windows-1251',
+ "psi-plus.com": "windows-1251"
};
diff --git a/manifest.json b/manifest.json
index 388a45c1..241e8f96 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "LocalCDN (fork from Decentraleyes)",
- "version": "2.2.1",
+ "version": "2.2.2",
"browser_specific_settings": {
"gecko": {
"id": "{b86e4813-687a-43e6-ab65-0bde4ab75758}",
diff --git a/pages/updates/updates.html b/pages/updates/updates.html
index 529a2ae3..e1410a06 100644
--- a/pages/updates/updates.html
+++ b/pages/updates/updates.html
@@ -21,6 +21,27 @@
New in LocalCDN:
+
+ - Addition to the encoding problem (#75)
+
+
+
+
+ Please update your uBlock/uMatrix rules
+
+
+
+
+
+
+
+
+
+
+
+
+
History
+
2020-05-16 (v2.2.1)
- Fixed: Encoding problem with some websites (maybe only temporary, because at the moment only 9 websites are affected) (#75)
- Added: Twitter Bootstrap JS and CSS v4.5.0 (#77)
@@ -29,7 +50,7 @@
- Added: Tether v1.4.7 (#77)
- Addition to the encoding problem (#75)
-
+ 2020-05-10 (v2.2.0)
- Fixed typo in urlize
- Remove crossorigin and integrity attributes (#66)
[experimental] It should be working without problems
@@ -49,21 +70,6 @@
- Added Angular Stripe Checkout v5.1.0 (#71)
- Fixed error in AngularJS Toaster v0.4.18 (#71)
-
- Please update your uBlock/uMatrix rules
-
-
-
-
-
-
-
-
-
-
-
-
- History
2020-04-26 (v2.1.14)
- Added Bootstrap-select v1.13.14
From 88d6946fa016397d7b5c98c49eecfd0921609805 Mon Sep 17 00:00:00 2001
From: nobody42 <5514211-nobody42@users.noreply.gitlab.com>
Date: Sun, 17 May 2020 08:43:27 +0200
Subject: [PATCH 2/6] Considers existing charset in header
---
core/manipulate-dom.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/manipulate-dom.js b/core/manipulate-dom.js
index 05d21885..00f4a88e 100644
--- a/core/manipulate-dom.js
+++ b/core/manipulate-dom.js
@@ -49,14 +49,14 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
let mimeType, charset, initiatorDomain, isWhitelisted;
mimeType = header.value.replace(/;.*/, '').toLowerCase();
- charset = /charset\s*=/.test(header.value) ? header.value.replace(/^.*?charset\s*=\s*/, '') : 'UTF-8';
+ charset = /charset\s*=/.test(header.value) ? header.value.replace(/^.*?charset\s*=\s*/, '') : undefined;
initiatorDomain = helpers.extractDomainFromUrl(details.url, true) || Address.EXAMPLE;
isWhitelisted = stateManager._domainIsWhitelisted(initiatorDomain);
if (!isWhitelisted && mimeType === 'text/html') {
header.value = 'text/html; charset=UTF-8';
- let decoder = new TextDecoder(manipulateDOM._getEncoding(initiatorDomain));
+ let decoder = new TextDecoder(charset === undefined ? manipulateDOM._getEncoding(initiatorDomain) : charset);
let encoder = new TextEncoder();
let filter = browser.webRequest.filterResponseData(details.requestId);
From 5c21b107050ac4342da7cf1a5dd950cbf11135f9 Mon Sep 17 00:00:00 2001
From: nobody42 <5514211-nobody42@users.noreply.gitlab.com>
Date: Tue, 19 May 2020 17:24:36 +0200
Subject: [PATCH 3/6] Donate button style changed
---
pages/popup/popup.css | 14 ++++++++++++++
pages/popup/popup.html | 2 +-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/pages/popup/popup.css b/pages/popup/popup.css
index 2cca6b15..efefb0ac 100644
--- a/pages/popup/popup.css
+++ b/pages/popup/popup.css
@@ -179,6 +179,20 @@ footer {
color: #339a6f;
}
+#donate-button {
+ -moz-user-select: none;
+ user-select: none;
+ color: #5f5f5f;
+ cursor: pointer;
+ float: right;
+ font-size: 12px;
+ padding: 5px;
+}
+
+#donate-button:hover {
+ transform: scale(1.3);
+}
+
#options-button-svg,
#donate-button-svg {
background-size: cover;
diff --git a/pages/popup/popup.html b/pages/popup/popup.html
index ce8ce09f..87e5dd74 100644
--- a/pages/popup/popup.html
+++ b/pages/popup/popup.html
@@ -27,7 +27,7 @@
LocalCDN
-