Skip to content

Instantly share code, notes, and snippets.

@garethellis36
Last active February 5, 2016 15:28
Show Gist options
  • Save garethellis36/8476008d033d3d980539 to your computer and use it in GitHub Desktop.
Save garethellis36/8476008d033d3d980539 to your computer and use it in GitHub Desktop.
Triboni bookmarklet
javascript:
var amountBK = prompt('Enter amount','');
void(document.getElementById('amount').value = amountBK);
void(document.getElementById('title').value = 'costs_description');
void(document.getElementById('office').value = '123');
void(document.getElementById('department').value = '12345');
void(document.getElementById('account').value = '1234567');
if (amountBK > 0) {
var blurEvent = new Event('blur');
void(document.getElementById('amount').dispatchEvent(blurEvent));
void(document.getElementById('approver').value = 'approver-code');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment