VIP - IDR Balance Bookmarklet

Live update of estimated IDR value of your current crypto currency balance.

Source (vip.bitcoin.co.id)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3A%28function%28%29%20%7Bvar%20coins%3Ddocument.querySelector%28%27.table-markets%27%29.querySelectorAll%28%27tbody%20tr%27%29%3BsetInterval%28function%28%29%7Bcoins.forEach%28function%28coin%2Cindex%29%7Bvar%20coinName%3Dcoin.querySelector%28%27td%3Afirst-child%27%29.innerText%3Bvar%20coinPrice%3DparseInt%28coin.querySelector%28%27td%3Anth-child%283%29%27%29.innerText.replace%28/%5C./g%2C%27%27%29%29%3Bvar%20coinBalanceCell%3Dcoin.querySelector%28%27td%3Alast-child%27%29%3Bvar%20coinBalanceText%3DcoinBalanceCell.innerHTML%3Bvar%20coinBalance%3DparseFloat%28coinBalanceCell.querySelector%28%27span%27%29.innerText.replace%28/%5C%2C/g%2C%27.%27%29%29%3Bvar%20coinValue%3DMath.round%28coinPrice*coinBalance%29%3Bif%28coinBalance%29%7Bconsole.log%28%27My%27%2CcoinName%2C%27est.%20Value%27%2CthousandSeparator%28coinValue%29%2C%27IDR%27%29%3Bif%28coinBalanceCell.querySelector%28%27strong%27%29%29%7BcoinBalanceCell.querySelector%28%27strong%27%29.innerText%3DthousandSeparator%28coinValue%29+%27%20IDR%27%7Delse%7BcoinBalanceCell.innerHTML%3DcoinBalanceText+%27%3Cbr%3E%3Cstrong%3E%27+thousandSeparator%28coinValue%29+%27%20IDR%3C/strong%3E%27%7D%7D%7D%29%3Bconsole.log%28%27---%27%29%7D%2C2000%29%3Bfunction%20thousandSeparator%28int%29%7Breturn%20int.toString%28%29.replace%28/%5CB%28%3F%3D%28%5Cd%7B3%7D%29+%28%3F%21%5Cd%29%29/g%2C%22.%22%29%7D%7D%29


Rate it:


Tags:

Comments

Comments so far. Add yours.