2024-03-29, update for kktix, default not access kktix status API.
parent
ce2d337b1b
commit
e15b9a0380
|
@ -44,7 +44,7 @@ except Exception as exc:
|
|||
print(exc)
|
||||
pass
|
||||
|
||||
CONST_APP_VERSION = "MaxBot (2024.03.28)"
|
||||
CONST_APP_VERSION = "MaxBot (2024.03.29)"
|
||||
|
||||
CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt"
|
||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||
|
@ -767,7 +767,6 @@ def get_driver_by_config(config_dict):
|
|||
NETWORK_BLOCKED_URLS.append('https://t.kfs.io/assets/icon-*.png')
|
||||
NETWORK_BLOCKED_URLS.append('https://t.kfs.io/upload_images/*.jpg')
|
||||
|
||||
|
||||
if config_dict["advanced"]["block_facebook_network"]:
|
||||
NETWORK_BLOCKED_URLS.append('*facebook.com/*')
|
||||
NETWORK_BLOCKED_URLS.append('*.fbcdn.net/*')
|
||||
|
|
|
@ -24,7 +24,7 @@ import webbrowser
|
|||
|
||||
import util
|
||||
|
||||
CONST_APP_VERSION = "MaxBot (2024.03.28)"
|
||||
CONST_APP_VERSION = "MaxBot (2024.03.29)"
|
||||
|
||||
CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json"
|
||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||
|
|
|
@ -29,7 +29,7 @@ from datetime import datetime
|
|||
|
||||
import util
|
||||
|
||||
CONST_APP_VERSION = "MaxBot (2024.03.28)"
|
||||
CONST_APP_VERSION = "MaxBot (2024.03.29)"
|
||||
|
||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||
CONST_MAXBOT_KKTIX_CONFIG_FILE = "kktix.json"
|
||||
|
|
|
@ -32,7 +32,7 @@ except Exception as exc:
|
|||
print(exc)
|
||||
pass
|
||||
|
||||
CONST_APP_VERSION = "MaxBot (2024.03.27)"
|
||||
CONST_APP_VERSION = "MaxBot (2024.03.29)"
|
||||
|
||||
CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt"
|
||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||
|
|
|
@ -76,8 +76,9 @@
|
|||
"auto_guess_options": true,
|
||||
"user_guess_string": "",
|
||||
"remote_url": "\"http://127.0.0.1:16888/\"",
|
||||
"auto_reload_page_interval": 0.4,
|
||||
"auto_reload_page_interval": 0.0,
|
||||
"reset_browser_interval": 0,
|
||||
"kktix_status_api": false,
|
||||
"max_dwell_time": 60,
|
||||
"proxy_server_port": "",
|
||||
"window_size": "480,1024",
|
||||
|
|
47
settings.py
47
settings.py
|
@ -41,7 +41,7 @@ try:
|
|||
except Exception as exc:
|
||||
pass
|
||||
|
||||
CONST_APP_VERSION = "MaxBot (2024.03.28)"
|
||||
CONST_APP_VERSION = "MaxBot (2024.03.29)"
|
||||
|
||||
CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt"
|
||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||
|
@ -136,7 +136,8 @@ def load_translate():
|
|||
en_us["pass_date_is_sold_out"] = 'Pass date is sold out'
|
||||
en_us["auto_reload_coming_soon_page"] = 'Reload coming soon page'
|
||||
en_us["auto_reload_page_interval"] = 'Reload page interval(sec.)'
|
||||
en_us["max_dwell_time"] = 'Max dwell time(sec.)'
|
||||
en_us["kktix_status_api"] = 'KKTIX status API'
|
||||
en_us["max_dwell_time"] = 'KKTIX dwell time(sec.)'
|
||||
en_us["reset_browser_interval"] = 'Reset browser interval(sec.)'
|
||||
en_us["proxy_server_port"] = 'Proxy IP:PORT'
|
||||
en_us["window_size"] = 'Window size'
|
||||
|
@ -255,7 +256,8 @@ def load_translate():
|
|||
zh_tw["pass_date_is_sold_out"] = '避開「搶購一空」的日期'
|
||||
zh_tw["auto_reload_coming_soon_page"] = '自動刷新倒數中的日期頁面'
|
||||
zh_tw["auto_reload_page_interval"] = '自動刷新頁面間隔(秒)'
|
||||
zh_tw["max_dwell_time"] = '購票網頁最長停留(秒)'
|
||||
zh_tw["kktix_status_api"] = 'KKTIX購票狀態API'
|
||||
zh_tw["max_dwell_time"] = 'KKTIX購票最長停留(秒)'
|
||||
zh_tw["reset_browser_interval"] = '重新啟動瀏覽器間隔(秒)'
|
||||
zh_tw["proxy_server_port"] = 'Proxy IP:PORT'
|
||||
zh_tw["window_size"] = '瀏覽器視窗大小'
|
||||
|
@ -374,6 +376,7 @@ def load_translate():
|
|||
zh_cn["pass_date_is_sold_out"] = '避开“抢购一空”的日期'
|
||||
zh_cn["auto_reload_coming_soon_page"] = '自动刷新倒数中的日期页面'
|
||||
zh_cn["auto_reload_page_interval"] = '重新加载间隔(秒)'
|
||||
zh_cn["kktix_status_api"] = 'KKTIX购票状态API'
|
||||
zh_cn["max_dwell_time"] = '购票网页最长停留(秒)'
|
||||
zh_cn["reset_browser_interval"] = '重新启动浏览器间隔(秒)'
|
||||
zh_cn["proxy_server_port"] = 'Proxy IP:PORT'
|
||||
|
@ -494,6 +497,7 @@ def load_translate():
|
|||
ja_jp["pass_date_is_sold_out"] = '「売り切れ」公演を避ける'
|
||||
ja_jp["auto_reload_coming_soon_page"] = '公開予定のページをリロード'
|
||||
ja_jp["auto_reload_page_interval"] = 'リロード間隔(秒)'
|
||||
ja_jp["kktix_status_api"] = 'KKTIX status API'
|
||||
ja_jp["max_dwell_time"] = '最大滞留時間(秒)'
|
||||
ja_jp["reset_browser_interval"] = 'ブラウザの再起動間隔(秒)'
|
||||
ja_jp["proxy_server_port"] = 'Proxy IP:PORT'
|
||||
|
@ -681,8 +685,9 @@ def get_default_config():
|
|||
config_dict["advanced"]["user_guess_string"] = ""
|
||||
config_dict["advanced"]["remote_url"] = "http://127.0.0.1:%d/" % (CONST_SERVER_PORT)
|
||||
|
||||
config_dict["advanced"]["auto_reload_page_interval"] = 0.4
|
||||
config_dict["advanced"]["auto_reload_page_interval"] = 0
|
||||
config_dict["advanced"]["reset_browser_interval"] = 0
|
||||
config_dict["advanced"]["kktix_status_api"] = False
|
||||
config_dict["advanced"]["max_dwell_time"] = 60
|
||||
config_dict["advanced"]["proxy_server_port"] = ""
|
||||
config_dict["advanced"]["window_size"] = "480,1024"
|
||||
|
@ -791,6 +796,7 @@ def btn_save_act(slience_mode=False):
|
|||
global chk_state_pass_date_is_sold_out
|
||||
global chk_state_auto_reload_coming_soon_page
|
||||
global txt_auto_reload_page_interval
|
||||
global chk_status_kktix_status_api
|
||||
global txt_max_dwell_time
|
||||
global txt_reset_browser_intervalv
|
||||
global txt_proxy_server_port
|
||||
|
@ -1073,11 +1079,12 @@ def btn_save_act(slience_mode=False):
|
|||
|
||||
config_dict["webdriver_type"] = combo_webdriver_type.get().strip()
|
||||
config_dict["advanced"]["headless"] = bool(chk_state_headless.get())
|
||||
config_dict["advanced"]["verbose"] = bool(chk_state_verbose.get())
|
||||
#config_dict["advanced"]["verbose"] = bool(chk_state_verbose.get())
|
||||
|
||||
config_dict["advanced"]["auto_guess_options"] = bool(chk_state_auto_guess_options.get())
|
||||
|
||||
config_dict["advanced"]["auto_reload_page_interval"] = float(txt_auto_reload_page_interval.get().strip())
|
||||
config_dict["advanced"]["kktix_status_api"] = bool(chk_state_kktix_status_api.get())
|
||||
config_dict["advanced"]["max_dwell_time"] = int(txt_max_dwell_time.get().strip())
|
||||
config_dict["advanced"]["reset_browser_interval"] = int(txt_reset_browser_interval.get().strip())
|
||||
config_dict["advanced"]["proxy_server_port"] = txt_proxy_server_port.get().strip()
|
||||
|
@ -1324,6 +1331,7 @@ def applyNewLanguage():
|
|||
global lbl_block_facebook_network_recommand
|
||||
|
||||
global lbl_auto_reload_page_interval
|
||||
global lbl_kktix_status_api
|
||||
global lbl_max_dwell_time
|
||||
global lbl_reset_browser_interval
|
||||
global lbl_proxy_server_port
|
||||
|
@ -1364,6 +1372,7 @@ def applyNewLanguage():
|
|||
lbl_block_facebook_network_recommand.config(text=translate[language_code]["recommand_enable"])
|
||||
|
||||
lbl_auto_reload_page_interval.config(text=translate[language_code]["auto_reload_page_interval"])
|
||||
lbl_kktix_status_api.config(text=translate[language_code]["kktix_status_api"])
|
||||
lbl_max_dwell_time.config(text=translate[language_code]["max_dwell_time"])
|
||||
lbl_reset_browser_interval.config(text=translate[language_code]["reset_browser_interval"])
|
||||
lbl_proxy_server_port.config(text=translate[language_code]["proxy_server_port"])
|
||||
|
@ -2028,6 +2037,20 @@ def AdvancedTab(root, config_dict, language_code, UI_PADDING_X):
|
|||
|
||||
group_row_count +=1
|
||||
|
||||
global lbl_kktix_status_api
|
||||
lbl_kktix_status_api = Label(frame_group_header, text=translate[language_code]['kktix_status_api'])
|
||||
lbl_kktix_status_api.grid(column=0, row=group_row_count, sticky = E)
|
||||
|
||||
global chk_state_kktix_status_api
|
||||
chk_state_kktix_status_api = BooleanVar()
|
||||
chk_state_kktix_status_api.set(config_dict["advanced"]["kktix_status_api"])
|
||||
|
||||
global chk_kktix_status_api
|
||||
chk_kktix_status_api = Checkbutton(frame_group_header, text=translate[language_code]['enable'], variable=chk_state_kktix_status_api)
|
||||
chk_kktix_status_api.grid(column=1, row=group_row_count, sticky = W)
|
||||
|
||||
group_row_count +=1
|
||||
|
||||
global lbl_max_dwell_time
|
||||
lbl_max_dwell_time = Label(frame_group_header, text=translate[language_code]['max_dwell_time'])
|
||||
lbl_max_dwell_time.grid(column=0, row=group_row_count, sticky = E)
|
||||
|
@ -2152,7 +2175,8 @@ def AdvancedTab(root, config_dict, language_code, UI_PADDING_X):
|
|||
|
||||
global lbl_verbose
|
||||
lbl_verbose = Label(frame_group_header, text=translate[language_code]['verbose'])
|
||||
lbl_verbose.grid(column=0, row=group_row_count, sticky = E)
|
||||
# maybe enable in future.
|
||||
#lbl_verbose.grid(column=0, row=group_row_count, sticky = E)
|
||||
|
||||
global chk_state_verbose
|
||||
chk_state_verbose = BooleanVar()
|
||||
|
@ -2160,19 +2184,20 @@ def AdvancedTab(root, config_dict, language_code, UI_PADDING_X):
|
|||
|
||||
global chk_verbose
|
||||
chk_verbose = Checkbutton(frame_group_header, text=translate[language_code]['enable'], variable=chk_state_verbose)
|
||||
chk_verbose.grid(column=1, row=group_row_count, sticky = W)
|
||||
# maybe enable in future.
|
||||
#chk_verbose.grid(column=1, row=group_row_count, sticky = W)
|
||||
|
||||
group_row_count +=1
|
||||
|
||||
global lbl_ocr_captcha
|
||||
lbl_ocr_captcha = Label(frame_group_header, text=translate[language_code]['ocr_captcha'])
|
||||
lbl_ocr_captcha = Label(frame_group_header, text=translate[language_code]["ocr_captcha"])
|
||||
lbl_ocr_captcha.grid(column=0, row=group_row_count, sticky = E)
|
||||
|
||||
frame_group_ddddocr_enable = Frame(frame_group_header)
|
||||
|
||||
global chk_state_ocr_captcha
|
||||
chk_state_ocr_captcha = BooleanVar()
|
||||
chk_state_ocr_captcha.set(config_dict['ocr_captcha']["enable"])
|
||||
chk_state_ocr_captcha.set(config_dict["ocr_captcha"]["enable"])
|
||||
|
||||
global chk_ocr_captcha
|
||||
chk_ocr_captcha = Checkbutton(frame_group_ddddocr_enable, text=translate[language_code]['enable'], variable=chk_state_ocr_captcha, command=showHideOcrCaptchaWithSubmit)
|
||||
|
@ -2193,7 +2218,7 @@ def AdvancedTab(root, config_dict, language_code, UI_PADDING_X):
|
|||
|
||||
global chk_state_ocr_captcha_ddddocr_beta
|
||||
chk_state_ocr_captcha_ddddocr_beta = BooleanVar()
|
||||
chk_state_ocr_captcha_ddddocr_beta.set(config_dict['ocr_captcha']["beta"])
|
||||
chk_state_ocr_captcha_ddddocr_beta.set(config_dict["ocr_captcha"]["beta"])
|
||||
|
||||
global chk_ocr_captcha_ddddocr_beta
|
||||
chk_ocr_captcha_ddddocr_beta = Checkbutton(frame_group_header, text=translate[language_code]['enable'], variable=chk_state_ocr_captcha_ddddocr_beta)
|
||||
|
@ -2210,7 +2235,7 @@ def AdvancedTab(root, config_dict, language_code, UI_PADDING_X):
|
|||
|
||||
global chk_state_ocr_captcha_force_submit
|
||||
chk_state_ocr_captcha_force_submit = BooleanVar()
|
||||
chk_state_ocr_captcha_force_submit.set(config_dict['ocr_captcha']["force_submit"])
|
||||
chk_state_ocr_captcha_force_submit.set(config_dict["ocr_captcha"]["force_submit"])
|
||||
|
||||
global chk_ocr_captcha_force_submit
|
||||
chk_ocr_captcha_force_submit = Checkbutton(frame_group_header, text=translate[language_code]['enable'], variable=chk_state_ocr_captcha_force_submit)
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"homepage": "https://tixcraft.com", "browser": "chrome", "language": "\u7e41\u9ad4\u4e2d\u6587", "ticket_number": 2, "ocr_captcha": {"enable": true, "beta": true, "force_submit": true, "image_source": "canvas"}, "webdriver_type": "undetected_chromedriver", "date_auto_select": {"enable": true, "date_keyword": "", "mode": "random"}, "area_auto_select": {"enable": true, "mode": "random", "area_keyword": ""}, "keyword_exclude": "\"\u8f2a\u6905\",\"\u8eab\u969c\",\"\u8eab\u5fc3 \u969c\u7919\",\"Restricted View\",\"\u71c8\u67f1\u906e\u853d\",\"\u8996\u7dda\u4e0d\u5b8c\u6574\"", "kktix": {"auto_press_next_step_button": true, "auto_fill_ticket_number": true}, "tixcraft": {"pass_date_is_sold_out": true, "auto_reload_coming_soon_page": true}, "advanced": {"play_sound": {"ticket": true, "order": true, "filename": "ding-dong.wav"}, "tixcraft_sid": "", "ibonqware": "", "facebook_account": "", "kktix_account": "", "fami_account": "", "cityline_account": "", "urbtix_account": "", "hkticketing_account": "", "kham_account": "", "ticket_account": "", "udn_account": "", "ticketplus_account": "", "facebook_password": "", "kktix_password": "", "fami_password": "", "urbtix_password": "", "cityline_password": "", "hkticketing_password": "", "kham_password": "", "ticket_password": "", "udn_password": "", "ticketplus_password": "", "facebook_password_plaintext": "", "kktix_password_plaintext": "", "fami_password_plaintext": "", "urbtix_password_plaintext": "", "cityline_password_plaintext": "", "hkticketing_password_plaintext": "", "kham_password_plaintext": "", "ticket_password_plaintext": "", "udn_password_plaintext": "", "ticketplus_password_plaintext": "", "chrome_extension": true, "disable_adjacent_seat": false, "hide_some_image": false, "block_facebook_network": false, "headless": false, "verbose": false, "auto_guess_options": true, "user_guess_string": "", "remote_url": "\"http://127.0.0.1:16888/\"", "auto_reload_page_interval": 0.4, "reset_browser_interval": 0, "max_dwell_time": 60, "proxy_server_port": "", "window_size": "480,1024,2", "idle_keyword": "", "resume_keyword": "", "idle_keyword_second": "", "resume_keyword_second": ""}, "domain_filter": ["*google-analytics.com/*", "*googletagmanager.com/*", "*googletagservices.com/*", "*lndata.com/*", "*a.amnet.tw/*", "*adx.c.appier.net/*", "*clarity.ms/*", "*cloudfront.com/*", "*cms.analytics.yahoo.com/*", "*doubleclick.net/*", "*e2elog.fetnet.net/*", "*fundingchoicesmessages.google.com/*", "*ghtinc.com/*", "*match.adsrvr.org/*", "*onead.onevision.com.tw/*", "*popin.cc/*", "*rollbar.com/*", "*sb.scorecardresearch.com/*", "*tagtoo.co/*", "*.ssp.hinet.net/*", "*ticketmaster.sg/js/adblock*", "*.googlesyndication.com/*", "*treasuredata.com/*", "*play.google.com/log?*", "*www.youtube.com/youtubei/v1/player/heartbeat*", "*tixcraft.com/js/analytics.js*", "*ticketmaster.sg/js/adblock.js*", "*img.uniicreative.com/*", "*cdn.cookielaw.org/*", "*tixcraft.com/js/custom.js*", "*tixcraft.com/js/common.js*", "*cdnjs.cloudflare.com/ajax/libs/clipboard.js/*"]}
|
||||
{"homepage": "https://tixcraft.com", "browser": "chrome", "language": "\u7e41\u9ad4\u4e2d\u6587", "ticket_number": 2, "ocr_captcha": {"enable": true, "beta": true, "force_submit": true, "image_source": "canvas"}, "webdriver_type": "undetected_chromedriver", "date_auto_select": {"enable": true, "date_keyword": "", "mode": "random"}, "area_auto_select": {"enable": true, "mode": "random", "area_keyword": ""}, "keyword_exclude": "\"\u8f2a\u6905\",\"\u8eab\u969c\",\"\u8eab\u5fc3 \u969c\u7919\",\"Restricted View\",\"\u71c8\u67f1\u906e\u853d\",\"\u8996\u7dda\u4e0d\u5b8c\u6574\"", "kktix": {"auto_press_next_step_button": true, "auto_fill_ticket_number": true}, "tixcraft": {"pass_date_is_sold_out": true, "auto_reload_coming_soon_page": true}, "advanced": {"play_sound": {"ticket": true, "order": true, "filename": "ding-dong.wav"}, "tixcraft_sid": "", "ibonqware": "", "facebook_account": "", "kktix_account": "", "fami_account": "", "cityline_account": "", "urbtix_account": "", "hkticketing_account": "", "kham_account": "", "ticket_account": "", "udn_account": "", "ticketplus_account": "", "facebook_password": "", "kktix_password": "", "fami_password": "", "urbtix_password": "", "cityline_password": "", "hkticketing_password": "", "kham_password": "", "ticket_password": "", "udn_password": "", "ticketplus_password": "", "facebook_password_plaintext": "", "kktix_password_plaintext": "", "fami_password_plaintext": "", "urbtix_password_plaintext": "", "cityline_password_plaintext": "", "hkticketing_password_plaintext": "", "kham_password_plaintext": "", "ticket_password_plaintext": "", "udn_password_plaintext": "", "ticketplus_password_plaintext": "", "chrome_extension": true, "disable_adjacent_seat": false, "hide_some_image": false, "block_facebook_network": false, "headless": false, "verbose": false, "auto_guess_options": true, "user_guess_string": "", "remote_url": "\"http://127.0.0.1:16888/\"", "auto_reload_page_interval": 0.0, "reset_browser_interval": 0, "kktix_status_api": false, "max_dwell_time": 60, "proxy_server_port": "", "window_size": "480,1024,0", "idle_keyword": "", "resume_keyword": "", "idle_keyword_second": "", "resume_keyword_second": ""}, "domain_filter": ["*google-analytics.com/*", "*googletagmanager.com/*", "*googletagservices.com/*", "*lndata.com/*", "*a.amnet.tw/*", "*adx.c.appier.net/*", "*clarity.ms/*", "*cloudfront.com/*", "*cms.analytics.yahoo.com/*", "*doubleclick.net/*", "*e2elog.fetnet.net/*", "*fundingchoicesmessages.google.com/*", "*ghtinc.com/*", "*match.adsrvr.org/*", "*onead.onevision.com.tw/*", "*popin.cc/*", "*rollbar.com/*", "*sb.scorecardresearch.com/*", "*tagtoo.co/*", "*.ssp.hinet.net/*", "*ticketmaster.sg/js/adblock*", "*.googlesyndication.com/*", "*treasuredata.com/*", "*play.google.com/log?*", "*www.youtube.com/youtubei/v1/player/heartbeat*", "*tixcraft.com/js/analytics.js*", "*ticketmaster.sg/js/adblock.js*", "*img.uniicreative.com/*", "*cdn.cookielaw.org/*", "*tixcraft.com/js/custom.js*", "*tixcraft.com/js/common.js*", "*cdnjs.cloudflare.com/ajax/libs/clipboard.js/*"]}
|
|
@ -1 +1 @@
|
|||
{"homepage": "https://tixcraft.com", "browser": "chrome", "language": "\u7e41\u9ad4\u4e2d\u6587", "ticket_number": 2, "ocr_captcha": {"enable": true, "beta": true, "force_submit": true, "image_source": "canvas"}, "webdriver_type": "undetected_chromedriver", "date_auto_select": {"enable": true, "date_keyword": "", "mode": "random"}, "area_auto_select": {"enable": true, "mode": "random", "area_keyword": ""}, "keyword_exclude": "\"\u8f2a\u6905\",\"\u8eab\u969c\",\"\u8eab\u5fc3 \u969c\u7919\",\"Restricted View\",\"\u71c8\u67f1\u906e\u853d\",\"\u8996\u7dda\u4e0d\u5b8c\u6574\"", "kktix": {"auto_press_next_step_button": true, "auto_fill_ticket_number": true}, "tixcraft": {"pass_date_is_sold_out": true, "auto_reload_coming_soon_page": true}, "advanced": {"play_sound": {"ticket": true, "order": true, "filename": "ding-dong.wav"}, "tixcraft_sid": "", "ibonqware": "", "facebook_account": "", "kktix_account": "", "fami_account": "", "cityline_account": "", "urbtix_account": "", "hkticketing_account": "", "kham_account": "", "ticket_account": "", "udn_account": "", "ticketplus_account": "", "facebook_password": "", "kktix_password": "", "fami_password": "", "urbtix_password": "", "cityline_password": "", "hkticketing_password": "", "kham_password": "", "ticket_password": "", "udn_password": "", "ticketplus_password": "", "facebook_password_plaintext": "", "kktix_password_plaintext": "", "fami_password_plaintext": "", "urbtix_password_plaintext": "", "cityline_password_plaintext": "", "hkticketing_password_plaintext": "", "kham_password_plaintext": "", "ticket_password_plaintext": "", "udn_password_plaintext": "", "ticketplus_password_plaintext": "", "chrome_extension": true, "disable_adjacent_seat": false, "hide_some_image": false, "block_facebook_network": false, "headless": false, "verbose": false, "auto_guess_options": true, "user_guess_string": "", "remote_url": "\"http://127.0.0.1:16888/\"", "auto_reload_page_interval": 0.4, "reset_browser_interval": 0, "max_dwell_time": 60, "proxy_server_port": "", "window_size": "480,1024,2", "idle_keyword": "", "resume_keyword": "", "idle_keyword_second": "", "resume_keyword_second": ""}}
|
||||
{"homepage": "https://tixcraft.com", "browser": "chrome", "language": "\u7e41\u9ad4\u4e2d\u6587", "ticket_number": 2, "ocr_captcha": {"enable": true, "beta": true, "force_submit": true, "image_source": "canvas"}, "webdriver_type": "undetected_chromedriver", "date_auto_select": {"enable": true, "date_keyword": "", "mode": "random"}, "area_auto_select": {"enable": true, "mode": "random", "area_keyword": ""}, "keyword_exclude": "\"\u8f2a\u6905\",\"\u8eab\u969c\",\"\u8eab\u5fc3 \u969c\u7919\",\"Restricted View\",\"\u71c8\u67f1\u906e\u853d\",\"\u8996\u7dda\u4e0d\u5b8c\u6574\"", "kktix": {"auto_press_next_step_button": true, "auto_fill_ticket_number": true}, "tixcraft": {"pass_date_is_sold_out": true, "auto_reload_coming_soon_page": true}, "advanced": {"play_sound": {"ticket": true, "order": true, "filename": "ding-dong.wav"}, "tixcraft_sid": "", "ibonqware": "", "facebook_account": "", "kktix_account": "", "fami_account": "", "cityline_account": "", "urbtix_account": "", "hkticketing_account": "", "kham_account": "", "ticket_account": "", "udn_account": "", "ticketplus_account": "", "facebook_password": "", "kktix_password": "", "fami_password": "", "urbtix_password": "", "cityline_password": "", "hkticketing_password": "", "kham_password": "", "ticket_password": "", "udn_password": "", "ticketplus_password": "", "facebook_password_plaintext": "", "kktix_password_plaintext": "", "fami_password_plaintext": "", "urbtix_password_plaintext": "", "cityline_password_plaintext": "", "hkticketing_password_plaintext": "", "kham_password_plaintext": "", "ticket_password_plaintext": "", "udn_password_plaintext": "", "ticketplus_password_plaintext": "", "chrome_extension": true, "disable_adjacent_seat": false, "hide_some_image": false, "block_facebook_network": false, "headless": false, "verbose": false, "auto_guess_options": true, "user_guess_string": "", "remote_url": "\"http://127.0.0.1:16888/\"", "auto_reload_page_interval": 0.0, "reset_browser_interval": 0, "kktix_status_api": false, "max_dwell_time": 60, "proxy_server_port": "", "window_size": "480,1024,0", "idle_keyword": "", "resume_keyword": "", "idle_keyword_second": "", "resume_keyword_second": ""}}
|
|
@ -93,6 +93,10 @@ function kktix_ajax_return_register_info(register_info)
|
|||
if(settings) {
|
||||
auto_reload_page_interval = settings.advanced.auto_reload_page_interval;
|
||||
}
|
||||
// memory not able to release soon.
|
||||
if (auto_reload_page_interval < 0.23) {
|
||||
auto_reload_page_interval = 0.23;
|
||||
}
|
||||
const rootElement = document.documentElement;
|
||||
rootElement.remove();
|
||||
register_info=null;
|
||||
|
@ -198,9 +202,15 @@ storage.get('status', function (items)
|
|||
{
|
||||
if (items.status && items.status=='ON')
|
||||
{
|
||||
// DISABLE this feature, to reduce access log.
|
||||
//kktix_event_register_info();
|
||||
let kktix_status_api = false;
|
||||
if(settings) {
|
||||
kktix_status_api = settings.advanced.kktix_status_api;
|
||||
}
|
||||
if(kktix_status_api) {
|
||||
kktix_event_register_info();
|
||||
} else {
|
||||
kktix_force_auto_reload_by_timer();
|
||||
}
|
||||
} else {
|
||||
//console.log('maxbot status is not ON');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue