update for kham/ticket/ticket-plus
parent
636b129546
commit
fcd6ca1beb
|
@ -0,0 +1,4 @@
|
||||||
|
$a_btn=$("#content").find("table.eventTABLE > tbody > tr > td > a > button[onclick]");
|
||||||
|
if($a_btn.length==1) {
|
||||||
|
$a_btn.click();
|
||||||
|
}
|
|
@ -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();
|
||||||
|
}
|
|
@ -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();
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
$a_btn=$("#portfolio").find("a[onclick]");
|
||||||
|
if($a_btn.length>0) {
|
||||||
|
$click_event=$a_btn.attr("onclick");
|
||||||
|
$a_btn.click();
|
||||||
|
}
|
|
@ -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" });
|
chrome.storage.local.set({'ticketplus_last_status': real_session_id + "-FAIL" });
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
console.log("retry_count:"+retry_count);
|
//console.log("retry_count:"+retry_count);
|
||||||
if(data.result.session[0].status=="onsale") {
|
if(data.result.session[0].status=="onsale") {
|
||||||
chrome.storage.local.set({'ticketplus_last_status': real_session_id + "-OK" });
|
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();
|
location.reload();
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.fail(function() {
|
.fail(function() {
|
||||||
|
|
|
@ -70,11 +70,35 @@
|
||||||
"run_at": "document_end",
|
"run_at": "document_end",
|
||||||
"js" : [ "jquery.min.js", "js/tixcraft_home.js" ]
|
"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?*" ],
|
"matches" : [ "https://ticket.com.tw/application/UTK02/UTK0204_.aspx?*" ],
|
||||||
"run_at": "document_end",
|
"run_at": "document_end",
|
||||||
"js" : [ "jquery.min.js", "js/ticket_area.js" ]
|
"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?*" ],
|
"matches" : [ "https://kham.com.tw/application/UTK02/UTK0204_.aspx?*" ],
|
||||||
"run_at": "document_end",
|
"run_at": "document_end",
|
||||||
|
@ -104,7 +128,7 @@
|
||||||
"matches" : [
|
"matches" : [
|
||||||
"https://ticketplus.com.tw/order/*"
|
"https://ticketplus.com.tw/order/*"
|
||||||
],
|
],
|
||||||
"run_at": "document_end",
|
"run_at": "document_start",
|
||||||
"js" : [ "jquery.min.js", "js/ticketplus_order.js"]
|
"js" : [ "jquery.min.js", "js/ticketplus_order.js"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue