Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

FrostBy/kingdomcomemap-tracker

Repository files navigation

TamperMonkey Extension to Track Visited Markers on the Map

This extension is designed for the map of Kingdom Come: Deliverance but can be easily adapted to any Leaflet map, as the marker handling logic is universal.

This is a stream-of-consciousness level version, so feel free to submit pull requests for refactoring and code improvements.

🐞 Known Issues

  • Checkboxes in the sidebar are not fully synchronized. This doesn't affect the overall functionality, and fixing it was left for later (because, honestly, I didn’t feel like dealing with it).

License

This project is licensed under a custom license.

  • You are free to use, modify, and distribute the code as long as proper attribution is provided.
  • Commercial use is strictly prohibited without explicit written permission from the author.
  • For commercial licensing inquiries, please contact: frost.by@gmail.com.

☕ Support Me

If you find this project useful, consider supporting me on Buy Me a Coffee.


For Devs

  1. Allow Tampermonkey's access to local file URIs tampermonkey/faq
  2. install deps with npm i or npm ci.
  3. npm run dev to start your development.

Now you will see 2 files in ./dist/

  • dist/index.dev.user.js: You should install this userscript in your browser. It's a simple loader that load dist/index.debug.js on matched web page.
  • dist/index.debug.js: This is the development build with eval-source-map. It will be automatically loaded by dist/index.dev.user.js via @require file://.../dist/index.debug.js metadata, Don't add it to your userscript manager.
  1. edit src/index.ts, you can even import css or less files. You can use scss if you like.
  2. go wo https://www.example.com/ and open console, you'll see it's working.

livereload is default enabled, use this Chrome extension

NOTICE

Everytime you change your metadata config, you'll have to restart webpack server and install newly generated dist/index.dev.user.js UserScript in your browser again.

UserScript way

like original UserScript way, you will need to add them to your user script metadata's require section , and exclude them in config/webpack.config.base.cjs

Webpack way

just install packages with npm and import them in your code, webpack will take care them.

Build

npm run build

dist/index.prod.user.js is the final script. you can manually copy it to greasyfork for deploy.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors