2024-04-12, update for cityline
parent
9f79ea672a
commit
67b86ebaee
|
@ -42,7 +42,7 @@ try:
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.03.11)"
|
CONST_APP_VERSION = "MaxBot (2024.03.12)"
|
||||||
|
|
||||||
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"
|
||||||
|
|
|
@ -23,8 +23,8 @@ import sys
|
||||||
import threading
|
import threading
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.03.11)"
|
CONST_APP_VERSION = "MaxBot (2024.03.12)"
|
||||||
s
|
|
||||||
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"
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ import requests
|
||||||
import asyncio
|
import asyncio
|
||||||
import nodriver as uc
|
import nodriver as uc
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.03.11)"
|
CONST_APP_VERSION = "MaxBot (2024.03.12)"
|
||||||
|
|
||||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||||
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
|
USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36"
|
||||||
|
|
|
@ -29,7 +29,7 @@ from datetime import datetime
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.03.11)"
|
CONST_APP_VERSION = "MaxBot (2024.03.12)"
|
||||||
|
|
||||||
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
CONST_MAXBOT_CONFIG_FILE = "settings.json"
|
||||||
CONST_MAXBOT_KKTIX_CONFIG_FILE = "kktix.json"
|
CONST_MAXBOT_KKTIX_CONFIG_FILE = "kktix.json"
|
||||||
|
|
|
@ -50,7 +50,7 @@ try:
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
CONST_APP_VERSION = "MaxBot (2024.03.11)"
|
CONST_APP_VERSION = "MaxBot (2024.03.12)"
|
||||||
|
|
||||||
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"
|
||||||
|
|
|
@ -1,3 +1,22 @@
|
||||||
|
function goEvent(){
|
||||||
|
if(urlThrottler.indexOf('https://event.cityline.com/')>-1) {
|
||||||
|
window.location.href = urlThrottler;
|
||||||
|
} else {
|
||||||
|
document.getElementById("multiple_tab_layout").innerHTML = 'start to retry';
|
||||||
|
|
||||||
|
var ddsScheduler = undefined;
|
||||||
|
var retryingMsg = "重試中...<br>Retrying...";
|
||||||
|
var retryingMsg2 = "重試中... Retrying...";
|
||||||
|
var enableAutoRetry = true;
|
||||||
|
var remainTime = 10;
|
||||||
|
var enableButtonTime = 7;
|
||||||
|
|
||||||
|
document.getElementById("busy_zone").innerHTML = '<button id="btn-retry-en-1" class="btn_cta" type="button" onclick="javascript:goEvent()">請重試 Retry<span id="remainTime1"></span></button>';
|
||||||
|
setTimeout(startCountDownTimer, 1000);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function begin()
|
function begin()
|
||||||
{
|
{
|
||||||
let settings = JSON.parse($("#settings").html());
|
let settings = JSON.parse($("#settings").html());
|
||||||
|
@ -27,6 +46,12 @@ function begin()
|
||||||
$(".btn_cta").prop('disabled', false).trigger("click");
|
$(".btn_cta").prop('disabled', false).trigger("click");
|
||||||
}, target_interval);
|
}, target_interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(window.IsDuplicate()) {
|
||||||
|
window.IsDuplicate = function () {return false;};
|
||||||
|
document.getElementById("busy_zone").innerHTML = '<button id="btn-retry-en-1" class="btn_cta" type="button" disabled="disabled" onclick="javascript:goEvent()">請重試 Retry<span id="remainTime1"></span></button>';
|
||||||
|
setTimeout(startCountDownTimer, 1000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function dom_ready()
|
function dom_ready()
|
||||||
|
|
|
@ -306,7 +306,9 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matches": [
|
"matches": [
|
||||||
"https://msg.cityline.com/*.html*"
|
"https://msg.cityline.com/*.html*",
|
||||||
|
"https://*.cityline.com/utsvInternet/*/home?lang=TW",
|
||||||
|
"https://event.cityline.com/"
|
||||||
],
|
],
|
||||||
"run_at": "document_end",
|
"run_at": "document_end",
|
||||||
"js": [
|
"js": [
|
||||||
|
@ -316,7 +318,9 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"matches": [
|
"matches": [
|
||||||
"https://msg.cityline.com/*"
|
"https://msg.cityline.com/*",
|
||||||
|
"https://*.cityline.com/utsvInternet/*/home?lang=TW",
|
||||||
|
"https://event.cityline.com/"
|
||||||
],
|
],
|
||||||
"run_at": "document_end",
|
"run_at": "document_end",
|
||||||
"world": "MAIN",
|
"world": "MAIN",
|
||||||
|
@ -413,5 +417,5 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version": "1.0.16"
|
"version": "1.0.17"
|
||||||
}
|
}
|
Loading…
Reference in New Issue