Created
January 14, 2014 23:30
-
-
Save sanx/8428043 to your computer and use it in GitHub Desktop.
get lengths of the strings following a "=" sign on all anchor elements in a page, sorted by descending string length
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 characters
Array.prototype.slice.call(document.querySelectorAll("a")).map(function(a){return a.href.split('=')[1].length}).sort().reverse(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment