我来、直接上代码,上效果
书签脚本
浏览器书签栏
- ->右键
- 添加网页
- 名称输入字体解码,可以随便写
- 网址输入下面代码,点击保存
- 打开这个文件
我见春棠_files/我见春棠_files/indexv3.html
- 点击刚才添加书签脚本,就可以自动解码了
- Ctrl键+S键保存网页解码完成
代码
javascript:function fontDecoding(){const points=["7684","8FD9","4EBA","4EE5","8FDB","4E0A","4F5C","5176","5B66","80FD","6CD5","7406","6765","751F","4E2D","4E00","4E2A","4E0D","4E1A","6587","662F","63D0","4E4B","65F6","56FD","540C","5230","9AD8","4E86","5728","5927","548C","5BF9","6709","8981","4E3A","6211","53D1"];const indices=["一","人","大","文","生","高","上","不","业","个","中","为","之","了","以","作","其","到","发","同","和","国","在","学","对","我","提","时","是","有","来","法","理","的","能","要","这","进"];const decodeing=(text)=>{let target='';for(let i=0;i<text.length;i++){let code=text.charCodeAt(i).toString(16).toUpperCase();const find=points.findIndex(item=>item===code);if(find!=-1){target+=indices[find]}else{target+=text[i]}}return target};const els=[...document.querySelectorAll("#app > div > div.zhu > div > p")];els.forEach((el,index)=>{const text=el.innerText;const d=decodeing(text);el.innerText=decodeing(text);if(index===els.length-1){document.querySelector('.zhu').classList=[];alert('解码完成')}})}fontDecoding();