How to hide everything before page load with Chrome Extension

后端 未结 3 2139
夕颜
夕颜 2021-01-14 22:32

I tried using content scripts

manifest

\"content_scripts\": [
    {
        \"matches\": [\"*://*/*\"],
        \"js\": [\"js/content_sc         


        
3条回答
  •  深忆病人
    2021-01-14 23:04

    Since you don't want to delete the data and just hide everything, use :

    document.body.style.visibility="hidden";
    

    This will hide all the stuff from the page.

提交回复
热议问题