Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: added support for pop-out and embedded chats. #1053

Closed
wants to merge 1 commit into from

Conversation

tlstommy
Copy link

@tlstommy tlstommy commented Jul 4, 2024

Proposed changes

When viewing a Twitch chat that is using a Twitch chat embed url (https://www.twitch.tv/embed/<channel>/chat?) or a popout chat url (https://www.twitch.tv/popout/<channel>/chat), the 7TV extension will not load or work because it is only allowed to access top-level windows.

This is a simple fix that enables "all_frames": true in the manifest and then adds checks to see if the current window is a regular top-level window or a chat pop-out or embed.

This solves the following issues: #916 #844 #187

Types of changes

What types of changes does your code introduce to 7TV?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING doc
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Further comments

If this is a relatively large or complex change, you may want to start the discussion by explaining why you chose the solution you did, what alternatives you considered, etc.

@tlstommy tlstommy changed the title Commit checks to embed Feat: added support for pop-out and embedded chats. Jul 4, 2024
@TroyKomodo TroyKomodo requested a review from Excellify July 7, 2024 11:49
@TroyKomodo
Copy link
Member

I suspect this will require a store release @Excellify, if so I dont think we can merge this.

For OP; we have 2 deployment methods on the extension. 1. A hosted release, a store release. We cannot make store releases without first fixing some other issues with the chrome store / firefox store.

We plan to redo the extension entirely and we do not have the bandwidth to fix the extension's store issues. However this might be able to deployed as a tapermonkey script.

@Excellify
Copy link
Collaborator

We can't add permissions to the manifest either as that would cause the extension to be disabled for everyone who has it installed. We can only add optional permissions and request those at runtime.

@tlstommy
Copy link
Author

tlstommy commented Jul 8, 2024

I understand, thanks!

@Excellify Excellify deleted the branch SevenTV:dev October 9, 2024 20:59
@Excellify Excellify closed this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants