Created
December 19, 2008 07:02
-
-
Save crabtw/37907 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name auto fill form | |
// @namespace [email protected] | |
// @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