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

Twitch tab reload, scripts are loaded only on specific sites, extension button only visible on saltybet #56

Merged
merged 5 commits into from
Jul 25, 2015

Conversation

reconman
Copy link
Collaborator

No description provided.

Stefan Berger added 5 commits July 24, 2015 17:12
Related to #55?

Sometimes when the twitch-tab is created, the twitch_content.js script
does not load. A reload should probably fix this.

Additionally, I've split the scripts and matches into the 2 pages so
unnecessary scripts are not loaded anymore on both sites.
Changing it to page_action and adding the lines to the background-script
disables the button for all sites but saltybet.com.
synkarius added a commit that referenced this pull request Jul 25, 2015
Twitch tab reload, scripts are loaded only on specific sites, extension button only visible on saltybet
@synkarius synkarius merged commit 6896db8 into saltbot-org:master Jul 25, 2015
@synkarius
Copy link
Collaborator

I tested this with Chrome and Canary. I'm unable to see the SaltBot icon anywhere now, even on www.saltybet.com. I haven't pushed it to the Chrome Store yet.

@synkarius synkarius mentioned this pull request Jul 25, 2015
@reconman
Copy link
Collaborator Author

Sorry for that, I thought hostEquals would function without www as I've seen 'example.com' used. hostSuffix only compares everything after the www, so I've changed that.

@reconman
Copy link
Collaborator Author

After disabling uBlock and Ghostery it works perfectly without reloading, so I'm removing the reload again.

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.

2 participants