Greasy Fork is available in English.

ACGN-Stock股票事件監聽

監聽ACGN網頁變化並給予Addevent

لا ينبغي أن لا يتم تثبيت هذا السكريت مباشرة. هو مكتبة لسكبتات لتشمل مع التوجيه الفوقية // @require https://update.greasyfork.org/scripts/33945/223014/ACGN-Stock%E8%82%A1%E7%A5%A8%E4%BA%8B%E4%BB%B6%E7%9B%A3%E8%81%BD.js

المؤلف
Zoosewu
الإصدار
0.003
تم إنشاؤه
09-10-2017
تم تحديثه
10-10-2017
الترخيص
لا يوجد

本腳本僅供開發者使用,功能為監聽網頁變化並呼叫註冊的Callback
使用範例


(function(){
console.log("ACGN-Stock股票事件監聽");

//新增監聽
ACGNListener.AddCompanyListener(function(){console.log("AddCompanyListener");});
ACGNListener.AddStockSummaryListener(function(){console.log("AddStockSummaryListener");});
ACGNListener.AddAccountInfoListener(function(){console.log("AddAccountInfoListener");});
ACGNListener.AddFoundationListener(function(){console.log("AddFoundationListener");});

//註冊客製化事件,輸入網址辨識片段
let seasonalReportEventindex = ACGNListener.AddCutsomEvent(new BaseEvent(/seasonalReport/));
//新增客製化事件監聽
ACGNListener.AddCutsomListener(seasonalReportEventindex, function(){console.log("AddSeasonalReportListener");});
})();