Skip to content

Instantly share code, notes, and snippets.

@katai5plate
Created February 22, 2023 05:18
Show Gist options
  • Save katai5plate/29d87c9a0a1e7303f20f8532ad38b915 to your computer and use it in GitHub Desktop.
Save katai5plate/29d87c9a0a1e7303f20f8532ad38b915 to your computer and use it in GitHub Desktop.
Misskeyデコ文字ブックマークレット
javascript:console.log([...prompt("テキスト")??""].map(a=>{let o={あ:"_a",い:"_i",う:"_u",え:"_e",お:"_o",か:"_ka",き:"_ki",く:"_ku",け:"_ke",こ:"_ko",さ:"_sa",し:"_shi",す:"_su",せ:"_se",そ:"_so",た:"_ta",ち:"_ti",つ:"_tsu",て:"_te",と:"_to",な:"_na",に:"_ni",ぬ:"_nu",ね:"_ne",の:"_no",は:"_ha",ひ:"_hi",ふ:"_fu",へ:"_he",ほ:"_ho",ま:"_ma",み:"_mi",む:"_mu",め:"_me",も:"_mo",や:"_ya",ゆ:"_yu",よ:"_yo",ら:"_ra",り:"_ri",る:"_ru",れ:"_re",ろ:"_ro",わ:"_wa",を:"_wo",ん:"_n",が:"_ga",ぎ:"_gi",ぐ:"_gu",げ:"_ge",ご:"_go",ざ:"_za",じ:"_zi",ず:"_zu",ぜ:"_ze",ぞ:"_zo",だ:"_da",ぢ:"_di",づ:"_du",で:"_de",ど:"_do",ば:"_ba",び:"_bi",ぶ:"_bu",べ:"_be",ぼ:"_bo",ぱ:"_pa",ぴ:"_pi",ぷ:"_pu",ぺ:"_pe",ぽ:"_po",ぁ:"_la",ぃ:"_li",ぅ:"_lu",ぇ:"_le",ぉ:"_lo",ゃ:"_lya",ゅ:"_lyu",ょ:"_lyo",っ:"_ltsu","、":"_ten","。":"_maru","(":"_kkb",")":"_kka","(":"_kkb",")":"_kka",ー:"_wave","~":"_wave"}[a];return o?`:${o}:`:";"===a?"\n":`$[fg.color=00AFFF $[x2 $[position.y=0.3 ${a}]]]`}).join(""));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment