Gamers' Plane Chrome Extension

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

Aug 16, 2020 8:20 am
I like GP. I spend a lot of time on it. But there are things I find myself a little annoyed about. Rather than curse the darkness, I lit a candle by writing a Chrome extension.

This is what it does:
Homepage
https://dexsave.blob.core.windows.net/campaignnote/08119c8a-219f-4140-810d-cf1fff968c85.jpeg
It tidies the homepage by shrinking the announcements (you can still click on the header to get at the full announcement), and removes the "My Games" black box on the right. I never used it.
It removes the Partners box with the broken link and puts the contents of the Games Forums there instead.

The Tools menu at the bottom
Yeah. Never use it. Replaced with a forums menu. (Hat tip to BoS for this idea).
I also changed the styling of the Characters menu.
https://dexsave.blob.core.windows.net/campaignnote/6b496072-0df6-4a3e-bdeb-f4c932faf141.jpeg

Snippets menu (buggy)
This has become buggy - so I need to look at this. This is what it sometimes does.

Choose manage.
https://dexsave.blob.core.windows.net/campaignnote/c3cd15aa-d18b-4e29-9c6a-13e5479e0b40.jpeg

Add some snippets (keep adding them and it'll create new boxes)
https://dexsave.blob.core.windows.net/campaignnote/2fe4e77b-f8d1-4f32-87a8-479ffb89ea4a.jpeg

(need to reload the page to get the new snippets to show up - this is annoying - but you only have to do it once)
Add your frequent snippets to posts.
https://dexsave.blob.core.windows.net/campaignnote/e476c755-0fe4-469a-a63a-8b6409e34abd.jpeg

Online indicator
There's no good reason for this to exist. It puts a green dot against people who are online.
https://dexsave.blob.core.windows.net/campaignnote/4d06232f-0ff8-425c-88d1-1271f5479efc.jpeg

Search
Search a thread. It's client side. Your computer is loading the pages and reading them - so it's not fast - but that's all I can do client side.
https://dexsave.blob.core.windows.net/campaignnote/077bcccf-dcc7-48a7-822b-a52a040a7e77.jpeg

Shows the results on the same page.
https://dexsave.blob.core.windows.net/campaignnote/133090a9-6c4e-47c8-8846-26613eeeb5ff.jpeg
Last edited August 16, 2020 11:32 am
Aug 16, 2020 8:26 am
The source code is on GitHub. There are instructions for installing it as a beta (or working on it yourself - it's just javascript and css - you don't need a headband of coding).

I really made it for me - but if you find it useful then I hope you enjoy it.

You should be REALLY careful about installing extensions from random strangers on the internet. That's why this is open source. Read the code (or ask a coder you trust to read the code) and check that it isn't doing anything nefarious.
Aug 17, 2020 3:58 am
This is really interesting. I'll play with it a bit and give feedback in a few days.
Aug 17, 2020 5:25 pm
If literally the only thing this extension provided was the ability to search a thread, it would be worth it. I want to weep with joy. Thank you!
Aug 18, 2020 1:06 am
Pretty neat! You actually captured a lot of the things I'm hoping to get in at some point, so I'm glad you put it together. It gives me good reason to create a better site.
Aug 18, 2020 6:05 am
Thank you all for the positive feedback. There's an update which finds YouTube links and expands them into embeds at the bottom of the post as footnotes.
https://dexsave.blob.core.windows.net/campaignnote/0b6be7e0-6ac5-405b-b792-a5e7cb39e222.jpeg
Last edited August 18, 2020 6:05 am
Aug 20, 2020 8:34 am
Dark mode added for CaveJohnson.

Toggle it with the hotkey Alt+N. It will give a brief flash of unstyled content on page load (there again, the rest of the site does this too).

https://dexsave.blob.core.windows.net/campaignnote/49c80633-3d85-4a02-b5f5-ece636e84263.jpeg

It'll do its best to change the contrast when the poster has specified a colour within a post (e.g. the green in the screenshot) - but if it doesn't work, meh - it tried. Press Alt+N to switch back.

I'm kinda stuck with the graphics, so I've left the header alone.
Aug 20, 2020 4:12 pm
So far, I've been finding it to be a neat extension. The dark mode is a bit odd though, with some of the elements standing out (mostly elements of the reply box).
Aug 20, 2020 5:48 pm
I could do something about the pink box, but I’m stuck with the toolbar icons and they need a light background. There’s only so much I can do client side.

PMs are unreadable in dark mode. But send me screenshots of bugs in discord and I’ll see what I can do. The colours are based on a technology called css - which is dead easy to change.
Aug 20, 2020 6:54 pm
I'm liking it, it takes a second to get used to but for a 5 minute change i'm enjoying it. I don't spaz every time i swap back and forth now!
Aug 20, 2020 7:29 pm
Just happy to see our game made a cameo ;)
Aug 20, 2020 7:38 pm
I've been using this extension for a few days now, and I've already found the search function to be incredibly helpful. I'm running a game with over 6600 posts over about ten chapters of gameplay. There are a ton of subplots and I frequently need to refer back to something that happened before. Now that I have the ability to run a search, I've spent a lot less time reading through entire gameplay threads to find the tiny detail I needed to write a current post.
Aug 20, 2020 7:42 pm
Moonbeam says:
I've been using this extension for a few days now, and I've already found the search function to be incredibly helpful. I'm running a game with over 6600 posts over about ten chapters of gameplay. There are a ton of subplots and I frequently need to refer back to something that happened before. Now that I have the ability to run a search, I've spent a lot less time reading through entire gameplay threads to find the tiny detail I needed to write a current post.
I would have paid money for this functionality
Aug 20, 2020 9:24 pm
Don't give Adam ideas xD
Aug 21, 2020 3:00 pm
Thank you everybody for the kind words.

