update for kham/ticket/ticket-plus

master
unknown 2024-01-04 17:46:18 +08:00
parent 636b129546
commit fcd6ca1beb
6 changed files with 47 additions and 4 deletions

View File

@ -0,0 +1,4 @@
$a_btn=$("#content").find("table.eventTABLE > tbody > tr > td > a > button[onclick]");
if($a_btn.length==1) {
$a_btn.click();
}

View File

@ -0,0 +1,5 @@
$a_btn=$("#content").find("p > a > button[onclick]");
if($a_btn.length>0) {
$click_event=$a_btn.attr("onclick");
$a_btn.click();
}

View File

@ -0,0 +1,4 @@
$a_btn=$("#portfolio").find("div.description > table.table > tbody > tr > td > button[onclick]");
if($a_btn.length==1) {
$a_btn.click();
}

View File

@ -0,0 +1,5 @@
$a_btn=$("#portfolio").find("a[onclick]");
if($a_btn.length>0) {
$click_event=$a_btn.attr("onclick");
$a_btn.click();
}

View File

@ -26415,13 +26415,14 @@ function get_event_status_core(real_event_id, real_session_id) {
chrome.storage.local.set({'ticketplus_last_status': real_session_id + "-FAIL" });
location.reload();
}
console.log("retry_count:"+retry_count);
//console.log("retry_count:"+retry_count);
if(data.result.session[0].status=="onsale") {
chrome.storage.local.set({'ticketplus_last_status': real_session_id + "-OK" });
if(last_status==real_session_id + "-FAIL") {
// no need to check last status if "run_at": "document_start".
//if(last_status==real_session_id + "-FAIL") {
location.reload();
}
//}
}
})
.fail(function() {

View File

@ -70,11 +70,35 @@
"run_at": "document_end",
"js" : [ "jquery.min.js", "js/tixcraft_home.js" ]
},
{
"matches" : [ "https://ticket.com.tw/application/UTK02/UTK0201_.aspx?PRODUCT_ID=*" ],
"run_at": "document_end",
"world": "MAIN",
"js" : [ "jquery.min.js", "js/ticket_event_home.js" ]
},
{
"matches" : [ "https://ticket.com.tw/application/UTK02/UTK0201_00.aspx?PRODUCT_ID=*" ],
"run_at": "document_end",
"world": "MAIN",
"js" : [ "jquery.min.js", "js/ticket_date.js" ]
},
{
"matches" : [ "https://ticket.com.tw/application/UTK02/UTK0204_.aspx?*" ],
"run_at": "document_end",
"js" : [ "jquery.min.js", "js/ticket_area.js" ]
},
{
"matches" : [ "https://kham.com.tw/application/UTK02/UTK0201_.aspx?PRODUCT_ID=*" ],
"run_at": "document_end",
"world": "MAIN",
"js" : [ "jquery.min.js", "js/kham_event_home.js" ]
},
{
"matches" : [ "https://kham.com.tw/application/UTK02/UTK0201_00.aspx?PRODUCT_ID=*" ],
"run_at": "document_end",
"world": "MAIN",
"js" : [ "jquery.min.js", "js/kham_date.js" ]
},
{
"matches" : [ "https://kham.com.tw/application/UTK02/UTK0204_.aspx?*" ],
"run_at": "document_end",
@ -104,7 +128,7 @@
"matches" : [
"https://ticketplus.com.tw/order/*"
],
"run_at": "document_end",
"run_at": "document_start",
"js" : [ "jquery.min.js", "js/ticketplus_order.js"]
},
{