Qeole / Enlight

Firefox add-on providing syntax highlighting for raw code, based on the highlight.js project.
Mozilla Public License 2.0
44 stars 2 forks source link

Feature Request: URL exclusion list #20

Open kmantel opened 1 year ago

kmantel commented 1 year ago

Hi, thanks for the great addon!

I'd like to be able to disable autodetection and/or highlighting given certain URL patterns. What prompted this was opening some really large github actions raw logs, which resulted in Enlight hanging the tab while it processed the output, which I didn't need highlighting for. So, it would be great if based on either regex patterns or at least subdomains I could set exclusions from autodetection while not disabling the feature entirely.

Qeole commented 1 year ago

Hi, and thanks a lot for the feedback and suggestion!

I'm not against a block-list (or allow-list when generic autodetection is off), I've also experienced slowdowns on CI logs before. To be honest though, I don't think I'll find the time to work on this anytime soon. But Pull Requests are welcome!