I’m setting up a pretty insignificant script to be run from bookmark bar in google chrome. The script is supposed to automatically upload a specified page at a specified interval.
I came up with the main part already, thing is that most of the time the script is going to run in a “new tab” page in google chrome (“chrome://newtab” or “chrome://new-tab-page” to be exact) and the location.href function I set up in the script doesn’t work.
It seems that the script has some difficulties with switching from a chrome:// to http:// protocol, as if location.href didn’t support it.
What can I do? I tried to look into the chrome proprietary functions but I didn’t get much. I already look up for previous topics but didn’t find any, it’s a pretty peculiar subject.
Thanks
here’s the script
javascript: (()=>{location.href="http://PAGE";timer1 = setInterval(
function(){location.href="PAGE"},5*60*1000);})();