转自:https://gist.github.com/1554666 (貌似有些地方上github要翻墙。。。)
(我试了下,iE9、Chrome下均可用!!!—— iGuang)
—————————————————————————————————–
12306.cn自动登录脚本:
终于改造好了,感谢bitplus的建议。
程序参考: https://gist.github.com/1554666, 特此感谢。。。
另,这是我写的第一个user script程序,错误在所难免,欢迎大家拍砖。。。
本程序不会记录您的用户名和密码,请放心使用!
本程序解决的问题:
针对 https://dynamic.12306.cn/otsweb/ 网站登录难的问题,特写了该小插件,只需要输入一次用户名、密码、验证码,即可进行多次尝试登录,直至登录成功。
使用说明:
在chrome中,打开https://gist.github.com/raw/1570973/f200dd587f6d68ab81edf74436b1fb7d91c79973/12306AutoLogin.user.js 地址,进行插件安装。
然后在浏览器中打开https://dynamic.12306.cn/otsweb/ , 输入用户名、密码、验证码,然后点“自动登录”按钮即可。
如果登录成功后,会跳转到车票查询页面,此时配合12306 Auto Query 程序 效果更佳。。。
另外,在IE下可以使用,
Internet Explorer 6-8 用户建议安装Trixie扩展:
http://www.bhelpuri.net/Trixie/
把用户脚本放在C:\Program Files\Bhelpuri\Trixie\Scripts文件夹下(64位系统在:C:\Program Files (x86)\Bhelpuri\Trixie\Scripts),
在工具->Trixie Options(Trixie选项)中点击Reload Scripts(重新载入)按钮,再选中该脚本,即可使用。
安装地址:
https://gist.github.com/raw/1570973/f200dd587f6d68ab81edf74436b1fb7d91c79973/12306AutoLogin.user.js
源代码地址:
https://gist.github.com/1570973



PM心得