惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
L
LINUX DO - 最新话题
T
Troy Hunt's Blog
博客园_首页
量子位
Jina AI
Jina AI
S
SegmentFault 最新的问题
IT之家
IT之家
Hacker News - Newest:
Hacker News - Newest: "LLM"
大猫的无限游戏
大猫的无限游戏
N
News | PayPal Newsroom
P
Proofpoint News Feed
Cyberwarzone
Cyberwarzone
S
Securelist
Google Online Security Blog
Google Online Security Blog
P
Privacy International News Feed
博客园 - Franky
美团技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
NISL@THU
NISL@THU
C
Cisco Blogs
V
Vulnerabilities – Threatpost
腾讯CDC
The Hacker News
The Hacker News
K
Kaspersky official blog
C
Cyber Attacks, Cyber Crime and Cyber Security
雷峰网
雷峰网
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Security Archives - TechRepublic
Security Archives - TechRepublic
A
About on SuperTechFans
Webroot Blog
Webroot Blog
The Register - Security
The Register - Security
Scott Helme
Scott Helme
B
Blog
Security Latest
Security Latest
Last Week in AI
Last Week in AI
Google DeepMind News
Google DeepMind News
W
WeLiveSecurity
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
Tenable Blog
Blog — PlanetScale
Blog — PlanetScale
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
Schneier on Security

博客园 - Silence

[转载]使用CPU时间戳进行高精度计时 [转载]CreateWaitableTimer和SetWaitableTimer函数 [转载]VC实现CPU速度自测 北欧国旗的十字架 lu面 【转载】粤语翻译工具 异形魔方SQ1的暴力解法 [转载]聪明地使用Google的7个技巧 转载:“凤求凰”的解释,有才 【转】眼镜业内幕 专业操盘手的买卖法则 性格的英文单词 股东权益和权益比 音量控制面板项目说明 乘车指南 券商创设认购权证分析 调整出口关税对股价的影响 深市证券交易费用 沪市证券交易费用
自动刷新查询火车票脚本
Silence · 2012-01-19 · via 博客园 - Silence

本脚本来自网络,博主已验证,确实可以用。

关键是想买票得勤劳,建议6点爬起来,开浏览器登录,等到放票时间第一时间买

考虑到网络不通和不停手刷的双重折磨,写个脚本稍微减轻下这种痛苦

脚本目的:

1、session保持在线,不会下线,这样6点系统开登陆,刷到出票;

2、有新票提醒;

3、点击  车票预订 

4、填好出发地、目的地、出发日期、出发时间,然后右键单击出发车次这个文本框->选择-审查元素

5、然后在控制台上,input的节点,选择add attribute(插入属性),插入以下脚本:

添加注入脚本内容:

onclick="mark=1;$(this).after('by UING,刷票并保持在线脚本1.0');kkk=function(){if(mark==0)return;mark++;$('#gridbox .row20px tr').find('td').each(function(){if($(this).index()==10) {if($(this).text()!='无' && $(this).text()!='--' && $(this).text().indexOf('次')==-1){alert('有硬卧票了!'); mark=0;}else{$(this).html('检测'+mark+'次')}}});$('#submitQuery').click(); setTimeout(kkk,2000)};kkk();"

-------用这段代码,有卧铺票时候直接点击购买,不弹窗提示

onclick="mark=1;$(this).after('by UING,刷票并保持在线脚本1.0');kkk=function(){if(mark==0)return;mark++;$('#gridbox .row20px tr').find('td').each(function(){if($(this).index()==10) {if($(this).text()!='无' && $(this).text()!='--' && $(this).text().indexOf('次')==-1) {mark=0;$(this).parent().find('.yuding_u_over').click();}else{$(this).html(' 检测'+mark+'次 ')}}});$('#submitQuery').click();setTimeout(kkk,2000)};kkk();"

===========================================================

下面是另一种方式。