簡體   English   中英

通過JavaScript覆蓋Google Chrome擴展程序

[英]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)');
            }

謝謝!

可能嗎? 答:是和/或否。 在Web服務器端,您只能控制瀏覽器將允許您控制的內容。 簡單來說,這意味着您可以控制發送回數據的數據(HTML,javascript,標頭等)。 就是這樣

看看這個答案這個

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM