-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
添加SSLVPN模式 #26
base: master
Are you sure you want to change the base?
添加SSLVPN模式 #26
Conversation
(Testing version! use with caution.)
TESTED: I used this in new york city. It Still Works (TM)
@@ -470,6 +474,29 @@ unsafeWindow.thucal=thucal=new -> | |||
@ui.log '不支持小学期!' | |||
return | |||
|
|||
if document.location.toString().match(/sslvpn/) | |||
@ui.log "SSLVPN 模式: 自动登录info..." | |||
#open info page (to utilize sslvpn system's auto-login feature) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very clever...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know I'm stupid, it's for testing only at that time!
let's change that to document.location.host.match
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不我是说居然可以自动login,这比不用sslvpn还牛逼……
可以location.host,也可以/sslvpn/.test
(不需要强制转换location)
regex本身不是问题,因为你greasemonkey header已经限制过location了
另外我当时的style太差,你看着不顺眼就修好了……
我现在的话应该会用webpack + livescript写,不过这个项目你也知道我早就不管了……
merge的时候别忘了把 |
已经加了最新编译了。 bc965b0 |
从tuna的telegram群里面拖个还在学校的小白鼠吧,测好了自行merge好了 |
啊,我并不是tuna成员 :-P |
我可以拉你进那个群…… |
由于�本学期开学时还在国外,终于有动力把SSLVPN模式整理好(并测试)。可以考虑merge回master了。
使用方法:
需要帮助:请测试一下校内状态的导出没有Broke…