I am building a chrome extension in React for WhatsApp and I want to run the content script only after the user has logged in. I tried several methods like going into the manifest.json file and writing "run_at": "document_end". Also, I tried adding window.addEventListener ("load"); in the content.tsx but none of them seems to work.
If anyone knows how can i achieve the desired result please let me know Thanks!