camsong / chrome-github-mate

Chrome extension to make single file download effortless and with more features
https://chrome.google.com/webstore/detail/github-mate/baggcehellihkglakjnmnhpnjmkbmpkf
MIT License
360 stars 63 forks source link

support github enterprise #37

Open lev112 opened 6 years ago

lev112 commented 6 years ago

github enterprise is not hosted under github.com.

support a custom domain for github

camsong commented 6 years ago

Thanks for reporting, will do if I got a time

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 this and some adjustments to manifest.json

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();

Here you'll also find more about how it works as well