andy-portmen / open-in-vlc

a browser extension to send media links to VLC media player
https://webextension.org/listing/open-in-vlc.html
Mozilla Public License 2.0
117 stars 56 forks source link

Keyword filter v2+v3 #32

Closed Kamiikaze closed 2 years ago

Kamiikaze commented 2 years ago

Added the Keyword filter to both versions of it.

Old PR: Keyword Filter #24

andy-portmen commented 2 years ago

Thanks!

Kamiikaze commented 2 years ago

Your welcome!

andy-portmen commented 2 years ago

Few changes:

  1. Only validates the new entries. There is no need to run the RegExp for all entries.
  2. Use Array instead of the String to keep the list. This is faster since we run the validator many times.

https://github.com/andy-portmen/open-in-vlc/commit/5ff7ab078be429db860b0611b55f0a18ec497008