mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-02 12:27:27 +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) {
|
interceptor.handleRequest = function (requestDetails, tabIdentifier, tab) {
|
||||||
|
|
||||||
let validCandidate, tabDomain, targetDetails, targetPath;
|
let validCandidate, targetDetails, targetPath;
|
||||||
|
|
||||||
validCandidate = requestAnalyzer.isValidCandidate(requestDetails, tab);
|
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);
|
targetDetails = requestAnalyzer.getLocalTarget(requestDetails);
|
||||||
targetPath = targetDetails.path;
|
targetPath = targetDetails.path;
|
||||||
|
|
||||||
@ -141,9 +129,6 @@ interceptor._handleStorageChanged = function (changes) {
|
|||||||
* Initializations
|
* Initializations
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Temporary list of tainted domains.
|
|
||||||
interceptor.taintedDomains = {};
|
|
||||||
|
|
||||||
interceptor.amountInjected = 0;
|
interceptor.amountInjected = 0;
|
||||||
interceptor.xhrTestDomain = Address.DECENTRALEYES;
|
interceptor.xhrTestDomain = Address.DECENTRALEYES;
|
||||||
interceptor.blockMissing = false;
|
interceptor.blockMissing = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user