Skip to content

Instantly share code, notes, and snippets.

@joshje
Last active December 19, 2015 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshje/5973941 to your computer and use it in GitHub Desktop.
Save joshje/5973941 to your computer and use it in GitHub Desktop.
Reveal product codes on IKEA shopping list (http://www.ikea.com/webapp/wcs/stores/servlet/InterestItemDisplay)
(function() {
var l = document.querySelectorAll('.prodInfoContainer a');
for (i=0; i<l.length; i++) {
s = document.createElement('span');
s.innerHTML = l[i].href.replace(/[^0-9]/,'') + '<br>';
l[i].appendChild(s);
}
}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment