-
Notifications
You must be signed in to change notification settings - Fork 74
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
Support for Github Enterprise #9
Comments
It looks like https://github.com/jamesmmchugh/wide-github is a fork that matches any URL. Or prawnpie/wide-github@20c7002 shows how to make a version specific to your organisation. |
I would recommend just forking this and changing the URL yourself. I'm hesitant to make this work on enterprise because it would require running some JS on every site to figure out if it's github or not (because there's not standard enterprise url). |
@moreati : thanks! I was able to use @jamesmmchugh's repo and it worked for my company's Github Enterprise setup (our domain starts with "github.", I'm assuming that's why it worked given the URLs in the manifest). Thankfully James had instructions on his repo's README for loading an unpacked extension, because I had no idea how to load this. @xthexder: I was thinking something along the lines of adblock where you can add hosts/URLs for the change to be applied. But given I know nothing about chrome extension development, I cannot guess whether that's a ton of work or not. |
So for future reference here's how I accomplished it:
|
greasemonkey for firefox allows to add "included sites" url pattern |
@ygrek : can you give more info on that proposal? |
it's not a proposal, greasemonkey plugin for firefox has the functionality to change url patterns builtin, so I can use thise userscript for github enterprise just adding one line in plugin settings |
In Greasemonkey if you select "Manage User Scripts..." you can add something like |
ftr tampermonkey for chrome also allows to override include pattern without modifying script - convenient |
I recently published 2 modules that might help you with this: https://github.com/fregante/webext-domain-permission-toggle 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. This only works for the browser extension and not the userscript. The only code that runs is to check whether the extension has permission to the current URL. |
An even easier option perhaps for those not interested in cloning the repo etc. These instruction are for Brave Browser, but should be very similar for Chrome.
|
My company uses GitHub Enterprise, and that's where I really want this functionality.
Maybe there could be an option for applying the widening changes a list of sites?
The text was updated successfully, but these errors were encountered: