What is it?
Cantr Enhanced is a script created to enhance
minimalist and static Cantr interface.
How to run it?
In Mozilla Firefox you have to run it as a greasemonkey script. In Google Chrome you have to install it as extension. Script’s functioning was tested in these browsers. I can’t guarantee that it works in the others, but probably will.
Caution! Most of the scripts to work and store preferences need localStorage, which was released in HTML5. All browsers with the latest updates offer (or should offer) possibility of using localStorage. If something doesn’t work first thing you should do is to check for updates.
Another Caution! I made everything to make sure that script will always work correctly, but I can’tr give you a word. If you are doing something risky (fighting, stealing etc.) just disable the script. If you would lose something because of script it will not be my fault. Also remember that information stored by script are OOC – your character doesn’t see the labels, bookmarks etc. it’s just to make your life easier. And remember nobody else see things added by script.
What does the script offer?
Script has many independent of each other modules, every improves or modifies interface or adds a brand new function:
- Labels for containers (stored in localStorage)
- Events filter (in localStorage stored a set of selected filters of every character)
- Clock with tick notification (needed additional HTTP query to Cantr server)
- Buildings and vehicles bookmarks (stored in localStorage)
- Dynamic calculator of input resources and time needed in certain project
- Land vehicles and ships grouping
- Note preview when editing (doesn’t work with notes which disable < pre > and the complex ones) and “characters left” counter
- Replacement of panels on the “location” page – button “leave the building” is above the description
- Some [max] buttons on the pages “take-” and “give resources”
- Checkbox autochecker
- Objects list for copypasting (since 0.60.0)
- Machines grouping on the OBJECTS page (since 0.60.0)
Ok, I want that script. Where can I get it?
From there: http://userscripts.org/scripts/show/109440
You can also see older versions of the scripts and short description. Possibility of reviewing the source of the script guarantees, that it has no harmful components.
Ok, got that script. How can i configure it?
It is possible to enable or disable every module just by going to “Shop” page (at the top of the character list page). There is additional menu with script’s options.

There is link to Cantr Enhanced Config

Config panel located in the shop
Detailed description:
Labels for containers
Labels are stored in localStorage. All labels are common for all characters.
It is known that keys could have labels. It is very useful function, but it will be much better to give possibility of labeling , because without that they are absolutely indistinguishable. Fortunately one of the script’s modules solves the problem. It adds [set] button which creates possibility of labeling containers in inventory and objects on the ground, and also shows labels on the mentioned pages and on the “put resource into container” page. There are some disadvantages: labels stored in localStorage could disappear after modification of web browser, there are invisible for everybody else and all your characters – not only the one who created it – could see that label. But it is targeted mainly to make bartenders’ and tavernkeeers’life easier, so these inconvenience shouldn’t be a big problem.

Well, it’s not very useful to set label for containers on the ground. But still possible if you want
Events filter
Selected filters for every character are stored in localStorage.
CAUTION! THAT MODULE DOESN’T WORK FOR ENGLISH CHARACTERS UNTIL I’LL RECEIVE HELP OF SOMEBODY EAGER TO HELP
If you live in big town and you were nervous, because going into buildings and back again and whispers are 90% of visible events so you can’t see anything essential, means that you should think about event filtering.
Event filter slices event log into separate communicates and looks for certain keywords in order to put them into one of following groups:
- talking – talks, music, overheard whispers etc.
- important – fight, death, starving, picking locks etc.
- whispers – whispers we unfortunately didn’t manage to overhear
- radio – radio communicates
- moving – docking, undocking, arriving to location etc.
- resources – dragging, taking, using, dropping resources etc.
- entrance/exit – moving into and out of the building or vehicle.
- Miscellaneous – knocking at the door, copying notes, hunting
- additional (pink
) highlight – whispering to you, speeches in which your name appears, aggresive actions against you, starving
Important – script doesn’t filter new events (added by autorefresh).

Well, not everything works, but it will
Clock with tick notification
Clock connects to the Cantr server to get its real time.
Cantr is very static. Maybe not the game itself, but the interface is. Wouldn’t it be better if the clock at the top of the page will show current time and inform about incoming tick?
It is exactly what that module makes.
CAOUTION! Time of ticks is written into script as dependent on the real time, because real time tick time changes much less often. To do it script send HTTP query to Cantr server. You should decide “to use or not to use” on your own.

Unfortunately in that screenshot the clock is static
Buildings and vehicles bookmarks
Bookmarked buildings and vehicles are stored in localStorage. They are stored for every character separately.
Module very useful especially in big cities. It makes possible to select few (or more) building and vehicles to be displayed at the top of the buildings/vehicles list. It makes moving to most visited places much easier, because you don’t have to search for a certain building.

Bookmarks – useful mostly in big towns with bunch of buildings and vehicles
Dynamic calculator of input resources and time needed in certain project
Till now, to calculate amount of input resources needed and project length you had to use Excel sheet or your own head. That module makes creating projects of atypical amount much easier. Enough to type intended output amount and see what do you need for that project.

It makes calculations muuuuch easier
Land vehicles and ships grouping
Something visible in the one of the screenshots above. Land vehicles and ships grouping. I don’t know if it is useful.
Note preview when editing (and “characters left” counter)
It’d be much easier to edit a note when you’ll have possibility of viewing final note’s outlook. Although that preview not always shows identical look as when looking at a note it is useful to have possibility to see what you created without reloading a page. Additional feature is “characters left” counter which informs you if you exceed the limit.
CAUTION! Polish and most of other regional characters are counted by script as 1 character and by Cantr as 2 characters.

Don’t forget to save your note after you see the preview.
Replacement of panels on the “location” page
Button “leave the building” is above the description.
Small, but useful feature. Especially when you have to go in and out of the building many times.

Sadly I don’t have english screenshot (yet)
Some [max] buttons on the pages “take-” and “give resources”
When you drop resources the maximum amount is typed at once. Script causes, that it is also possible on the “pick up” and “give resources” page (when you click at a button). Moreover when you repair stuff, maximum repair time is typed.

Checkbox autochecker
Managing many notes could be very laborious work. Especially when you have to select only duplicates. It would be much better, if something will do it instead of you. So it is.
Idea of that script belongs to joo, who created similar script few years ago.

Works also on EMPTYING ENVELOPE page
Objects list for copypasting
Small feature which makes copying information about resources etc. into the note easier. Filters (notes, resources, other) makes to copying only interesting group of objects faster.

To show that menu you should click on the “List” bar
Machines grouping on the OBJECTS page
If the city is large the objects list could be very long. Probably there are many machines of the same type to boost production. As the machines of the same type are identical there is no reason to show them all on the list. It could make list shorter. Using machine is still possible, because button redirects to the last unused machine on the list.

Useless in the small towns but useful in the big cities.


