Skip to content

Instantly share code, notes, and snippets.

@kitgrose
Forked from xerxesb/gist:1744913
Created February 5, 2012 12:01
Show Gist options
  • Save kitgrose/1745011 to your computer and use it in GitHub Desktop.
Save kitgrose/1745011 to your computer and use it in GitHub Desktop.
Netbank hackery
var BetterNetbank = {
inject: function(table) {
if ($("#" + table).length > 0) {
$('#' + table + ' thead tr').prepend('<th>X</th>');
$('#' + table + 'Body > tr').map(function() {
$(this).prepend('<td><input type="checkbox" /></td>');
});
}
}
}
BetterNetbank.inject('transactionsTable');
BetterNetbank.inject('outstandingAuthorizationsTable');
var theShizzle = function(event) {
var transactions = window.transactions;
if (transactions.updateDisplay2 == null) {
transactions.updateDisplay2 = transactions.updateDisplay
transactions.updateDisplay = function() {
transactions.updateDisplay2();
BetterNetbank.inject('transactionsTable');
BetterNetbank.inject('outstandingAuthorizationsTable');
}
}
}
$('#ctl00_BodyPlaceHolder_btnSearch_field').bind('click', theShizzle);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment