Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Please consider adding support for GitHubEnterprise #35

Open
cedoucette opened this issue Feb 26, 2019 · 1 comment
Open

Please consider adding support for GitHubEnterprise #35

cedoucette opened this issue Feb 26, 2019 · 1 comment

Comments

@cedoucette
Copy link

Our company is moving from public github to private github (GitHubEnterprise/GHE).
In the process, I will be losing the use of this nice extension.
One of the folks in charge of the move identified the problem with this extension.

Yeah...I'm guessing this line would have to change:

const API = 'https://api.github.com/repos/'

to be configurable and to use the API Base URL I sent in the email

@fregante
Copy link
Contributor

fregante commented Aug 7, 2019

I recently published 2 modules that might help you with this:

https://github.com/fregante/webext-domain-permission-toggle
https://github.com/fregante/webext-dynamic-content-scripts

You'd just need:

npm i webext-domain-permission-toggle webext-dynamic-content-scripts
// in background.js
import 'webext-dynamic-content-scripts';
import addDomainPermissionToggle from 'webext-domain-permission-toggle';

addDomainPermissionToggle();

And some adjustments to manifest.json

Ping me if you need help implementing it.

I also wrote about how it works if you're interested.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants