Sunday, April 15, 2012

Google Finance: Cash-linking all transactions

I've been using Google Finance to keep track of my transactions in US stocks. Its a pretty nifty tool, and it's simple to use. However, one feature that is sorely lacking is the ability to mark all the transactions in your portfolio as cash-linked. I've come up with a simple script to do this. Just copy and paste the following code while you're in the transactions page of your portfolio, and press "Enter". One thing to take note is that your browser may remove the "javascript:" part of the script. If this happens, just type it in and continue.
javascript:var inputs = document.getElementsByTagName("input");var tickAll = function(){for (var i=0; i<inputs.length; i++){var input = inputs[i];if (input.name.indexOf("edit_is_cash_synced")>=0){input.checked="checked";}} alert("Done");};tickAll();

No comments:

Post a Comment