Skip to content

Instantly share code, notes, and snippets.

@tailriver
Created January 21, 2012 05:48
Show Gist options
  • Save tailriver/1651602 to your computer and use it in GitHub Desktop.
Save tailriver/1651602 to your computer and use it in GitHub Desktop.
Bookmarklet of Matrix authorization for Tokyo Tech Portal
javascript:(function(){var c='AAAAAAABBBBBBBCCCCCCCDDDDDDDEEEEEEEFFFFFFFGGGGGGGHHHHHHHIIIIIIIJJJJJJJ';var r=document.body.innerHTML.match(/\[\w,\d\]/g);for(var i=0;i<r.length;i++){document.getElementsByName('message'+(i+3))[0].value=c.charAt(7*(r[i].charCodeAt(1)-String("A").charCodeAt(0))+(r[i].charAt(3)-1));}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment