Skip to content

Commit

Permalink
add blacklistPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
brookhong committed May 30, 2016
1 parent fd9ae65 commit ca4220c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content_scripts/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ var Events = (function() {
};

self.isBlacklisted = function() {
return runtime.settings.blacklist[window.location.origin] || runtime.settings.blacklist['.*'];
return runtime.settings.blacklist[window.location.origin] || runtime.settings.blacklist['.*']
|| (runtime.settings.blacklistPattern && runtime.settings.blacklistPattern.test(window.location.href));
};

var eventListeners = {
Expand Down

0 comments on commit ca4220c

Please sign in to comment.