fb-friends-bookmarklet
fb-friends-bookmarklet copied to clipboard
Updated Bookmarklet.js
Way of fetching User's ID is changed since No JSON Object 'Env' was available
+1
Really expecting this fix.
I had a workaround on this, but your solution is better.
var uidDom = document.querySelector('a[data-testid]')||(document.getElementById('userNav')).childNodes[0].childNodes[0].childNodes[0];
var uidDomJson = uidDom.getAttribute('data-gt');
if (!(typeof uidDomJson != 'undefined' && uidDomJson)) {
alert('Your browser is not supported! Please contact the author.');
}
var uidData = JSON.parse(uidDomJson);
var uid = uidData.bmid;