Code Monkey home page Code Monkey logo

tampermonkey-unit4's Introduction

Macaw Unit4 Enhancements

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

Development

The userscript is build using the Webpack + TypeScript template script from https://github.com/Trim21/webpack-userscript-template

prepare Tampermonkey in your browser

  1. Allow Tampermonkey's access to local file URIs tampermonkey/faq
  2. install node dependencies with npm i
  3. start development server with npm run dev
  4. 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.
  5. 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.

create a production build

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.

tampermonkey-unit4's People

Contributors

carsten-wilhelm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.