Skip to content

Instantly share code, notes, and snippets.

@joshje
Last active December 19, 2015 15:08
Show Gist options
  • Select an option

  • Save joshje/5973941 to your computer and use it in GitHub Desktop.

Select an option

Save joshje/5973941 to your computer and use it in GitHub Desktop.

Revisions

  1. joshje revised this gist Jul 11, 2013. 1 changed file with 8 additions and 6 deletions.
    14 changes: 8 additions & 6 deletions ikealist.js
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    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);
    }
    (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);
    }
    }();
  2. joshje revised this gist Jul 11, 2013. 1 changed file with 0 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions ikealist.css
    Original file line number Diff line number Diff line change
    @@ -1,3 +0,0 @@
    body {
    font-family: 'Comic Sans MS', 'Comic Sans', fantasy;
    }
  3. joshje revised this gist Jul 11, 2013. 2 changed files with 0 additions and 0 deletions.
    File renamed without changes.
    File renamed without changes.
  4. joshje created this gist Jul 11, 2013.
    3 changes: 3 additions & 0 deletions bookmarklet.css
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    body {
    font-family: 'Comic Sans MS', 'Comic Sans', fantasy;
    }
    6 changes: 6 additions & 0 deletions bookmarklet.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    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);
    }