Skip to content

Instantly share code, notes, and snippets.

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/a7de3e331be4487acfe18cda2bdaf16e to your computer and use it in GitHub Desktop.
Save tsaiid/a7de3e331be4487acfe18cda2bdaf16e to your computer and use it in GitHub Desktop.
javascript:(
function() {
document.querySelectorAll("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();
});
var title = document.querySelectorAll(".breadcrumb a")[1].innerText;
document.querySelectorAll("textarea")[0].value = "了解" + title;
document.querySelectorAll("textarea")[1].value = "無";
}
)();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment