This workaround is based on the awesome extension, github-wiki-search which can be downloaded as a Google Chrome extension.
The only downfall of the original extension itself is the lack of GitHub Enterprise support. This workaround will enable search functionality on any GitHub Enterprise site of your choice through the use of a javascript injection extension called Custom Javascript or CJS and a slightly modified version of the original Wiki-Search script.
- Add the CJS extension to your Chrome environment: chrome store
- Browse to your GitHub Enterprise site location.
- Open the modified script file,
github-wiki-search.user.js
and copy the entire script into the clipboard. - Click the 'cjs' icon in chrome to open the extension for this page.
- Ensure that the domain in the top left dropdown box is where you desire the script to execute.
- Paste the script in the clipbaord to the box in cjs.
- Ensure that the checkbox to enable cjs on this site is enabled/checked.
- Ensure that the inject dropdown box is set to
--nothing--
. - Click the blue
save
button at the bottom left and refresh the page. You should now have a [Search this wiki...] box next to the greenNew Page
button on any wiki at the configured domain.