zarjay / Citi Utils

Published:

Version: 1.1.0+df9126e updated

Summary: Library of Citi-specific functions runnable from the browser console.

License: MIT; https://github.com/zarjay/userscripts/blob/master/LICENSE

Citi Utils

Run these functions in your browser console.

API (All Pages)

u.include(url)

Includes a CSS or JS file onto the page.

Returns a promise that resolves when the CSS/JS file has finished loading.

u.include('//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js').then(function() {
  // do something with $ or jQuery
});

API (Transactions Page)

u.filter(start, [end])

Removes rows that don't fall within date range (end date is optional).

u.filter('04/04/2015');

u.values()

Returns an array of transaction amounts.

u.min()

Returns the lowest transaction amount.

u.max()

Returns the highest transaction amount.

u.sum()

Returns the sum of transaction amounts.

u.average()

Returns the average transaction amount.

u.stats()

Returns an object of transaction calculations (min, max, sum, average)

Rating: 0