I would like build a customs predefined java script that will performed a series of actions On 2 different websites.
However my issue is that when I use a redirect
window.location.href
The next command in the script will not be performed. I am using Tampermonkey extension to perform the script For example I’m using the following script
however, the script will never get to the second alert I asked a similar question on the following thread
Simulate mouse clicks in JavaScript in Chrome
How can I work around the window.location.href?
(function() {
'use strict';
alert('alert1');
window.location.href = ("http://www.w3schools.com");
alert('alert2’);
})();