d2jsp
Log InRegister
d2jsp Forums > d2jsp > General Help > Site Suggestions >
Poll > Add A Profit/loss Text To The Goldlogs > See Your +/- Without Doing Any Maths
Add Reply New Topic New Poll
  Guests cannot view or vote in polls. Please register or login.
Member
Posts: 11,197
Joined: Jul 12 2019
Gold: 0.01
Warn: 80%
Dec 10 2019 02:48pm
im regularly checking my goldlogs and thought it would be good if you could see your total profit / loss at first glance.
in my case its easy maths as my in/out dont differ too much, but i can imagine there are some people out there
whose gold in/outs differ a lot and you could have a hard time doing that maths yourself, while seeing the profit / loss
values immediately on the goldlog page would make your life easier~

it could look like that as example





maybe you can make the text more clear / readable using some spaces but i have quickly written it so that the idea is clear~

This post was edited by zetsubl on Dec 10 2019 02:50pm
Member
Posts: 12,703
Joined: May 17 2013
Gold: 12,935.00
Dec 10 2019 04:07pm
I suggested this a while ago, apparently people are not interested in it.

I made a tampermonkey script you can use to get it yourself:


Code
// ==UserScript==
// @name D2jsp Gold Additions
// @namespace D2jspGoldAdditions
// @version 1
// @description Add overview of total gold moved for the month.
// @author Klexmoo
// @match https://*.d2jsp.org/gold.php*
// @grant none
// ==/UserScript==


var goldIn = parseFloat(document.getElementById('itgr').innerText.replace(',', ''));
var goldOut = parseFloat(document.getElementById('itgs').innerText.replace(',', ''));
var parent = document.getElementById('itgr').parentElement;
var goldSpan = document.createElement('span');
var total = goldIn - goldOut;
goldSpan.innerHTML = ' / Total: ' + parseFloat(total.toFixed(2)).toLocaleString(undefined, { minimumFractionDigits:2, maximumFractionDigits:2 }) + ' ';
parent.appendChild(goldSpan);


This post was edited by Klexmoo on Dec 10 2019 04:08pm
Go Back To Site Suggestions Topic List
Add Reply New Topic New Poll