Skip to content

Specify GitHub in the manifest#7

Open
paulmolluzzo wants to merge 1 commit into
DrewML:masterfrom
paulmolluzzo:specify-github-manifest
Open

Specify GitHub in the manifest#7
paulmolluzzo wants to merge 1 commit into
DrewML:masterfrom
paulmolluzzo:specify-github-manifest

Conversation

@paulmolluzzo

Copy link
Copy Markdown
Contributor

This doesn't change the behavior of the extension, but makes sure that the extension only gets loaded into GitHub pages. You could probably messageIfFound() function in the inject.js file since this ensures it's only a Github page, but I didn't go that far.

@DrewML

DrewML commented Mar 24, 2016

Copy link
Copy Markdown
Owner

I initially had gone this route (restricting to just the GitHub.com domain), but realized it would be limiting anyone that wanted to use this for GH Enterprise.

I'll look a bit more into dynamic permissions for Chrome extensions, to see if I can just add an option for users to add their own hostname. I definitely don't like having to request access to all pages, but last time I checked, dynamic host permissions were pretty limited.

P.S. Thanks for contributing!

@sindresorhus

Copy link
Copy Markdown

@DrewML Notifier for GitHub handles GitHub Enterprise in an option. You could look at how it does it: https://github.com/sindresorhus/notifier-for-github-chrome/blob/7d3edf98510c382735f3ece5e2ae58d4f9e38472/extension/options.html#L26-L29

@DrewML

DrewML commented Mar 30, 2016

Copy link
Copy Markdown
Owner

Perfect! Thanks for the heads-up.

@DrewML
DrewML force-pushed the master branch 2 times, most recently from edfd558 to 84ac5ae Compare May 25, 2016 02:05
@jungletian

Copy link
Copy Markdown

B9eJELby7Rb0c

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.

4 participants