Last active
August 29, 2015 14:15
-
-
Save rissole/4c46e7301d0a172afa66 to your computer and use it in GitHub Desktop.
Make tiny text gags. Just run in console then use tinytext('string') to make tiny. Only input lowercase letters a-z or space. q doesn't work either.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
small = 'ᵃ ᵇ ᶜ ᵈ ᵉ ᶠ ᵍ ʰ ⁱ ʲ ᵏ ˡ ᵐ ⁿ ᵒ ᵖ q ʳ ˢ ᵗ ᵘ ᵛ ʷ ˣ ʸ ᶻ'.split(' '); tinytext = function(s) { return s.split('').map(function(c) { return c == ' ' ? ' ' : small[c.charCodeAt(0)-97] }).join('') } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment