AnAngryRaven / twitch-stats-remover-extension

Browser extension that removes multiple statistics from Twitch.
MIT License
1 stars 0 forks source link

Rework things to be less destructive #4

Open AnAngryRaven opened 1 week ago

AnAngryRaven commented 1 week ago

Currently, the extension simply removes elements from the DOM. A simple solution, but not one that should be permanent. Ideally, elements are hidden from view as opposed to removed.

This permits live editing of the extension's settings, as opposed to needing to refresh each time. It's also probably the better way to do it really.

AnAngryRaven commented 1 week ago

The removing of elements seems easy enough to change from -- I'll probably start with setting their display type to none, see how that goes.

With the text changing functions, I might try to do the above and then insert a text element with a custom ID to act as a removal "replacement". I'm honestly not sure how well that'll go, but may as well try it I suppose.