2024-02-07, cityline auto click go to purchase
parent
8c51f5338d
commit
614efe9a4c
|
@ -41,7 +41,7 @@ try:
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.02.06)"
|
CONST_APP_VERSION = "MaxBot (2024.02.07)"
|
||||||
|
|
||||||
CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt"
|
CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt"
|
||||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||||
|
@ -8497,6 +8497,7 @@ def cityline_main(driver, url, config_dict):
|
||||||
# https://www.cityline.com/Login.html?targetUrl=https%3A%2F%2F
|
# https://www.cityline.com/Login.html?targetUrl=https%3A%2F%2F
|
||||||
# ignore url redirect
|
# ignore url redirect
|
||||||
if '/Login.html' in url:
|
if '/Login.html' in url:
|
||||||
|
cityline_account = config_dict["advanced"]["cityline_account"]
|
||||||
cityline_password = config_dict["advanced"]["cityline_password_plaintext"].strip()
|
cityline_password = config_dict["advanced"]["cityline_password_plaintext"].strip()
|
||||||
if cityline_password == "":
|
if cityline_password == "":
|
||||||
cityline_password = decryptMe(config_dict["advanced"]["cityline_password"])
|
cityline_password = decryptMe(config_dict["advanced"]["cityline_password"])
|
||||||
|
|
|
@ -22,7 +22,7 @@ import sys
|
||||||
import threading
|
import threading
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.02.06)"
|
CONST_APP_VERSION = "MaxBot (2024.02.07)"
|
||||||
|
|
||||||
CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json"
|
CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json"
|
||||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||||
|
|
|
@ -48,7 +48,7 @@ try:
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.02.06)"
|
CONST_APP_VERSION = "MaxBot (2024.02.07)"
|
||||||
|
|
||||||
CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt"
|
CONST_MAXBOT_ANSWER_ONLINE_FILE = "MAXBOT_ONLINE_ANSWER.txt"
|
||||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
var myInterval = null;
|
||||||
|
|
||||||
|
function dom_ready()
|
||||||
|
{
|
||||||
|
let ret=false;
|
||||||
|
if($("#buyTicketBtn").length>0) {
|
||||||
|
ret=true;
|
||||||
|
if(myInterval) clearInterval(myInterval);
|
||||||
|
|
||||||
|
(function () {
|
||||||
|
console.log($("#buyTicketBtn").length);
|
||||||
|
if($("#buyTicketBtn").length) {
|
||||||
|
console.log("clicking");
|
||||||
|
$("#buyTicketBtn").trigger("click");
|
||||||
|
//go();
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
|
||||||
|
}
|
||||||
|
console.log("dom_ready:"+ret);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!dom_ready()) {
|
||||||
|
myInterval = setInterval(() => {
|
||||||
|
dom_ready();
|
||||||
|
}, 100);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -336,6 +336,20 @@
|
||||||
"js/cityline_event_common.js"
|
"js/cityline_event_common.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"matches": [
|
||||||
|
"https://shows.cityline.com/tc/*",
|
||||||
|
"https://priority.cityline.com/tc/*",
|
||||||
|
"https://shows.cityline.com/en/*",
|
||||||
|
"https://priority.cityline.com/en/*"
|
||||||
|
],
|
||||||
|
"run_at": "document_end",
|
||||||
|
"world": "MAIN",
|
||||||
|
"js": [
|
||||||
|
"jquery.min.js",
|
||||||
|
"js/cityline_shows_buy_front.js"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"matches": [
|
"matches": [
|
||||||
"https://ticketplus.com.tw/activity/*"
|
"https://ticketplus.com.tw/activity/*"
|
||||||
|
@ -399,5 +413,5 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version": "1.0.12"
|
"version": "1.0.14"
|
||||||
}
|
}
|
Loading…
Reference in New Issue