Skip to content

Instantly share code, notes, and snippets.

@thinkjson
Created August 15, 2012 00:20
Show Gist options
  • Select an option

  • Save thinkjson/3354182 to your computer and use it in GitHub Desktop.

Select an option

Save thinkjson/3354182 to your computer and use it in GitHub Desktop.
Filter redbox list by rating (http://www.redbox.com/movies)
javascript:r=prompt("rating?");$(".box-wrapper").each(function(a,b){rb.api.product.getDetail(0+$(b).attr("key"),200,function(a){if(a.data.rating!=r){$(".box-wrapper[key='"+a.data.productRef+"']").remove()}else{console.log(a.data.name)}})})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment