海不眠博客 - Mirages
type: channel
link: https://www.catiz.cn/tag/Mirages/
items: Mirages主题的美化记录

Mirages主题的美化记录
type: item
date: 2020-01-25T03:07:00+00:00
description: 点击页面彩色爱心特效在网站的前引入以下 JavaScript 代码eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('!2(e,t,a){2 r(){1j(6 e=0;e<s.1d;e++)s[e].9<=0?(t.P.11(s[e].v),s.1h(e,1)):(s[e].y--,s[e].4+=.12,s[e].9-=.1c,s[e].v.O.N="M:"+s[e].x+"D;C:"+s[e].y+"D;1b:"+s[e].9+";b:4("+s[e].4+","+s[e].4+") 7(8);p:"+s[e].B+";z-1n:1o");u(r)}2 n(){6 t="2"==13 e.l&&e.l;e.l=2(e){t&&t(),o(e)}}2 o(e){6 a=t.A("1e");a.1f="3",s.1i({v:a,x:e.1r-5,y:e.1m-5,4:1,9:1,B:c()}),t.P.q(a)}2 i(e){6 a=t.A("O");a.1p="R/S";T{a.q(t.U(e))}V(t){a.W.N=e}t.X("Y")[0].q(a)}2 c(){Z"10("+~~(k*j.h())+","+~~(k*j.h())+","+~~(k*j.h())+")"}6 s=[];e.u=e.u||e.14||e.15||e.16||e.17||2(e){18(e,19/1a)},i(".3{E: F;w: F;G: H;p: #1g;b: 7(8);-I-b: 7(8);-J-b: 7(8);}.3:K,.3:L{1l: \'\';E: g;w: g;p: g;f-d: m%;-I-f-d: m%;-J-f-d: m%;G: H;}.3:K{C: -Q;}.3:L{M: -Q;}"),n(),r()}(1q,1k);',62,90,'||function|heart|scale||var|rotate|45deg|alpha||transform||radius||border|inherit|random||Math|255|onclick|50|||background|appendChild||||requestAnimationFrame|el|height||||createElement|color|top|px|width|10px|position|fixed|webkit|moz|after|before|left|cssText|style|body|5px|text|css|try|createTextNode|catch|styleSheet|getElementsByTagName|head|return|rgb|removeChild|004|typeof|webkitRequestAnimationFrame|mozRequestAnimationFrame|oRequestAnimationFrame|msRequestAnimationFrame|setTimeout|1e3|60|opacity|013|length|div|className|f00|splice|push|for|document|content|clientY|index|99999|type|window|clientX'.split('|'),0,{}))添加代码 Mac 风格高亮插件下载插件下载后修改CSS JS，所以我仅修改了WhiteMac.css和GrayMac.css文件，修改后的CSS代码如下WhiteMac.csscode[class*="language-"],pre[class*="language-"]{background:#f3f3f3;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;text-align:left;white-space:pre;word-spacing:normal;word-break…