Yes, I'm use similar:
> var exclude = ['mail.google.com', 'blizzard.com', 'megaupload.com',
> 'files.mail.ru'];
> var host = location.hostname.replace(/^www\./, '');
> for(var i = 0; i < exclude.length; i++){if(host == exclude[i])return};
But exclude should work faster and it just is more convenient.
Hunnter2k3:
> Couldn't you just detect the URL before doing any blocks?
> You could create a whitelist for such a thing.
> Plus, in this way, you could also make the blocking more dynamic.
>
> But yes, does need an exclude, would make things so much easier.
--~--~---------~--~----~------------~-------~--~----~
Chromium Discussion mailing list: [email protected]
View archives, change email options, or unsubscribe:
http://groups.google.com/group/chromium-discuss
-~----------~----~----~----~------~----~------~--~---