Skip to content

Instantly share code, notes, and snippets.

@crabtw
Created December 19, 2008 07:02
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 crabtw/37907 to your computer and use it in GitHub Desktop.
Save crabtw/37907 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name auto fill form
// @namespace crabtw@gmail.com
// @description auto fill form
// @include https://portal.yzu.edu.tw/WebQuestionnaire/Questionnaire.aspx*
// ==/UserScript==
var iter = document.evaluate(
'//td/input[1]',
document,
null,
XPathResult.UNORDERED_NODE_ITERATOR_TYPE,
null
);
var inputs = iter.iterateNext();
while(inputs) {
inputs.checked = true;
inputs = iter.iterateNext()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment