Last active
March 28, 2020 19:47
-
-
Save jaskiratr/21a5f1cd5de276c7e29c87322e2edc3c to your computer and use it in GitHub Desktop.
Revisions
-
jaskiratr revised this gist
Oct 12, 2016 . 1 changed file with 1 addition and 1 deletion.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 @@ -1,4 +1,4 @@ // Step 1: Type this in your browser console var script = document.createElement('script'); script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"; document.getElementsByTagName('head')[0].appendChild(script); -
jaskiratr renamed this gist
Oct 12, 2016 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jaskiratr created this gist
Oct 12, 2016 .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,24 @@ // Step 1: Type this in you console var script = document.createElement('script'); script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js"; document.getElementsByTagName('head')[0].appendChild(script); // Wait for a second //Step 2: Run the following var elements = $(".card .face-front img"); elements = elements.sort(function(a, b) { if (a.src > b.src) { return 1 } if (a.src < b.src) { return -1 } return 0; }); elements.each(function(i,value) { setTimeout(function() { $(value).click(); }, i * 1000 + 1000); });