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

推荐订阅源

量子位
T
The Blog of Author Tim Ferriss
U
Unit 42
Microsoft Security Blog
Microsoft Security Blog
WordPress大学
WordPress大学
Vercel News
Vercel News
MongoDB | Blog
MongoDB | Blog
P
Proofpoint News Feed
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
Blog — PlanetScale
Blog — PlanetScale
I
InfoQ
Y
Y Combinator Blog
F
Full Disclosure
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
G
Google Developers Blog
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
博客园 - 三生石上(FineUI控件)
博客园 - 叶小钗
S
SegmentFault 最新的问题
腾讯CDC
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
Visual Studio Blog
Apple Machine Learning Research
Apple Machine Learning Research
人人都是产品经理
人人都是产品经理
Recent Commits to openclaw:main
Recent Commits to openclaw:main
The Register - Security
The Register - Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Azure Blog
Microsoft Azure Blog
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
F
Fortinet All Blogs
C
CXSECURITY Database RSS Feed - CXSecurity.com
Hugging Face - Blog
Hugging Face - Blog
T
Threatpost
GbyAI
GbyAI
G
GRAHAM CLULEY
L
Lohrmann on Cybersecurity
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
L
LangChain Blog
T
Tenable Blog
C
Cisco Blogs
T
Threat Research - Cisco Blogs
Google Online Security Blog
Google Online Security Blog

博客园 - 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();"

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

下面是另一种方式。