add: Copy Redeem Code Addon - #353
Open
Elle199 wants to merge 6 commits into
Open
Conversation
Dev to Master: New addon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Being annoyed by not having a convenient way to copy the redemption codes from notifications on Twitch I got motivated to write this add-on. It simply adds a little button under the delete button (the X icon) to copy the redeem code to the users clipboard.
I have tried to make it as performant as possibly by minimizing JS queries and limiting what element the mutation observer targets to the nearest DOM-element I could find.
After having finalized my code and going to make this pull request I did find that another user seem to have had the same idea as PR #255 shows. Since there seems to have been no active development on it though in almost a year I hope I am fine by making this pull request.