$('img').each(function() { if (this.src.indexOf('larger') !== -1) { var normalized = this.src.replace('larger', 'normalized'); console.log('found', normalized); window.open(normalized); }; });
I don't have any experience. I found this snippet and tried to run it but I kept getting Uncaught TypeError: Cannot read property 'each' of null. Now it's more about why I couldn't figure this out.
1.4m articles
1.4m replys
5 comments
56.9k users