๐Ÿงช Experimental scripts for power users

Be sure to read and follow the guidelines for our forums.

May 23, 2022 9:49 am
I'm trying to keep this thread clean.

If you want to discuss this guide then please add your comments to this thread.


Some features are rather experimental or might not appeal to everyone. These features are available as scripts which can be installed and customised.

Contents
* Getting started
* Homepage games highlighting
* BBCode editor syntax colouring
* Ordering game forums by creation date
* Copy DnDBeyond spell BBCode
* Copy DnDBeyond class abilities
* Game themes
* Copy DnDBeyond monsters
* DnDBeyond character sheet to Gamers' Plane
* Embedded character sheets
* Print helper
* Custom decks of cards
* DnDB feats, backgrounds, magic items & equipment
* Clean WotC pdf content
Last edited August 31, 2023 4:31 pm
May 23, 2022 9:51 am
Getting started

1. Install Tampermonkey
Tampermonkey is a popular script manager extension.

Install the version which matches your browser:
Chrome installation
Firefox installation
Edge installation
...or visit https://www.tampermonkey.net/

2. Install the GP script(s)
Look in the sections below. If you see one that takes your interest then click the ๐Ÿ“œ Install script link.
That's it. Please provide feedback in this discussion thread.
3. (optional) Edit the script for to own preferences
If you're interested in code or want to try editing the scripts to your own preferences, then you can access them from the Dashboard on your Tampermonkey menu.

4. Check for updates
To update your scripts to the latest version, then use this Tampermonkey feature on the toolbar.
https://cdn.discordapp.com/attachments/976890704473255986/977233818320781362/unknown.png
May 23, 2022 9:52 am
Homepage games highlighting

This script does two things.

1. It adds a highlight to bookmarked games where you weren't the last person to post.
2. It changes the date/times of the homepage to use "human" descriptions (like 'today' and 'yesterday').

https://i.imgur.com/uJVVEny.png

This script also includes some pointless trivia.

https://i.imgur.com/QPDaDDy.png
๐Ÿ“œ Install script
May 23, 2022 9:53 am
BBCode editor syntax colouring

This script does not work on the kiwi mobile browser.

This adds syntax colouring to the BBCode editor. It can be useful to help make sense of the tag soup that sometimes happens on character sheets.

It turns this...
https://i.imgur.com/ZsLjxHZ.png
...into this...
https://i.imgur.com/7WR8oR3.png

This is the first release and the colours are still being tuned. Expect updates.
๐Ÿ“œ Install script
May 23, 2022 9:54 am
Ordering game forums by creation date

By default, game forums are listed alphabetically. This script orders them by the date that they were created.
๐Ÿ“œ Install script
May 26, 2022 10:50 am
Copy DnDBeyond Spell BBCode

This script lets you copy spells from D&D Beyond to your clipboard in BBCode format for easy pasting into custom character sheets.

https://i.imgur.com/sNSsIz2.png

Use the link beneath each spell, then Ctrl+V into your abilities section.

https://i.imgur.com/vUGfivS.png

New feature: You can also apply a filter and get the BBCode for all the spells on the screen.

https://i.imgur.com/30pGx2a.png
๐Ÿ“œ Install script
Last edited March 7, 2023 7:32 am
May 26, 2022 12:03 pm
Copy DnDBeyond class abilities

This script lets you copy class abilities from D&D Beyond to your clipboard in BBCode format for easy pasting into custom character sheets.

https://i.imgur.com/bB7PUHI.png
๐Ÿ“œ Install script
Jul 8, 2022 1:42 pm
Game themes

Applies themes to games.

Sci-fi
https://i.imgur.com/stjqKjx.png

Fantasy
https://i.imgur.com/rnCcdSD.png

Creepy
https://i.imgur.com/JEkoZAX.png
Themes are defined by adding the theme name into your game's advanced rules definitions.

https://i.imgur.com/rv9bpTr.png

Currently, only "scifi", "fantasy" and "creepy" are supported, but I hope the GP community will create more.

Then people with this script will see their character sheets and games with modified styling.
๐Ÿ“œ Install script
Last edited July 14, 2022 11:42 am
Jul 14, 2022 3:00 pm
Copy DnDBeyond monsters

This script lets you copy monsters from D&D Beyond to your clipboard in BBCode format for easy pasting into custom character sheets. This might be useful for players to add familiars to their character sheets.

https://i.imgur.com/hkvFSwt.png
๐Ÿ“œ Install script
Last edited July 14, 2022 3:03 pm
Aug 30, 2022 7:27 am
DnDBeyond character sheet to Gamers' Plane

This script lets you (mostly) populate a custom character sheet from D&D Beyond.

1. Navigate to your DnDB character sheet. There'll be a new option on the DnDB toolbar.
[ +- ] Screenshot
2. Create a character from this custom character sheet.
[ +- ] DnDB import
3. Edit the character sheet, and there'll be an option to paste the DnDB data.
[ +- ] Screenshot
4. Take a look at the preview.
[ +- ] Screenshot
5. Tidy up.
* It always sets the spell casting ability as int. Change this in the BBCode.
[ +- ] Screenshot
* It doesn't add the alignment.
[ +- ] Screenshot
* It doesn't enable Jack of Trades for bards (there's a checkbox for that near proficiency)
[ +- ] Screenshot

๐Ÿ“œ Install script
Aug 30, 2022 11:54 am
If...
...your character sheet is on another site (e.g. DnDBeyond or as a pdf on Google Drive);
...you don't want to install tamper monkey;
...you don't want integrated dice rolling;
...it's just a small throwaway game.

Embedded character sheets
1. Create a character sheet using the template below.
[ +- ] Embed sheet

2.
a) Click the sample URL
b) Paste your character sheet's URL into the top (if it's DnDB then use the shareable link)
c) Click "Load"
https://i.imgur.com/CkbKzzY.png
3. It loads the URL into a frame and is available in the game
https://i.imgur.com/30tYGdP.png
4. Regret not using a real custom character sheet every time you need to roll dice.
Dec 11, 2022 12:48 pm
Print helper

This script tidies up some of the full-thread printing and allows you to choose what to print.

1. Navigate to your thread and choose the "full page" option.
[ +- ] Screenshot
2. There will now be a "Print options" on the header bar.
[ +- ] Screenshot
3. Open that up and choose what you'd like included in the print and whether spoilers should be opened.
[ +- ] Screenshot
4. Print the page and save to PDF.
[ +- ] Screenshot
5. If you need to edit the PDF or convert it to MS Word then that's not my problem. Try Google.

๐Ÿ“œ Install script
Dec 14, 2022 7:36 pm
IMPORTANT

To use this, all the game's members will need to have the script installed.

Maybe later, someone will add this functionality to the main GP site.

Using the script
1. https://gamersplane.com/images/gm_icon.png Defining the decks
In GP the card decks can be defined in the game options using image URLs or text.
https://i.imgur.com/OlidLUl.png
https://i.imgur.com/rAYIFJ2.png

2. Players - Drawing from a new deck
The syntax is [draw="deck name" deckState]#card to draw[/draw].
https://i.imgur.com/4dfveIX.png
Don't worry about the deckState (which card have already been drawn) for now.

If no deck name is used, then the first one in the game options will be used.
e.g. This draws 3 cards from the game's first deck (maybe it has only one).
https://i.imgur.com/L0nae2J.png

After posting, the cards are drawn.
https://i.imgur.com/sHF8caq.png

The bottom right has the new state of the deck (which you'll need for drawing without replacement).

3. Drawing more from a deck
Either typing or clicking the state add a subsequent draw.
The state is added to the draw BBCode, and the user just has to say how many cards they're selecting.
https://i.imgur.com/cKwpGa5.png

4. Display
The display depends on whether a card is text or an image URL.
https://i.imgur.com/vRraBKH.png

A couple of decks
[ +- ] Advanced rules definition JSON examples

๐Ÿ“œ Install script
Last edited December 14, 2022 7:41 pm
Mar 12, 2023 3:02 pm
[ +- ] Complete Rider Waite Tarot Deck
Mar 18, 2023 9:34 pm
Copy DnDBeyond

This script lets you copy feats, backgrounds, magic items, and equipment from D&D Beyond to your clipboard in BBCode format for easy pasting into custom character sheets.

I've commented the javascript in case somebody else wants to maintain it, or use it as a template for other scripts.
๐Ÿ“œ Install script
Aug 31, 2023 4:30 pm
Clean WotC pdf content

This script takes pasted WotC pdf content (from UA) and mostly cleans it up.

1. Paste WotC pdf content into a character sheet or post.
[ +- ] Screenshot
2. Highlight the pasted content (press Ctrl+A for select all).
[ +- ] Screenshot
3. Click the ๐Ÿ’ฉ toolbar icon
[ +- ] Screenshot
4. Review and tidy any bits the script missed.
[ +- ] Screenshot

๐Ÿ“œ Install script
Last edited August 31, 2023 4:30 pm

You do not have permission to post in this thread.