Created
August 20, 2015 06:56
-
-
Save nikhilw/7b297e8aad1d197c000f to your computer and use it in GitHub Desktop.
Revisions
-
nikhilw created this gist
Aug 20, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ $(".display-price").each(function(i, app) { if (parseInt($(app).text().replace(/Rs\.\s/gi, "")) < 50) { var appDetails = $(app).parents(".details").find(".title"); if (appDetails.attr("title")) { console.log(appDetails.attr("title") + ": https://play.google.com/" + appDetails.attr("href")) // Or even: window.open() } } }); //important parts: //$(".display-price") //var pr = $(".display-price")[0] //parseInt($(pr).text().replace(/Rs\.\s/gi, "")) //$(pr).parents(".details").find(".title")