Skip to content

Instantly share code, notes, and snippets.

@pale2hall
Created June 21, 2023 16:52
Show Gist options
  • Save pale2hall/a83a7d67e95b31a180ef95a38602889d to your computer and use it in GitHub Desktop.
Save pale2hall/a83a7d67e95b31a180ef95a38602889d to your computer and use it in GitHub Desktop.
Open OWL Carousel Images in Tabs Bookmarklet
javascript:(function() {const owlItems = document.querySelectorAll('.owl-carousel .owl-item .carousel-item a');owlItems.forEach(item => { const onclickString = item.getAttribute('onclick'); const imageURL = onclickString.match(/window\.open\('(.+?)%27\)/)[1]; window.open(imageURL, %27_blank%27);});})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment