markwoon / RefinedNations

Tampermonkey script for Nations on MaBi Web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RefinedNations

GreasyFork

This is a userscript for Nations on MaBi Web.

Its goal is to maximize the amount of information displayed at once. It will:

  • Hide all extraneous UI/padding.
  • Show all player boards at once (can customize board order; defaults to player's board first, followed by boards in turn order).
  • Always display resource production/total vp information (normally only displayed when hovering over resources).
  • Integrate personal notes next to player board.
  • Adds a "Reload Page" button so you don't have to go back to the Game Manager when you finish your turn.

Additional features:

  • Can be configured to auto-reload the page if it's your game. This will enable you to get notifications when it's your turn. This feature is disabled by default.
  • Can be configured to send notifications to Slack to speed up real-time play.
  • If you are playing multiple games at once, you can add game information into the settings panel to get a drop down menu of you games in the header.

Example game

Warning: this has only been tested in Chrome and Tampermonkey.

Suggestions/contributions welcome.

Settings Panel

To configure the script, go to the script's settings:

Settings menu option

You should get a settings panel that looks like:

Settings panel

Game Config

If you configure the games you're playing, React Nations will add a game menu to the header to allow you to easily switch between games. It's currently capped at 5 games.

The syntax for the game is "game id:name". The name is optional, but will make it much easier to identify which game is which.

What is the game id? You can find it in the URL of the page:

Game ID in URL

Or in the footer:

Game ID in footer

Example:

game 1 config

One you've added that, you'll see your games show up in the header:

Game menu in header

Game Manager

Importing Games

As of v3.2.0, Refined Nations can import your games from the Game Manager.

Use the Import into Refined Nations button on the top left:

Game ID in footer

This will both:

  • delete completed games from your config (a game is "completed" if it can't be found in your running games list)
  • add new games to open spots in your config (a game is "new" if it can't be found in your config)
Auto-Reload

As of v3.5.0, if auto-reloading are enabled, the Game Manager page will also auto-reload until it is your turn in one of your games. When this happens, you will get a notification and the tab icon will change to Marie Curie icon

Slack Integration

Refined Nations uses a Slack's Incoming Webhook integration to post to your Slack channel. Follow these instructions from Slack to set it up, then copy the Webhook URL into the settings panel.

If you want notifications with emojis, you'll have to add them to Slack.

name image
:food:
:stone:
:gold:
:vp:
:nations_book:
:meeple_blue:
:meeple_green:
:meeple_orange:
:meeple_pink:
:meeple_purple:
:meeple_red:
:meeple_yellow:

About

Tampermonkey script for Nations on MaBi Web

License:Creative Commons Zero v1.0 Universal


Languages

Language:JavaScript 100.0%