Skip to content
This repository has been archived by the owner on Jun 8, 2018. It is now read-only.

Commit

Permalink
Update undetectable tainted domains
Browse files Browse the repository at this point in the history
  • Loading branch information
Synzvato committed May 7, 2016
1 parent 4396c1c commit f16a81c
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions lib/load-watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ var storage = simpleStorage.storage;
*/
var undetectableTaintedDomains = {

'api-maps.yandex.ru': true,
'direct.yandex.com': true,
'direct.yandex.ru': true,
'disk.yandex.com': true,
Expand All @@ -71,6 +70,8 @@ var undetectableTaintedDomains = {
'news.yandex.ru': true,
'news.yandex.ua': true,
'passport.twitch.tv': true,
'taxi.yandex.com': true,
'taxi.yandex.ru': true,
'ya.ru': true,
'yandex.com': true,
'yandex.ru': true
Expand All @@ -80,7 +81,20 @@ var undetectableTaintedDomains = {
* Initializations
*/

storage.taintedDomains = storage.taintedDomains || undetectableTaintedDomains;
Object.extend = function (destination, source) {

for (var property in source) {

if (source.hasOwnProperty(property)) {
destination[property] = source[property];
}
}

return destination;
};

storage.taintedDomains = storage.taintedDomains || {};
storage.taintedDomains = Object.extend(storage.taintedDomains, undetectableTaintedDomains);

/**
* Load Watcher Class
Expand Down

0 comments on commit f16a81c

Please sign in to comment.