Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript:elms=document.getElementsByName("profileChooserItems")[0];var tmpElms = [];var tmpElmsObj = {};elmsClass=document.getElementsByClassName('_1pu0');for (i=0;i<elmsClass.length;i++){var id = elmsClass[i].getAttribute("data-reactid");var classActive = elmsClass[i].getElementsByClassName('_1pu2')[0];classActive.className = "_1pu2 _1pu3";classActive.setAttribute('aria-checked', true);id = id.split(':');id = id[1].slice(1);tmpElmsObj[id] = 1;tmpElms.push(id);}document.getElementsByName('profileChooserItems')[0].value=JSON.stringify(tmpElmsObj);void(0);
Add Comment
Please, Sign In to add comment