Skip to content

Instantly share code, notes, and snippets.

@yanknudtskov
Created August 4, 2022 21:18
Show Gist options
  • Save yanknudtskov/76f2652f6ff62781e06a62656878bd0b to your computer and use it in GitHub Desktop.
Save yanknudtskov/76f2652f6ff62781e06a62656878bd0b to your computer and use it in GitHub Desktop.
var urls = [];
var selector = "span.run > a";
var base_url = "https://baseurl.com";
jQuery( selector ).each( function() {
urls.push(base_url + jQuery(this).attr('href'));
});
for (let i = 0; i < urls.length; i++) {
window.open(urls[i]);
};
location.reload();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment