mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-01-22 23:40:39 +01:00
Temporary list of tainted domains removed
This commit is contained in:
parent
61f04f1c78
commit
30e36abd72
@ -30,7 +30,7 @@ var interceptor = {};
|
||||
|
||||
interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
||||
|
||||
let validCandidate, tabDomain, targetDetails, targetPath;
|
||||
let validCandidate, targetDetails, targetPath;
|
||||
|
||||
validCandidate = requestAnalyzer.isValidCandidate(requestDetails, tab);
|
||||
|
||||
@ -53,18 +53,6 @@ interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
||||
};
|
||||
}
|
||||
|
||||
tabDomain = helpers.extractDomainFromUrl(tab.url, true);
|
||||
|
||||
if (tabDomain === null) {
|
||||
tabDomain = Address.EXAMPLE;
|
||||
}
|
||||
|
||||
if (interceptor.taintedDomains[tabDomain] || (/yandex\./).test(tabDomain) ||
|
||||
(/wickedlocal\.com/).test(tabDomain)) {
|
||||
|
||||
return interceptor._handleMissingCandidate(requestDetails.url, true);
|
||||
}
|
||||
|
||||
targetDetails = requestAnalyzer.getLocalTarget(requestDetails);
|
||||
targetPath = targetDetails.path;
|
||||
|
||||
@ -141,9 +129,6 @@ interceptor._handleStorageChanged = function (changes) {
|
||||
* Initializations
|
||||
*/
|
||||
|
||||
// Temporary list of tainted domains.
|
||||
interceptor.taintedDomains = {};
|
||||
|
||||
interceptor.amountInjected = 0;
|
||||
interceptor.xhrTestDomain = Address.DECENTRALEYES;
|
||||
interceptor.blockMissing = false;
|
||||
|
Loading…
Reference in New Issue
Block a user