GoatSalad / megukascript

Userscript for the meguca imageboard
5 stars 3 forks source link

support unicode for secretposting #33

Closed dasdgdafg closed 6 years ago

dasdgdafg commented 6 years ago

Using unescape(encodeURIComponent(...)) and decodeURIComponent(escape(...)) to encode/decode the unicode to bytes, then the bytes are encoded in hex just like before. I moved the onclick function out of a string so it would look nicer.