GithubHelp home page GithubHelp logo

12306_ticket_helper's Introduction

12306.CN 订票助手

这是一个用于辅助在12306.CN上订票的Chrome&Firefox脚本。

功能

这是一个可以运行在**遨游3Chrome猎豹Firefox**浏览器上的脚本扩展,可以帮助您在 12306.CN 购买火车票(或抢火车票?),反正就是偷懒呗。

目前已经实现的功能包括

  • 记录登录的用户名和密码,在打开登录页面后自动填写;
  • 自动登录,遇到人过多或繁忙的时候自动重试,直到登录成功(有点儿抢线的味道);
  • 自动记录查询信息,一次查询线路后下次再查询自动填入;
  • 自动刷新查询,当没有需要的车次时,自动重新刷新;
  • Chrome/遨游3/猎豹下,查票和登录有右下角提示和声音提示;Firefox下暂不支持声音提示,但有桌面弹窗提示。
  • 自动提交订单,直到订单成功
  • 查询失败时自动刷新
  • 预定失败时自动重新预定
  • 禁用查询缓存
  • 查询界面参数和设置自动保存
  • 支持过滤无法预定车次
  • 支持过滤无需要席别车次
  • 现在系统已禁止验证码自动跳过,所以当出现验证码错误时,系统将会自动刷新验证码并自动定位到验证码输入框中并请求输入验证码,输入满四位的时候系统将会自动重新提交。

安装需求

目前支持**Chrome(含RC、Beta以及每夜版),Firefox(需要Scriptish扩展支持,使用了新的API所以GreaseMonkey不支持),遨游3(需要使用高速模式,不过没用的话也没关系,脚本会提示你用高速模式的),猎豹浏览器**。

提示:如果您不是很熟**FirefoxChrome**浏览器,那么您在付款时可能会遇到问题。此时强烈建议您使用遨游3

####遨游3下安装

遨游3 请至官方的扩展库中安装,请 点击这里转到扩展页面

####在Chrome/猎豹上安装 Chrome下可以直接安装。直接打开 助手主页,在下载一节中点击通用版本后(如果您实在木有找到,也可以直接点击这里安装),Chrome将会在浏览器下方的下载区域通知进行安装:

Chrome安装提示1

点击『继续』后,在弹出的对话框中继续点击『安装』。安装完成后即可。

Chrome安装提示2

如果您未能看到安装提示,而是提示了下载或其它内容,请确认您的浏览器版本较新。

####在Firefox上安装 在Firefox上运行需要Scriptish扩展提供支持。请注意,由于使用了Scriptish提供的新语法,因此_GreaseMonkey_扩展是不支持的

  • 如果您尚未给Firefox安装Scriptish扩展,请在此安装
  • 打开 助手主页,在下载一节中点击通用版本后(如果您实在木有找到,也可以直接点击这里安装
  • 正常情况下,Scriptish会弹出下列的安装提示,请点击『安装』继续;如果没有这样的提示框而是看到了下载或一堆『乱码』,那么请检查是否成功安装了Scriptish扩展。

提醒

由于各大网银都不支持Firefox/Chrome支付,因此请务必在订票前做好支付的准备措施。 这里推荐使用银联在线支付,请开通银联后绑定快捷支付,这样在Firefox和Chrome下都可以顺利付款。 也可以使用招行的手机银行进行支付。

更新历史

版本 4.2.5 原作者版本

  • 移除自动提交 (验证码不可提前输入)"
  • 修正加载联系人

我自己的更新 src 目录下

4.2.2.1

  • TDB 又修改了获取联系人的方式. 真是蛋疼. 脸蛋疼

官方网站

相关资料

  • 感谢所有开发过相关脚本,以及作出贡献的前人们。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.