this is the answer to the @ChipSkylark question asked in discord
JavaScript:
await Delay(3000);
await WaitForLoading();
while ( await EvaluateScript("! window.location.href.includes('some_url_part')") ) {
await ClickRandomInternalLink(true);
await Delay(Random(5000,7000));
await WaitForLoading();
}
//do_something
Exit();