Skip to content

Instantly share code, notes, and snippets.

@victorjonsson
Created December 13, 2021 16:58
Show Gist options
  • Save victorjonsson/ff9f8ef010178812707dcee98f218b3f to your computer and use it in GitHub Desktop.
Save victorjonsson/ff9f8ef010178812707dcee98f218b3f to your computer and use it in GitHub Desktop.
document.write(
[...document.querySelectorAll('img')]
.filter(node => node.src?.indexOf('qa.jollyroom.se') > -1)
.map(node => node.src.split('?')[0].replace('qa.jollyroom.se', 'qa.jollyroom.shimmercat.cloud'))
.map(shimmerCatSrc => '<img src="'+shimmerCatSrc+'">').join('')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment