Fixed: yandex.com

This commit is contained in:
nobody 2020-07-25 20:34:41 +02:00
parent 2ab75f5b68
commit 8540b21035
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
2 changed files with 6 additions and 0 deletions

View File

@ -56,6 +56,11 @@ requestAnalyzer.isValidCandidate = function (requestDetails, tabDetails) {
}
}
// Disable LocalCDN if website is 'yandex.com' and CDN is 'yastatic.net', because website and CDN are the same.
if (tabDetails.url.includes('yandex.com') && requestDetails.url.includes('yastatic.net')) {
return false;
}
// Only requests of type GET can be valid candidates.
return requestDetails.method === WebRequest.GET;
};

View File

@ -27,6 +27,7 @@
<li>Implemented: Hide icon setting if not supported</li>
<li>Implemented: Show the rule set generator only when there are new CDNs (reported by <a href="https://addons.mozilla.org/en-US/firefox/addon/localcdn-fork-of-decentraleyes/reviews/1572952/">review</a>)</li>
<li>Fixed: Selection of 'jQuery latest' (<a href="https://codeberg.org/nobody/LocalCDN/issues/64">#64</a>)</li>
<li>Fixed: Disable LocalCDN if website is 'yandex.com' and CDN is 'yastatic.net', because website and CDN are the same. (reported by email)</li>
</ul>
<div id="generator-section">
<div class="topic-label">