Skip to content

Instantly share code, notes, and snippets.

@wcp1231
Created June 19, 2013 07:28
Show Gist options
  • Save wcp1231/5812294 to your computer and use it in GitHub Desktop.
Save wcp1231/5812294 to your computer and use it in GitHub Desktop.
自动填写BISTU教务系统的教学质量评估,只要打开教学质量评估页面即可。不过得自己点击提交按钮。
// ==UserScript==
// @name BISTU_Auto_Evaluate
// @namespace http://wcp1231.github.io
// @include http://jwgl.bistu.edu.cn/*
// @version 1
// ==/UserScript==
for(var i = 2; i < 8; i++) {
var id = "DataGrid1__ctl" + i + "_JS1";
document.getElementById(id).selectedIndex = 1;
}
var finsh_btn = document.getElementById('Button2');
if(finsh_btn.hasAttribute('disabled')) {
document.getElementById("Button1").click();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment