1
javascript:(function() { if($('#emoticon-selector').css('display') != 'block') { alert('未開啟表符欄'); return; } let emo_group_id = $('#emoticon-tabs .current').attr('emo-group-id'); if(typeof(emo_group_id) == 'undefined') { alert('只能下載自訂表符'); return; } let blob = new Blob([JSON.stringify(EmoticonCustom.getEmoticons()[emo_group_id], null, '\t')], {type: 'text/plain', charset: 'utf-8'}); let download = $('<a download="打包表符"></a>')[0]; if (window.webkitURL != null) { download.href = window.webkitURL.createObjectURL(blob); } else { download.href = window.URL.createObjectURL(blob); } download.click(); })()