Skip to content

Instantly share code, notes, and snippets.

@americodls
Created February 24, 2022 15:28
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 americodls/6a2b2c3e292ecfa81cb43900eb265b69 to your computer and use it in GitHub Desktop.
Save americodls/6a2b2c3e292ecfa81cb43900eb265b69 to your computer and use it in GitHub Desktop.
Convert Binary to ASCII
(function(e){r=arguments.callee;(e.children.length!==0)?Array.from(e.children).map(c=>r(c)):(m=e.textContent.match(/([01]{8})/g))&&(e.innerHTML=m.map(b=>String.fromCharCode(parseInt(b,2))).join(''))
})(document.body);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment