Skip to content

Instantly share code, notes, and snippets.

@tsaiid
Last active September 13, 2022 08:43
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 tsaiid/467e9ee96cf955c889bda7e7f1233c09 to your computer and use it in GitHub Desktop.
Save tsaiid/467e9ee96cf955c889bda7e7f1233c09 to your computer and use it in GitHub Desktop.
$$("input[name^='radiorated'][id$='_1']").forEach(function(r){
var c = r.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.firstChild.innerText;
if (c.match(/^(5|26|27)\./)) {
var r = r.parentNode.parentNode.childNodes[13].childNodes[0];
}
r.click();
});
$$("textarea")[0].value = "了解" + $$(".breadcrumb a")[1].innerText;
$$("textarea")[1].value = "無";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment