Skip to content

Instantly share code, notes, and snippets.

@oboenikui
Created February 13, 2015 07:25
Show Gist options
  • Save oboenikui/157867e6ea9049648e3e to your computer and use it in GitHub Desktop.
Save oboenikui/157867e6ea9049648e3e to your computer and use it in GitHub Desktop.
ブラウザコンソールで学務情報システムの成績評価カウントするやつ
var row = document.getElementsByTagName("tr");
var seiseki = new Object();
for(var i=0;i<row.length;i++){
var childs = row[i].getElementsByTagName("td");
if(childs.length == 8 && childs[5].innerText!="評価"){
seiseki[childs[5].innerText] = seiseki[childs[5].innerText]?seiseki[childs[5].innerText]+1:1
}
}
console.log(seiseki);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment