sanemat / do-not-merge-wip-for-github

Do Not Merge WIP for GitHub
MIT License
406 stars 32 forks source link

Split extension for GitHub Enterprise #190

Open sanemat opened 6 years ago

fregante commented 4 years ago

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

Here I wrote more about how it works too.

sanemat commented 4 years ago

Thanks! I'll check it later!

On Tue, Jan 21, 2020, 15:37 Federico Brigante notifications@github.com wrote:

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.jsimport 'webext-dynamic-content-scripts';import addDomainPermissionToggle from 'webext-domain-permission-toggle'; addDomainPermissionToggle();

And some adjustments to manifest.json https://github.com/fregante/webext-dynamic-content-scripts/blob/master/how-to-add-github-enterprise-support-to-web-extensions.md

Here I wrote more about how it works https://stackoverflow.com/a/57381191/288906 too.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sanemat/do-not-merge-wip-for-github/issues/190?email_source=notifications&email_token=AAASNODSUHWLF2BFXWIISFTQ62X4JA5CNFSM4EKAMUR2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJO5JPA#issuecomment-576574652, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAASNOC5QAOFHAUSWNSF723Q62X4JANCNFSM4EKAMURQ .

nmccready commented 4 years ago

Has there been any progress on this?