修改12306自動刷新時間

12306的自動刷新提交訂單是用js實現的,所以,在看過http://www.thinkful.cn/archives/390.html博文後受啓發。html

  1. 自動刷新時間變量
    瀏覽器

    autoSearchTime變量,其定義在https://kyfw.12306.cn/otn/leftTicket/init響應體中。cookie

var autoSearchTime=5000;

直接修改響應體是不可能的,能夠直接在瀏覽器開發者工具裏的控制檯輸入語句執行:
工具

autoSearchTime = 1000

2.  控制重登錄code

var __captcha_reload_fun = function(){
	var currentCookie = $.cookie("current_captcha_type")
	if(currentCookie&&currentCookie==="Z"){
		location.reload(true);
	}else{
		//console.log('cookie is correct');
	}
}

3. function an(bS)裏的jPlayer('play')後,刷票成功提示音。htm

相關文章
相關標籤/搜索