[英]Override a google chrome extension by javascript
如何使用JavaScript在Google chrome擴展的內部停止/覆蓋(我不知道覆蓋是否是正確的詞)? 還是捕獲擴展名的變量名?
例如,minerBlock擴展使用此腳本來捕獲共同礦工變量並停止它:
if( this[name]
&& typeof this[name] !== 'undefined'
&& typeof this[name].isRunning === 'function'
&& typeof this[name].stop === 'function'
&& typeof this[name]._siteKey === 'string'
) {
console.log('[+] Coinhive miner found, stopping...');
this[name].stop();
this[name] = null;
triggerMblockEvent('CoinHive (inline)');
}
謝謝!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.