I've just checked in an experimental feature.

Character sheet/dice roller integration
In the dice roller you now have tabs for characters (if you're the DM you get a tab for each of the party members).
Click a tab for abilities, weapons and skills.
https://dexsave.blob.core.windows.net/campaignnote/f7fc699f-b923-4514-bd82-2a104eac554d.jpeg

Click a box (A for advantage, D for disadvantage) and it'll automatically add the dice rolls.

https://dexsave.blob.core.windows.net/campaignnote/6e5f66fb-066a-4fe4-a61b-9ee7fa79d4d7.jpeg

If you're the DM it'll prefix the roll with the player's name from the selected tab.

If you have expertise or JoaT then it'll look at the skill name to see if it can rip a number out of that rather than use the calculated bonus.

e.g.
https://dexsave.blob.core.windows.net/campaignnote/00c67080-afc2-4bb9-babb-04786c10a47a.jpeg

Downers
It's DnD 5e only
It's not psychic - if you're doing something weird like a Cha+History skill check then add it manually.
It won't fix the GP dice algebra (1d8+2d6+4 will still fail - so break break that sneak attack damage into a separate field)
It hasn't had much testing, because it'll look weird if I just started adding lots of rolls to my games.
Aug 21, 2020 3:17 pm
Adam, what a number of us have started doing is running a game for one, ourselves, where we essentially just use this blank game as a testing zone. In mine, I also use it to draft complex posts for games where I'm a player, and to put together resources for games I'm running or planning to run.

That setup would be perfect for your testing.
Aug 21, 2020 3:21 pm
Qralloq says:
Adam, what a number of us have started doing is running a game for one, ourselves, where we essentially just use this blank game as a testing zone. In mine, I also use it to draft complex posts for games where I'm a player, and to put together resources for games I'm running or planning to run.

That setup would be perfect for your testing.
How do you get to be a player and GM in the same game?
Aug 21, 2020 3:29 pm
Well, I created a second account (Crawllock) and invited it.
If you use an incognito tab for one, you can log into both at the same time.
Aug 21, 2020 3:34 pm
Yeah. I'll do that. I'm sure Keleth will forgive me for this special circumstance.
Aug 21, 2020 11:55 pm
I mean, you're doing the work people want from this site, so I can't really fault you for the work you do.
Aug 22, 2020 1:13 am
This is probably a great time to mention how much I love GP and that my effusive gratitude to Adam for his search function in no way reflects an overall criticism of the main site...

https://lh3.googleusercontent.com/pw/ACtC-3cLYhUs6X216O7cXZjeu9K0D2OH9Uw8iLrJQlzV-Vt7H-y1ckpWT89ZwDucksDLkHFaKqkRpHhOUI2OJp8crHZl8tmGSokTyz4sWe34OOXhnoa631CVX3uj2Q93_wKofQYA7m-3FXqZsehOnvsX4wHi=w241-h306-no?authuser=0
Aug 22, 2020 3:36 am
One suggestion for the search function. A jump to post link on search results might be helpful, where you can go to that particular post's page instead of having it be isolated from its original context.
Aug 22, 2020 4:21 am
saevikas says:
One suggestion for the search function. A jump to post link on search results might be helpful, where you can go to that particular post's page instead of having it be isolated from its original context.
You can if you click on the title of that specific post :)
Aug 22, 2020 6:03 am
Moonbeam says:
This is probably a great time to mention how much I love GP and that my effusive gratitude to Adam for his search function in no way reflects an overall criticism of the main site...
This. If I didn’t love GP then I wouldn’t have written an extension for it.

If GP has prepared a beautiful and bountiful feast of PbP for us, then I’ve brought a small dessert over to say thank you (I wanted to get a pun in there about cookies, but the tech part of my brain rebelled - the extension doesn’t use cookies, it uses sync storage).
Aug 28, 2020 6:18 am
https://i.imgur.com/agWbbwL.jpg

The latest version has an Imgur upload button.
Click it. Select a graphic. It'll upload the graphic to Imgur and add the link to your post.

Imgur only(?!) allows 1250 uploads per day from that button. I think we'll be fine.

Other changes:
The forums on the RHS of the homepage are alpha sorted with the tavern at the bottom.
I separated dmg from the attack roll on the DnD character sheet integration.
Last edited August 28, 2020 6:20 am
Aug 28, 2020 3:20 pm
It's brilliant. Not sure if I can get it to work on my phone, too, but I'll try to figure that out.

Is it possible to expand the Search function to include user names? I recently found myself wanting to know when the last time a missing user posted in a game, and it didn't pick up their name unless I'd tagged them in a note.
Aug 28, 2020 3:26 pm
https://i.imgur.com/YInxcpO.jpg

No problem. Updated.
Sep 4, 2020 6:30 am
For those of you who aren't interested in messing about with GitHub to download the latest version - this is now in the Chrome Web Store. I know it says "store" - obviously it's free. GitHub will always be the best place to go for the latest code, but it's probably easier to install from the link below.


Link to extension


If you already have it installed from GitHub, then don't bother with the google version - it's the same code.
Last edited September 4, 2020 6:40 am
Oct 1, 2020 11:36 am
Fantastic tool, thanks for creating this!
Oct 1, 2020 11:40 am
You're welcome. I'm glad that people find it useful.

I should probably post the link the Firefox version too.
You can install the Chrome extension directly from here.

You can install the Firefox extension directly from here.
Nov 4, 2020 6:34 pm
I managed to get the Chrome extension working on my Galaxy S10. Needed to use the Kiwi browser in developer mode, but so worth it. Thanks again, Adam.
Nov 4, 2020 6:36 pm
You're welcome. (Adam wrote as he gave his iPhone a dirty look - Y U NO RUN EXTENSIONS!).
Nov 4, 2020 6:51 pm
You did? Yay! Never heard of the Kiwi browser though.
Nov 6, 2020 12:57 am
I finally got around to installing this, wanted to stop by and say thanks! It works wonderfully in my 'Fox. :D
Nov 6, 2020 1:03 am
I tried it too and it's an awesome QoL improvement! Thanks!
Nov 12, 2020 1:22 pm
Thanks, everybody.

A new feature should appear soon.

Character sheet and game styling

You can now add a bit of styling to your character sheets and game forums.

Game styling

https://i.imgur.com/qE8p4wy.jpg
To add styling to your game forum, edit the game description (example) and add a style tag (more on that later)

Character sheets

https://i.imgur.com/AvbslOf.jpg
Avatars now appear on the sheet. The feat notes have been replaced with toggle arrows.
Character sheets support styling by adding styling to the notes (see below).

How to add styling

If you just want a big graphical background that'll be stretched over the screen then add this:

....to the game description or character notes (change the image URL for your own).


But that'll look pants for some images because they don't look right in the middle and stretched.

https://i.imgur.com/I1uvE8o.jpg

So you might want a little more control,

https://i.imgur.com/ND5AqLj.jpg



