Skip to content

Instantly share code, notes, and snippets.

@rinx
Last active August 29, 2015 13:57
Show Gist options
  • Save rinx/9614736 to your computer and use it in GitHub Desktop.
Save rinx/9614736 to your computer and use it in GitHub Desktop.
学務情報システムの成績照会ページを開いてコンソールで実行 | あなたの落とした単位が降ってきます
tmp = "";
for(var i=0; i< jq$(".column_odd").length; i++){if( jq$(".column_odd > td:eq("+(i*8+5) +")").text().replace(/\s+/g, "") == "D" ){tmp += jq$(".column_odd > td:eq("+(i*8) +")").text().replace(/\s+/g, "") + ",";}}
for(var i=0; i< jq$(".column_odd_120").length; i++) tmp += jq$(".column_odd_120 > td:eq("+(i*8) +")").text().replace(/\s+/g, "") + ",";
function jumpPage(units) { location.href = "http://oboenikui.com/tani/?units=" + units.replace(/,$/,""); }
jumpPage(tmp);
@rinx
Copy link
Author

rinx commented Mar 19, 2014

じゃあ落としてない単位を落とすのはこれですね

tmp = "";
for(var i=0; i< jq$(".column_odd").length; i++){
if( jq$(".column_odd > td:eq("+(i*8+5) +")").text().replace(/\s+/g, "") != "D" ){
tmp += jq$(".column_odd > td:eq("+(i*8) +")").text().replace(/\s+/g, "") + ",";}}
function jumpPage(units) { location.href = "http://oboenikui.com/tani/?units=" + units.replace(/,$/,""); }
jumpPage(tmp);

@jetkiwi
Copy link

jetkiwi commented Mar 19, 2014

落とした単位の担当の先生の名前が落ちてくるように変えてみました

tmp = "";
for(var i=0; i< jq$(".column_odd").length; i++){
if( jq$(".column_odd > td:eq("+(i*8+5) +")").text().replace(/\s+/g, "") == "D" ){
tmp += jq$(".column_odd > td:eq("+(i*8+1) +")").text().replace(/\s+/g, "") + ",";}}
function jumpPage(units) { location.href = "http://oboenikui.com/tani/?units=" + units.replace(/,$/,""); }
jumpPage(tmp);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment