#How to include the content script and load after all the document is loaded Chrome extension Click the button and fill in the input. There is a run_at parameter of manifest.json that has 3 arguments (Run Time) but it doesn’t work as needed and we have to check manually using an ‘load’ event listener
1 2 3 4 5 |
window.addEventListener("load", myMain) function myMain (evt) { console.log('here we are'); } |
…