image: is the image URL
position: is where to put the image
color: (yes, US English spelling - you win this round...) is the colour where the image doesn't cover
size: either "cover" (which covers the screen) or "contain" which makes sure the whole image fits on the screen
Last edited November 12, 2020 6:15 pm
Nov 12, 2020 1:32 pm
...any bugs, log them here or ping me on the GP discord server.

I don't know when the Chrome extension will update, so if this isn't working for you then maybe wait a day or two.
Nov 12, 2020 1:56 pm
This looks fantastic Adam! Thanks for all your hard work.
Nov 12, 2020 2:06 pm
I manually updated the extension on my phone and at least the avatar preview works, which is great, thank you!

Edit: and feat/ability toggles look great in the D&D5 sheet, too
Last edited November 12, 2020 2:25 pm
Nov 12, 2020 4:23 pm
Not a bug just an FYI, the avatars seem to be cropped to fit a square, so if you have any rectangular avatars they might be beheaded. A few of mine are now headless. xD
Nov 12, 2020 4:25 pm
Lol, thanks - that's a bug. I'll get it fixed.
Nov 12, 2020 4:27 pm
I've wanted character pictures on sheets for so long! The rest is great too lol.
Nov 12, 2020 8:16 pm
The background image does not seem to work on custom character sheets
Avatar does work :)
Last edited November 12, 2020 8:17 pm
Nov 13, 2020 1:02 am
You may have to type it out on the custom sheet

I've done that instead of using the bold buttons to bold/color things on the custom sheet.
Nov 13, 2020 1:37 am
Is there a place to find more options for the style tags/a how-to guide? I'm specifically wondering if there's a way to set more than one "background" image, say one on the left and one on the right. Not a big deal if it's not possible.
Nov 13, 2020 3:57 am
I've been trying to get the background for forums working and nada. Complicated because I can almost never edit the details of an existing game and get the changes to Save.
Nov 13, 2020 7:03 am
runekyndig says:
The background image does not seem to work on custom character sheets
Avatar does work :)
I've had a quick look. You're right, custom character sheets aren't supported. It's not just that they don't have a notes section, it's also because they're loaded via angular.
Nov 13, 2020 7:04 am
Qralloq says:
I've been trying to get the background for forums working and nada. Complicated because I can almost never edit the details of an existing game and get the changes to Save.
I used the description of your game: https://gamersplane.com/games/2700/ and added it to https://gamersplane.com/games/2728/

And now my forums look like:
https://i.imgur.com/B5yKWrW.jpg

I also short-circuited my code to force it to load game 2700 and it seemed to work. I'm not sure what's going on.
Last edited November 13, 2020 7:16 am
Nov 13, 2020 7:07 am
Kaigen says:
Is there a place to find more options for the style tags/a how-to guide? I'm specifically wondering if there's a way to set more than one "background" image, say one on the left and one on the right. Not a big deal if it's not possible.
Not at the moment.
Nov 13, 2020 7:15 am
Is there a ballpark image size range that we need to stay within for the background to work?
Nov 13, 2020 7:23 am
If you use cover (the default) then bear in mind it'll be stretched - so you'll want a decent width (1200px+) or it'll look like ZX Spectrum graphics.

But you should also check out the filesize. The browser caches, but even so, nobody wants a 5mb image background.

Some sites have strategies to prevent "leeching" by sending smaller images when they're requested from different sites. I found that the forgotten realms wiki sends only thumbnails when requesting the main image.
Nov 13, 2020 7:26 pm
Qralloq says:
I've been trying to get the background for forums working and nada. Complicated because I can almost never edit the details of an existing game and get the changes to Save.
Saving might convert newlines to BR tags - which would screw up the json format. Try eliminating newlines in the [style] section.
Nov 13, 2020 7:48 pm
No BR tags or newlines anywhere now, and still doesn't do anything.
Nov 17, 2020 3:02 am
Update: The background style works on my laptop (in Chrome and Firefox) but not my phone (although the other functions for your extension work just fine on the phone).
Last edited November 17, 2020 3:06 am
Nov 21, 2020 12:13 pm
Hmm... I've updated the extension on Chrome, and waited a few days -- but I still cannot see the character portraits in the character preview... any ideas?
Nov 21, 2020 12:47 pm
I could see them immediately after forcing the update.
Nov 29, 2020 11:20 am
A small change request:
You have the One Page feature, which will show all treads in one viewing. It is useful for searching, but combersume if there are many (+20) pages. So but I would like a "Show last 2 pages".
I have several times gone to respond to new posts, and see that the latest page only have one post, while my fellow player's post are on the previous page.

