I made a function that collects forecast information from a certain website. When I am on the website and call the function from the console of Chrome Browser it works perfectly. However, I want to automate the process and call the function whenever this certain webpage is loaded. I thought of building a Chrome extension but I am new to this. So is there any possible way to attach a JS function to the browser? I don't own the webpage so I can only access its information from the DevTools of Chrome. Sorry if it's a duplicate topic but I couldn't find one that answers my question.
Thanks in advance.