Answer the question
In order to leave comments, you need to log in
How to edit userscript ?
function appendNewTotal() {
var newTotal = (parseFloat($('.account_current').contents()[0].textContent.replace(/[^ 0-9]/g,'')) / 100 + MONEY).toFixed(2).toString().replace('.',',');
if (newTotal.indexOf(',') == -1) newTotal += ',00';
$('.account_current').contents()[0].textContent = newTotal;
$('#person-accounts-RUB').contents()[0].textContent = newTotal + ' RUB';
}
function delayedAppend() {
if ($('.account_current').size() == 0)
setTimeout(delayedAppend,10);
else
appendNewTotal();
}
delayedAppend();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question