Created
December 1, 2012 09:13
-
-
Save NeilHanlon/4181240 to your computer and use it in GitHub Desktop.
This file contains 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
document.body.innerHTML = document.body.innerHTML.toString().match(/\[\"OrderedFriendsListInitialData\"\,\[\]\,\{\"list\"\:\[\"([0-9]*?)\"\,\"([0-9]*?)\"\,\"([0-9]*?)\"\,\"([0-9]*?)\"\,\"([0-9]*?)\"\,\"([0-9]*?)\"\,\"([0-9]*?)\"\,\"([0-9]*?)\"\,\"([0-9]*?)\"\,\"([0-9]*?)\"/g)[0].replace(/\[\"OrderedFriendsListInitialData\"\,\[\]\,\{\"list\"\:\[\"([\d]*?)\"\,\"([\d]*?)\"\,\"([\d]*?)\"\,\"([\d]*?)\"\,\"([\d]*?)\"\,\"([\d]*?)\"\,\"([\d]*?)\"\,\"([\d]*?)\"\,\"([\d]*?)\"\,\"([\d]*?)\"/g,'<a href="http://facebook.com/$1">$1</a><br><a href="http://facebook.com/$2">$2</a><br><a href="http://facebook.com/$3">$3</a><br><a href="http://facebook.com/$4">$4</a><br><a href="http://facebook.com/$5">$5</a><br><a href="http://facebook.com/$6">$6</a><br><a href="http://facebook.com/$7">$7</a><br><a href="http://facebook.com/$8">$8</a><br><a href="http://facebook.com/$9">$9</a><br><a href="http://facebook.com/$10">$10</a><br>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
Chrome:
Firefox: (latest version?)
Safari should be the same as chrome
I'm not providing instructions for IE...
If all else fails, typing "javascript:
" (sans quotes, replacing
with the javascript code), into your address bar while on facebook and pressing enter has the exact same effect.