2024-04-12, update for cityline

master
Your Name 2024-03-28 11:13:31 +08:00
parent 9f79ea672a
commit 67b86ebaee
7 changed files with 38 additions and 9 deletions

View File

@ -42,7 +42,7 @@ try:
except Exception as exc:
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_CONFIG_FILE = "settings.json"

View File

@ -23,8 +23,8 @@ import sys
import threading
import webbrowser
CONST_APP_VERSION = "MaxBot (2024.03.11)"
s
CONST_APP_VERSION = "MaxBot (2024.03.12)"
CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json"
CONST_MAXBOT_CONFIG_FILE = "settings.json"

View File

@ -11,7 +11,7 @@ import requests
import asyncio
import nodriver as uc
CONST_APP_VERSION = "MaxBot (2024.03.11)"
CONST_APP_VERSION = "MaxBot (2024.03.12)"
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"

View File

@ -29,7 +29,7 @@ from datetime import datetime
import requests
CONST_APP_VERSION = "MaxBot (2024.03.11)"
CONST_APP_VERSION = "MaxBot (2024.03.12)"
CONST_MAXBOT_CONFIG_FILE = "settings.json"
CONST_MAXBOT_KKTIX_CONFIG_FILE = "kktix.json"

View File

@ -50,7 +50,7 @@ try:
except Exception as exc:
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_CONFIG_FILE = "settings.json"

View File

@ -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()
{
let settings = JSON.parse($("#settings").html());
@ -27,6 +46,12 @@ function begin()
$(".btn_cta").prop('disabled', false).trigger("click");
}, 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()

View File

@ -306,7 +306,9 @@
},
{
"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",
"js": [
@ -316,7 +318,9 @@
},
{
"matches": [
"https://msg.cityline.com/*"
"https://msg.cityline.com/*",
"https://*.cityline.com/utsvInternet/*/home?lang=TW",
"https://event.cityline.com/"
],
"run_at": "document_end",
"world": "MAIN",
@ -413,5 +417,5 @@
]
}
],
"version": "1.0.16"
"version": "1.0.17"
}