Hey guys,
I was looking at my gold logs when I noticed it was all done in javascript, which gave me the idea to make a bookmarklet (a bookmark that runs javascript code) to make a chart of my FG going up and down, since it's easier to quickly see trends and how I'm doing "financially". An extension might have been a better proof of concept but it's also much harder to make it compatible with different browsers, installation is more complicated etc.
I'm done with the bookmarklet now, and since I like using it I thought maybe others would too, so that maybe the concept of a fg chart below the gold logs could be incorporated into the site.
It looks something like this:

In reality it's a bit more interactive than that, you can hover over each data point and see the precise date/fg value. The background is transparent so that it should look reasonably good with any theme.
Here's the code for anyone worried about viruses or whatever, although warning it's a bit messy and needs cleaning up/comments:
http://pastebin.com/yqH1EqZ0All it does is read the gold value & date from the current javascript array used for gold logs, sorts them by date, then chart it using Google charts. There's a ton of javascript charting libraries out there, I chose google's because it's simple to use and reliable but obviously it's debatable which library should be used if any should this make it to the real site.
Compressed for the bookmarklet:
To try it yourself, go to this JSFiddle link: OLDLINK and move the link named "FG Chart" to your bookmarks bar, then click on it when you're viewing your gold logs. I've tested it with IE and Vivaldi so far but seeing as it uses Google Charts I'm pretty sure it is compatible with most browsers.
That's it, thanks for reading this far and maybe trying it. Any feedback is appreciated!
Edit: Updating code:
Added a button to switch between monthly & cumulative view.
Code:
http://pastebin.com/c0eeVemXBookmarklet:
https://jsfiddle.net/1snyk7eb/1/And a quick demo:
