style url as regex instead of plain starts with

This commit is contained in:
alexadam 2017-07-10 22:36:16 +03:00
parent 84dfab759f
commit 126ce6f039
3 changed files with 26 additions and 12 deletions

View file

@ -35,8 +35,8 @@ chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
// TODO move defaultStyles in a different file/location ?
var defaultStyles = [
{
title: 'reddit',
url: 'reddit.com',
title: 'Reddit Comments',
url: 'reddit\.com\/r\/[^\/]+\/comments',
style: `.class {
display: none;
}