This project is an enhancement for the Unit4 web UI.
You need Tampermonkey to use it in your browser, please visit https://www.tampermonkey.net/ to get an extension for your browser
Once you have installed Tampermonkey, you can install this script by opening the URL to the production version. Tampermonkey will pick up the download and create a new userscript for you.
Link: https://github.com/macaw-cad/tampermonkey-unit4/raw/main/dist/index.prod.user.js
The userscript is build using the Webpack + TypeScript template script from https://github.com/Trim21/webpack-userscript-template
- Allow Tampermonkey's access to local file URIs tampermonkey/faq
- install node dependencies with
npm i
- start development server with
npm run dev
- open
webpack-userscript-template/dist/index.dev.user.js
in your Chrome and install it with your userscript manager.
this userscript's meta contains// @require file://path/to/dist/index.debug.user.js
, which take src/index.ts as entry point. - every time you edit your metadata, you'll have to restart webpack watch server and (maybe even) install new UserScript in your browser again, because Tampermonkey don't read it from dist every time.
Make sure you have no uncommitted changed, otherwise the build process will stop during version increase.
Start a new build using npm
:
npm run package
This will first increase the patch number of your packages version and then run a production build.
dist/index.prod.user.js
is the finally script - if you commit it, the new file will be
available using the URL shown above.