summivox / thucal2

Tsinghua University curriculum -> iCalendar format (.ics) -> Google Calendar, etc.
http://userscripts.org/scripts/show/159785
23 stars 9 forks source link

教学日历也改版了? #13

Closed wuuuuuud closed 10 years ago

wuuuuuud commented 10 years ago

用了最新的脚本,能出现按钮,错误提示是: 分析错误:Error: ★2014-09-22 对应的源代码可能是:

if !(match=/(\d+)月(\d+)日/.exec @innerHTML)? then throw Error @innerHTML

我先看看能不能改好...

summivox commented 10 years ago

这里就是简单地把HTML中的结构数据扒出来,应该稍微修改一下就能行,除非数据本身跟以前不一样了

chenxiaoqino commented 10 years ago

我也正在改,不过对iced不是很熟,调试有点棘手。 首先是第95行td.doc_title 好像该改成 td.copyright_zi_hui_shadow

发自我的 iPad

在 2014-9-21,下午10:23,summivox notifications@github.com 写道:

这里就是简单地把HTML中的结构数据扒出来,应该稍微修改一下就能行,除非数据本身跟以前不一样了

— Reply to this email directly or view it on GitHub https://github.com/summivox/thucal2/issues/13#issuecomment-56300166.

wuuuuuud commented 10 years ago

改好了(大概) 不过为什么要list整个学期?

chenxiaoqino commented 10 years ago

可能是因为假期安排调课等等只有info才有准确安排吧。。。

发自我的 iPad

在 2014-9-21,下午10:27,wuuuuuud notifications@github.com 写道:

改好了(大概) 不过为什么要list整个学期?

— Reply to this email directly or view it on GitHub https://github.com/summivox/thucal2/issues/13#issuecomment-56300282.

summivox commented 10 years ago

@wuuuuuud 你测试好了就是好了。 @chenxiaoqino 不是的,假期调课不在这里面


list到最后是为了robust地匹配grid和list 理由:grid中最后一天最后一门课,在list中逆序找,一定能匹配到;根据这个日期就可以逆推出第一周周一

wuuuuuud commented 10 years ago

我pull request了 @chenxiaoqino 你也测试一下吧...

wuuuuuud commented 10 years ago

这个?https://github.com/summivox/thucal2/commit/abb677f6fd36f22432b94be56383a68a38c2d490 没问题

summivox commented 10 years ago

ok,你们小范围测试一下

wuuuuuud commented 10 years ago

tampermonkey的自动更新不工作了吧...userscript都不见了

summivox commented 10 years ago

因为userscript.org不见了 我们需要新的host

chenxiaoqino commented 10 years ago

github.io 可行么?

发自我的 iPad

在 2014-9-21,下午11:18,summivox notifications@github.com 写道:

因为userscript.org不见了 我们需要新的host

— Reply to this email directly or view it on GitHub https://github.com/summivox/thucal2/issues/13#issuecomment-56301865.

wuuuuuud commented 10 years ago

吴天际把代码放在greasyfork.org上了 但是这个网站不支持compressed code... 所以明天再说吧

summivox commented 10 years ago

@chenxiaoqino 开始合作了之后就不能直接动master了。最好开新的feature branch

chenxiaoqino commented 10 years ago

@summivox 好的