Skip to content

Instantly share code, notes, and snippets.

@J2TEAM
Last active February 26, 2017 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save J2TEAM/adeba4c1f3a2826941bfc7e7957d82bb to your computer and use it in GitHub Desktop.
Save J2TEAM/adeba4c1f3a2826941bfc7e7957d82bb to your computer and use it in GitHub Desktop.
Get all groups
// Developed by Juno_okyo
(function(){try{var b=[];Array.from(document.getElementById("GroupDiscoverCard_admin").querySelectorAll("li ._266w > a")).map(function(a){b.push({id:a.getAttribute("data-hovercard").substr(33),name:a.textContent})});copy(JSON.stringify(b))}catch(a){console.error(a.message)}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment