Last active
August 29, 2015 13:57
-
-
Save rinx/9614736 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
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); |
落単した単位の表示のさせ方、環境によって違うっぽいのでうまくいかない場合があるらしい
うちはこうしたら動きました―
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);
じゃあ落としてない単位を落とすのはこれですね
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);
落とした単位の担当の先生の名前が落ちてくるように変えてみました
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
落としてない単位を落としたいときはこちらをどうぞ