Allow regex in blacklist fixes #167 #542 (#546)

* Allow regex in blacklist fixes #167 #542
* Added protection against invalid regex causing failed initialization
* Added regex input validation
This commit is contained in:
Chad Bailey
2019-11-25 15:43:05 -06:00
committed by Ilya Grigorik
parent c4a26e3da2
commit ac7471edfc
3 changed files with 40 additions and 3 deletions

View File

@@ -109,7 +109,12 @@
<input id="controllerOpacity" type="text" value="">
</div>
<div class="row">
<label for="blacklist">Blacklisted sites on which extension is disabled<br/>(one per line)</label>
<label for="blacklist">Blacklisted sites on which extension is disabled<br/>
(one per line)<br/>
<br/>
<em><a href="https://www.regexpal.com/">Regex</a> is supported. Be sure it is in "//g" format.<br/>
ie: /(.+)youtube\.com(\/*)$/gi</em>
</label>
<textarea id="blacklist" rows="10" cols="50"></textarea>
</div>
</section>