1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-02-02 12:27:27 +01:00

Identify correct charset if its in quotation mark

This commit is contained in:
nobody 2020-05-21 19:44:33 +02:00
parent cde7cd6bbd
commit 2840cd6d1b
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
3 changed files with 9 additions and 5 deletions

View File

@ -57,7 +57,7 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) {
asciiDecoder = new TextDecoder('ASCII'); asciiDecoder = new TextDecoder('ASCII');
encoder = new TextEncoder(); encoder = new TextEncoder();
charset = /charset\s*=/.test(header.value) && header.value.replace(/^.*?charset\s*=\s*/, ''); charset = /charset\s*=/.test(header.value) && header.value.replace(/^.*?charset\s*=\s*/, '').replace(/["']?/g, '');
isFirstData = true; isFirstData = true;
filter = browser.webRequest.filterResponseData(details.requestId); filter = browser.webRequest.filterResponseData(details.requestId);

View File

@ -1,7 +1,7 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "LocalCDN (fork from Decentraleyes)", "name": "LocalCDN (fork from Decentraleyes)",
"version": "2.2.2", "version": "2.2.3",
"browser_specific_settings": { "browser_specific_settings": {
"gecko": { "gecko": {
"id": "{b86e4813-687a-43e6-ab65-0bde4ab75758}", "id": "{b86e4813-687a-43e6-ab65-0bde4ab75758}",

View File

@ -21,10 +21,10 @@
<div class="subtle-hint"> <div class="subtle-hint">
<div class="topic-label"> <div class="topic-label">
New in LocalCDN: New in LocalCDN:
<ul>
<li>Addition to the encoding problem (<a href="https://gitlab.com/nobody42/localcdn/-/issues/75">#75</a>)</li>
</ul>
</div> </div>
<ul>
<li>Fixed: Identify correct charset if its in quotation marks</li>
</ul>
<div class="topic-label"> <div class="topic-label">
Please update your uBlock/uMatrix rules Please update your uBlock/uMatrix rules
@ -41,6 +41,10 @@
<input id="button-copy-rule-set" type="button" value="Copy"> <input id="button-copy-rule-set" type="button" value="Copy">
<hr/> <hr/>
<h2>History</h2> <h2>History</h2>
<p class='release-date'>2020-05-21 (v2.2.2)</p>
<ul>
<li>Addition to the encoding problem (<a href="https://gitlab.com/nobody42/localcdn/-/issues/75">#75</a>)</li>
</ul>
<p class='release-date'>2020-05-16 (v2.2.1)</p> <p class='release-date'>2020-05-16 (v2.2.1)</p>
<ul> <ul>
<li>Fixed: Encoding problem with some websites (maybe only temporary, because at the moment only 9 websites are affected) (<a href="https://gitlab.com/nobody42/localcdn/-/issues/75">#75</a>)</li> <li>Fixed: Encoding problem with some websites (maybe only temporary, because at the moment only 9 websites are affected) (<a href="https://gitlab.com/nobody42/localcdn/-/issues/75">#75</a>)</li>