Skip to content

Instantly share code, notes, and snippets.

@xunlao
Created February 6, 2017 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xunlao/d30493c1eabc3ab57ba74b1a441c5fac to your computer and use it in GitHub Desktop.
Save xunlao/d30493c1eabc3ab57ba74b1a441c5fac to your computer and use it in GitHub Desktop.
gtimereport_form_filler.js
javascript:(function () {
var date = new Date();
var todayStr = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate();
$("#PeriodStart").val(todayStr);
$("#PeriodEnd").val(todayStr);
/* The items to choose */
$("input")[3].checked = 'checked';
$("input")[4].checked = 'checked';
$("input")[5].checked = 'checked';
$("#ShowSummary")[0].checked = 'checked';
$('.button.ui-button')[1].click()
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment