rugk / unicodify

✍️ A browser add-on (Firefox, Chrome, Thunderbird) that allows you to autocorrect common text sequences and convert text characters to a look like a special font.
https://addons.mozilla.org/firefox/addon/unicodify-text-transformer/?utm_source=github.com&utm_medium=git&utm_content=repo-about-description&utm_campaign=github
Other
11 stars 2 forks source link

Exclude certain websites from autocorrection #35

Open rugk opened 3 years ago

rugk commented 3 years ago

Background

I guess the problem is that I could continue to use the add-on if I had some way to workaround/circumvent the problem at least. Like with a website blacklist. I don't want to disable autocorrection at all though.

from https://github.com/rugk/unicodify/discussions/34

Proposed solution

I should be able to define some exclude list to exclude websites from the add-on interferring. Or maybe just (also?) a toolbar icon to enable/disable the add-on per website. Like adblockers etc. have.

Alternatives

Fix all™ bugs/text problems that add-on's autocompletion may cause. – That would be a strong claim and I'm not sure whether it is achievable though. Technically it most may be fixed by #4, but I guess you can never handle all the cases, where certain characters should not be replaced due to some semantic thing like "On GitHub I do not want --> to be replaced." etc.

Nevertheless, I'd always say, fixing the bugs or providing workarounds for them should be our no. 1 priority. Excluding sites would still be useful though. :slightly_smiling_face:

Additional context

tdulcet commented 3 years ago

I should be able to define some exclude list to exclude websites from the add-on interferring.

This should be possible in Firefox at least using contentScripts.register(), although it would require the same changes to your AutomaticSettings library as #30 (see https://github.com/rugk/unicodify/issues/30#issuecomment-823174295).

Or maybe just (also?) a toolbar icon to enable/disable the add-on per website. Like adblockers etc. have.

I am not sure if we would want to clutter up the user’s toolbar with yet another icon, especially since we would not have much of anything to show besides this button. It we were just temporally disabling autocorrection it on the current page, it should be easy to implement. Although if we were permanently disabling them for the whole hostname of the current site, it would likely require the same changes as above. A better option may be to add a checkbox to the context menu, similar to the “Check Spelling”.