Skip to content

Instantly share code, notes, and snippets.

View hepesu's full-sized avatar

HEPESU hepesu

  • Project HAT
  • China
View GitHub Profile
@hepesu
hepesu / XmuJWCICal
Last active August 29, 2015 14:13
厦门大学教务系统课程表导出
//For ssfw.xmu.edu.cn
console.log(function (window, document) {
return ['BEGIN:VCALENDAR\nPRODID:-//Google Inc//Google Calendar 70.9054//EN\nVERSION:2.0\n'].concat([]
//Get target
.slice.call(document.querySelectorAll('div'))
.filter(function (el) {
return el.className.indexOf('fcSpanDiv') > -1;
})
//Extract content
.map(function (el) {
@hepesu
hepesu / XmuJWCEvaluate
Last active July 28, 2020 14:08
厦门大学教务系统一键评教,进入评教界面,停止加载后在控制台粘贴以下内容使用。
(function (window, ko, $) {
var obj = ko.dataFor($("#topic")[0]);
if (!obj)
obj = init();
(function () {
if (!obj)
return 0;
var fn = arguments.callee;
if (!obj.isEndTopic()) {
$("#topic #tableid_" + (obj.displayIndex() - 1) + " input[rbl=100]").attr("checked", 1);