Each page holds 20 posts. Let's say that my last post was post #76. When I log back in, the latest post is #82. The latest page contains only #81 and #82, while the previous page contains #60 to #80. I would like an option to see post #60 to #82

Does this make sense?
Nov 29, 2020 11:22 am
That makes a lot of sense. I often lose the plot when we skip over a multiple of twenty posts.
Dec 8, 2020 7:39 pm
I am terrible for asking but will do it anyway.
Any chance that your extension will be available on the brave browser? We talked about the browser at work today, and my prime reason not to switch is losing your extension in my firefox browser.
Dec 8, 2020 8:21 pm
No idea. They say Chrome extensions work in it.

It’s just css and js, and there’s very little browser specific code in it, but *shrug*. Try it, and let us know.
Dec 8, 2020 8:46 pm
so fare it looks good. (and grimm for my firefox)
Last edited December 8, 2020 8:46 pm
Feb 24, 2021 4:17 pm
runekyndig says:
A small change request:
You have the One Page feature, which will show all treads in one viewing. It is useful for searching, but combersume if there are many (+20) pages. So but I would like a "Show last 2 pages".
I have several times gone to respond to new posts, and see that the latest page only have one post, while my fellow player's post are on the previous page.

Each page holds 20 posts. Let's say that my last post was post #76. When I log back in, the latest post is #82. The latest page contains only #81 and #82, while the previous page contains #60 to #80. I would like an option to see post #60 to #82

Does this make sense?
There's now a "Backfill" button at the top of thread pages.

I've updated the homepage with the last five game posts. I've re-added the "Your Games" bit at BoS's request.

It warns you if you're about to leave a page where you've been writing a post.

https://i.imgur.com/2QH6sjm.jpg
Apr 7, 2021 2:31 pm
Question: The Latest Game Post button... Is it possible to extend the list beyond 20? There are a few of us* that are in a lot of games, and when they all update, some get lost, rolled off the bottom of the list like stampeding bison over a cliff. 30 games would be a good start.

* few = at least 1
Apr 9, 2021 6:51 am
PAGINATE_PER_PAGE is set at 20 server-side. There's nothing the extension can do about this.
Apr 9, 2021 12:55 pm
Thanks for checking. There used to be a Page 1, Page 2 at the bottom of the post list, but that's gone away. Guess I'll need to just manually check every game.
Apr 9, 2021 1:22 pm
Sometimes, the page 2 link appears there for me but it's not always there. Not sure what prompts it to show up
Apr 9, 2021 1:48 pm
How is that used? It only shows page 2 if is more than a week old? Because if I'm busy at work I routinely need page 2 for posts on the same day
Last edited April 9, 2021 1:49 pm
Apr 9, 2021 2:22 pm
Dunno. It's server code and I still haven't got docker working.

The code is the documentation:
https://github.com/rohitsodhia/gamersplane.v1/blob/master/includes/forums/ForumSearch.class.php#L39

My reading is that it should return a count of threads:
* with a game ID
* in forums you can access
* where there has been posting in the last week

But it's not the extension, so I don't really know.
Jul 14, 2021 9:51 am
Adam says:
Jabes.plays.RPG says:
Is there a way to suppress YouTube vids from embedding? It's a useful feature in most cases but sometimes I just want the link and not the inline video. I thought they'd only embed when you use the youtube tag but even when I use the url tag they are embedding. Thanks!
Ah. That's the extension that's doing that. As more functionality is added to the main site, the extension becomes more redundant.
Is there any way I can suppress that feature in the meantime short of removing the extension or refraining from using YouTube links? I'm on an older laptop and with as few as two YT links on a page it's slowing Chrome down to a crash.

Thanks!
Jul 14, 2021 9:55 am
It's probably best to remove it then. Most of the functionality is slowly moving into the main site anyway, and I think I'll be deprecating it entirely soon.
Jul 14, 2021 10:08 am
Ok cool. Thanks for your help!

You do not have permission to post in this thread.