i want to automate a task that executes everytime the page is reloaded. i tried running the code through console but it is not in effect once the page reloa