For example, if i want the browser to run through and load stack overflow's pages, how do I set up the code in Tampermonkey?
Here is what I have:
// ==UserScript==
// ==/UserScript==
let x = 5;
//x is the max number of pages i want to load
let link ="https://stackoverflow.com/questions/"
for(let i = 1; i<x; i++){
let newLink = link + i;
window.location.href = newLink;
}
I have no idea if the code runs correctly or not since I didn't find the console. And I do want the browser to have my cookies loaded.