mycpen-blog 0.0.0-fibnucbndy → 0.0.0-ficveucsjd
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index.css +1 -1
- package/js/custom.js +1 -1
- package/js/fcircle.js +1 -1
- package/js/fcircle_manage_panel.js +3 -4
- package/js/home_page_swiper.js +1 -1
- package/js/people.js +1 -1
- package/js/random.js +1 -1
- package/js/random_friends_post.js +1 -1
- package/js/tianli_gpt.js +1 -1
- package/json/friend.json +1 -1
- package/json/link.json +1 -1
- package/manifest.json +1 -1
- package/music1/main.css +1 -1
- package/music1/manifest.json +2 -2
- package/package.json +1 -1
- package/search.xml +47 -47
- package/sitemap.xml +82 -82
- package/wechatOA/main.css +1 -1
package/js/custom.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var mycpen1js={changeNavPageNameTitle(){"Mycpen - Personal Blog"==document.title?document.getElementById("page-name").innerText=document.title:document.getElementById("page-name").innerText=document.title.split(" | Mycpen")[0]},getNavRightPagePercent(){let e=document.documentElement.scrollTop||window.pageYOffset,t=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-document.documentElement.clientHeight,n=Math.round(e/t*100),a=document.querySelector("#percent");n<=99||(n=99),a.innerHTML=n,r=window.scrollY+document.documentElement.clientHeight,p=document.getElementById("post-comment")||document.getElementById("footer"),p.offsetTop+p.offsetHeight/2<r||90<n?(document.querySelector("#nav-totop").classList.add("long"),a.innerHTML="返回顶部"):(document.querySelector("#nav-totop").classList.remove("long"),a.innerHTML=n)},share(){let e=window.location.origin+window.location.pathname;new ClipboardJS(".share",{text:function(){return"标题:"+document.title+"\n链接:"+e}}),btf.snackbarShow("复制成功")},getFooterRandomFlink(){var e={saveData:(e,t)=>{localStorage.setItem(e,JSON.stringify({time:Date.now(),data:t}))},loadData:(e,t)=>{let n=JSON.parse(localStorage.getItem(e));if(n){let e=Date.now()-n.time;if(e<60*t*1e3&&e>-1)return n.data}return 0},randomLink:()=>{let t=e.loadData("links",30);if(t){let e=document.querySelectorAll("#friend-links-in-footer .footer-item");if(!e.length)return;for(let n=0;n<3;n++){let a;do{a=parseInt(Math.random()*t.length)}while("失联"===t[a].tag);e[n].innerText=t[a].name,e[n].href=t[a].link,e[n].title=t[a].name,e[n].target="_blank",e[n].rel="noopener external nofollow noreferrer",t.splice(a,1)}}else fetch("https://jsd.cdn.zzko.cn/npm/mycpen-blog@0.0.0-fibnucbndy/json/link.json").then((e=>e.json())).then((t=>{e.saveData("links",t.link_list),e.randomLink()}))}};e.randomLink()},newYearCountdownCard(){(()=>{if(clearTimeout(null),!document.querySelector("#newYear"))return;let e=new Date(`${(new Date).getFullYear()+1}-01-01 00:00:00`).getTime()/1e3,t={0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"};!function(){let n=new Date,a=n.getMonth()+1,o=n.getDate();a=a>9?a:"0"+a,o=o>9?o:"0"+o,document.querySelector("#newYear .today").innerHTML=n.getFullYear()+"-"+a+"-"+o+" "+t[n.getDay()];let c=e-Math.round(n.getTime()/1e3);c<0?(document.querySelector("#newYear .title").innerHTML="Happy New Year!",document.querySelector("#newYear .newYear-time").innerHTML='<span class="happyNewYear">新年快乐</span>'):(document.querySelector("#newYear .title").innerHTML=`<i class="fa-solid fa-clock"></i> <span>距离</span> ${(new Date).getFullYear()+1} <span>年</span>`,document.querySelector("#newYear .newYear-time").innerHTML=`<span class="day">${Math.ceil(c/86400)}<span class="unit">天</span></span>`)}()})()},removeBodyPaceClass:function(){$("body").removeClass(),$("body").addClass("pace-done")},toPage:function(){var e=document.querySelectorAll(".page-number"),t=parseInt(e[e.length-1].innerHTML),n=document.getElementById("toPageText"),a=parseInt(n.value);if(!isNaN(a)&&a>0&&"0"!==(""+a)[0]&&a<=t){var o,c=window.location.href.replace(/\/page\/\d+\/$/,"/");o=1===a?c:c+(c.endsWith("/")?"":"/")+"page/"+a+"/",document.getElementById("toPageButton").href=o}},listenToPageInputPress(){var e=document.getElementById("toPageText"),t=document.getElementById("toPageButton");e&&(e.addEventListener("keydown",(e=>{13===e.keyCode&&(mycpen1js.toPage(),pjax.loadUrl(t.href))})),e.addEventListener("input",(function(){""===e.value||"0"===e.value?t.classList.remove("haveValue"):t.classList.add("haveValue");var n=document.querySelectorAll(".page-number"),a=+n[n.length-1].innerHTML;+document.getElementById("toPageText").value>a&&(e.value=a)})))},showConsole:function(){document.querySelector("#console").classList.add("show"),mycpen1js.initConsoleState()},hideConsole:function(){document.querySelector("#console").classList.remove("show")},hideAsideBtn:()=>{const e=document.documentElement.classList;e.contains("hide-aside")?saveToLocal.set("aside-status","show",2):saveToLocal.set("aside-status","hide",2),e.toggle("hide-aside"),e.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on")},initConsoleState:function(){document.documentElement.classList.contains("hide-aside")?document.querySelector("#consoleHideAside").classList.add("on"):document.querySelector("#consoleHideAside").classList.remove("on")},tagPageActive:function(){var e=window.location.pathname;if(/\/tags\/.*?\//.test(e=decodeURIComponent(e))){var t=e.split("/")[2];if(document.querySelector(".page .layout #tag #tag-page-tags")){$("a").removeClass("select");var n=document.getElementById("mycpen1-tags-page-cloudTags-"+t);n&&n.classList.add("select")}}},categoryPageActive:function(){var e=window.location.pathname;if(/\/categories\/.*?\//.test(e=decodeURIComponent(e))){var t=e.split("/")[2];if(document.querySelector(".page .layout #category #category-page-categories")){$("a").removeClass("select");var n=document.getElementById("mycpen1-categories-page-cloudCategories-"+t);n&&n.classList.add("select")}}},addRandomCommentInfo:function(){const e=["美丽的","英俊的","聪明的","勇敢的","可爱的","慷慨的","善良的","可靠的","开朗的","成熟的","稳重的","真诚的","幽默的","豁达的","有趣的","活泼的","优雅的","敏捷的","温柔的","温暖的","敬业的","细心的","耐心的","深沉的","朴素的","含蓄的","率直的","开放的","务实的","坚强的","自信的","谦虚的","文静的","深刻的","纯真的","朝气蓬勃的","慎重的","大方的","顽强的","迷人的","机智的","善解人意的","富有想象力的","有魅力的","独立的","好奇的","干净的","宽容的","尊重他人的","体贴的","守信的","有耐性的","有责任心的","有担当的","有远见的","有智慧的","有眼光的","有冒险精神的","有爱心的","有同情心的","喜欢思考的","喜欢学习的","具有批判性思维的","善于表达的","善于沟通的","善于合作的","善于领导的","有激情的","有幽默感的","有思想的","有个性的","有正义感的","有责任感的","有创造力的","有想象力的","有艺术细胞的","有团队精神的","有协调能力的","有决策能力的","有组织能力的","有学习能力的","有执行能力的","有分析能力的","有逻辑思维的","有创新能力的","有专业素养的","有商业头脑的"],t=["萝卜","白菜","芹菜","生菜","青椒","辣椒","茄子","豆角","黄瓜","西红柿","洋葱","大蒜","土豆","南瓜","豆腐","韭菜","花菜","西兰花","蘑菇","金针菇","苹果","香蕉","橙子","柠檬","猕猴桃","草莓","葡萄","桃子","杏子","李子","石榴","西瓜","哈密瓜","蜜瓜","樱桃","蓝莓","柿子","橄榄","柚子","火龙果"],n=`${e[Math.floor(Math.random()*e.length)]}${t[Math.floor(Math.random()*t.length)]}`;!function(){for(var e=["#author","input[name='comname']","#inpName","input[name='author']","#ds-dialog-name","#name","input[name='nick']","#comment_author"],t=["#mail","#email","input[name='commail']","#inpEmail","input[name='email']","#ds-dialog-email","input[name='mail']","#comment_email"],a=0;a<e.length;a++){var o=document.querySelector(e[a]);if(null!=o){o.value=n,o.dispatchEvent(new Event("input")),o.dispatchEvent(new Event("change"));break}}for(var c=0;c<t.length;c++){var s=document.querySelector(t[c]);if(null!=s){s.value="donotreply@mycpen.cn",s.dispatchEvent(new Event("input")),s.dispatchEvent(new Event("change"));break}}}();var a=document.getElementsByClassName("el-textarea__inner")[0];a.focus(),a.setSelectionRange(-1,-1)},owoBigfunc(){document.getElementById("post-comment")&&function(){let e=1,t="",n=document.createElement("div"),a=document.querySelector("body");n.id="owo-big",a.appendChild(n),new MutationObserver((o=>{for(let c=0;c<o.length;c++){let s=o[c].addedNodes,r="";2==s.length&&"OwO-body"==s[1].className&&(r=s[1],document.body.clientWidth<=768&&r.addEventListener("contextmenu",(e=>e.preventDefault())),r.onmouseover=o=>{e&&"IMG"==o.target.tagName&&(e=0,t=setTimeout((()=>{let e=3*o.target.clientHeight,t=3*o.target.clientWidth,c=o.x-o.offsetX-(t-o.target.clientWidth)/2,s=o.y-o.offsetY;c+t>a.clientWidth&&(c-=c+t-a.clientWidth+10),c<0&&(c=10),n.style.cssText=`display:flex; height:${e}px; width:${t}px; left:${c}px; top:${s}px;`,n.innerHTML=`<img src="${o.target.src}">`}),300))},r.onmouseout=()=>{n.style.display="none",e=1,clearTimeout(t)})}})).observe(document.getElementById("post-comment"),{subtree:!0,childList:!0})}()},removeaAlayerFixedLrc(){function e(){const e=document.querySelector(".aplayer-fixed .aplayer-icon.aplayer-icon-lrc");e&&(t.disconnect(),setTimeout((()=>{e.click()}),1))}const t=new MutationObserver(((t,n)=>{for(let n of t)"childList"===n.type&&e()}));t.observe(document,{childList:!0,subtree:!0})},switchDarkMode(){"light"===("dark"===document.documentElement.getAttribute("data-theme")?"dark":"light")?(activateDarkMode(),saveToLocal.set("theme","dark",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)):(activateLightMode(),saveToLocal.set("theme","light",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)),"function"==typeof utterancesTheme&&utterancesTheme(),"object"==typeof FB&&window.loadFBComment(),window.DISQUS&&document.getElementById("disqus_thread").children.length&&setTimeout((()=>window.disqusReset()),200)},essayUnknownPart(){},essayReplaceAll:(e,t,n)=>e.split(t).join(n),essayDiffDate:function(e,t=!1){const n=new Date,a=new Date(e),o=n.getTime()-a.getTime(),c=36e5,s=24*c;let r;if(t){const e=o/s,t=o/c,n=o/6e4;r=o/(30*s)>=1?a.toLocaleDateString().replace(/\//g,"-"):e>=1?parseInt(e)+" "+GLOBAL_CONFIG.date_suffix.day:t>=1?parseInt(t)+" "+GLOBAL_CONFIG.date_suffix.hour:n>=1?parseInt(n)+" "+GLOBAL_CONFIG.date_suffix.min:GLOBAL_CONFIG.date_suffix.just}else r=parseInt(o/s);return r},essayChangeTimeInEssay:function(){document.querySelector("#bber")&&document.querySelectorAll("#bber time").forEach((function(e){var t=e,n=t.getAttribute("datetime");t.innerText=mycpen1js.essayDiffDate(n,!0),t.style.display="inline"}))},essayReflashEssayWaterFall:function(){document.querySelector("#waterfall")&&setTimeout((function(){waterfall("#waterfall"),document.getElementById("waterfall").classList.add("show")}),500)},essayCommentText:function(e){var t=document.querySelector("#post-comment").offsetTop;window.scrollTo(0,t-80),"undefined"!=e&&"null"!=e||(e="好棒!"),function t(){setTimeout((()=>{var n=document.getElementsByClassName("el-textarea__inner")[0];n||t();let a=document.createEvent("HTMLEvents");a.initEvent("input",!0,!0);let o=mycpen1js.essayReplaceAll(e,"\n","\n> ");n.value="> "+o+"\n\n",n.dispatchEvent(a),n.focus(),n.setSelectionRange(-1,-1),document.getElementById("comment-tips")&&document.getElementById("comment-tips").classList.add("show")}),100)}()},essayInitIndexEssay:function(){setTimeout((()=>{let e=new Swiper(".essay_bar_swiper_container",{passiveListeners:!0,direction:"vertical",loop:!0,autoplay:{disableOnInteraction:!0,delay:3e3},mousewheel:!0}),t=document.getElementById("bbtalk");null!==t&&(t.onmouseenter=function(){e.autoplay.stop()},t.onmouseleave=function(){e.autoplay.start()})}),100)},essayChangeTimeInEssayByMycpen:function(){for(var e=document.getElementsByTagName("time"),t=0;t<e.length;t++){var n,a=e[t].getAttribute("datetime"),o=new Date(a),c=(new Date).getTime()-o.getTime(),s=Math.floor(c/864e5);0===s?n="最近":1===s?n="昨天":2===s?n="前天":s<=7?n=s+"天前":o.getFullYear()!==(new Date).getFullYear()?(Essaymonth=o.getMonth()+1,EssayDay=o.getDate(),Essaymonth=Essaymonth>9?Essaymonth:"0"+Essaymonth,EssayDay=EssayDay>9?EssayDay:"0"+EssayDay,n=o.getFullYear()+"-"+Essaymonth+"-"+EssayDay):(Essaymonth=o.getMonth()+1,EssayDay=o.getDate(),Essaymonth=Essaymonth>9?Essaymonth:"0"+Essaymonth,EssayDay=EssayDay>9?EssayDay:"0"+EssayDay,n=Essaymonth+"-"+EssayDay),e[t].textContent=n}},switchPostChart:function(){let e="light"===document.documentElement.getAttribute("data-theme")?"#4C4948":"rgba(255,255,255,0.7)";if(document.getElementById("posts-chart")&&postsOption)try{let t=postsOption;t.title.textStyle.color=e,t.xAxis.nameTextStyle.color=e,t.yAxis.nameTextStyle.color=e,t.xAxis.axisLabel.color=e,t.yAxis.axisLabel.color=e,t.xAxis.axisLine.lineStyle.color=e,t.yAxis.axisLine.lineStyle.color=e,t.series[0].markLine.data[0].label.color=e,postsChart.setOption(t)}catch(e){console.log(e)}if(document.getElementById("tags-chart")&&tagsOption)try{let t=tagsOption;t.title.textStyle.color=e,t.xAxis.nameTextStyle.color=e,t.yAxis.nameTextStyle.color=e,t.xAxis.axisLabel.color=e,t.yAxis.axisLabel.color=e,t.xAxis.axisLine.lineStyle.color=e,t.yAxis.axisLine.lineStyle.color=e,t.series[0].markLine.data[0].label.color=e,tagsChart.setOption(t)}catch(e){console.log(e)}if(document.getElementById("categories-chart")&&categoriesOption)try{let t=categoriesOption;t.title.textStyle.color=e,t.legend.textStyle.color=e,categoryParentFlag||(t.series[0].label.color=e),categoriesChart.setOption(t)}catch(e){console.log(e)}},cpRemind(){document.addEventListener("copy",(function(e){window.getSelection().toString().trim().length>0&&btf.snackbarShow("复制成功")}))},closeAboutAplayer(){if(!document.getElementById("mycpen1-about-page-tag"))try{about_page_ap.pause(),about_page_ap=void 0,about_page_weekSong=void 0,about_page_now=void 0,about_page_weekSong_today=void 0}catch(e){}},grey(){var e=new Date,t=e.getMonth()+1,n=e.getDate();for(var a of["04.04","05.12","07.07","08.14","09.09","09.18","09.30","11.30","12.13"]){var o=a.split(".");if(t==o[0]&&n==o[1]){var c="grayscale(100%)";$("html").css({filter:"gray !important;",filter:"progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)",filter:c,"-webkit-filter":c,"-moz-filter":c,"-ms-filter":c,"-o-filter":c});break}}},console(){var e=new Date,t=console.log;queueMicrotask((function(){var n=new Date(`${atob("MDgvMjgvMjAyMiA=")}${atob("MDA6MDA6MDA=")}`),a=new Date(`${atob("MTAvMjIvMTk5OCAwMA==")}:${atob("MDA6MDA=")}`),o=new Date(`${atob("MTAvMjIvMjA=")}${atob("MjggMDA6MDA6MDA=")}`),c=new Date(`${atob("MTA=")}/${atob("MjIvMjA1OCAwMDowMA==")}${atob("OjAw")}`),s=new Date("05/23/2025 00:00:00");e.setTime(e.getTime()+250);n=[" MYCPEN BLOG ",` ${window.location.origin} `,"\n\n███╗ ███╗██╗ ██╗ ██████╗██████╗ ███████╗███╗ ██╗\n████╗ ████║╚██╗ ██╔╝██╔════╝██╔══██╗██╔════╝████╗ ██║\n██╔████╔██║ ╚████╔╝ ██║ ██████╔╝█████╗ ██╔██╗ ██║\n██║╚██╔╝██║ ╚██╔╝ ██║ ██╔═══╝ ██╔══╝ ██║╚██╗██║\n██║ ╚═╝ ██║ ██║ ╚██████╗██║ ███████╗██║ ╚████║\n╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚══════╝╚═╝ ╚═══╝\n","距 2022-08-28 上线",Math.floor(Math.abs(e-n)/1e3/60/60/24+(e-n<0?1:0)).toString().padEnd(5," "),"天","距 1998-00-00 计时",Math.floor(Math.abs(e-a)/1e3/60/60/24+(e-a<0?1:0)).toString().padEnd(5," "),"天","距 2028-00-00 计时",Math.floor(Math.abs(e-o)/1e3/60/60/24+(e-o<0?1:0)).toString().padEnd(5," "),"天","距 2058-00-00 计时",Math.floor(Math.abs(e-c)/1e3/60/60/24+(e-c<0?1:0)).toString().padEnd(5," "),"天","距 2025-05-23 计时",Math.floor(Math.abs(e-s)/1e3/60/60/24+(e-s<0?1:0)).toString().padEnd(5," "),"天 (阿里云)"];setTimeout(function(){t.apply(console,arguments)}.bind(console,"\n%c".concat(n[0],"%c").concat(n[1],"%c").concat(n[2],"%c").concat(n[3],"%c ").concat(n[4],"%c ").concat(n[5],"\n").concat(n[6],"%c ").concat(n[7],"%c ").concat(n[8],"\n").concat(n[9],"%c ").concat(n[10],"%c ").concat(n[11],"\n").concat(n[12],"%c ").concat(n[13],"%c ").concat(n[14],"\n").concat(n[15],"%c ").concat(n[16],"%c ").concat(n[17],"\n").concat("\n"),"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;","color:#fadfa3","","color:#030307","","color:#030307","","color:#030307","","color:#030307","","color:#030307",""))}))},cardRefreshTimes(){const e=(new Date).getFullYear(),t=function(e){return e%4==0&&e%100!=0||e%400==0}(e)?366:365;var n=new Date,a=new Date(`${(new Date).getFullYear()}-01-01 00:00:00`),o=document.getElementById("card-widget-schedule");o&&(asideDay=(n-a)/1e3/60/60/24,o.querySelector("#pBar_year").value=asideDay,o.querySelector("#pBar_year").max=t,yearPercentage=(asideDay/t*100).toFixed(2),displayYearPercentage="100.00"===yearPercentage?"100%":yearPercentage+"%",o.querySelector("#p_span_year").innerHTML=displayYearPercentage,o.querySelector(".schedule-r0 .schedule-d1 .aside-span2").innerHTML=(Math.floor(10*(t-asideDay))/10).toFixed(1)+" / "+t,currentDateMonth=new Date,currentDateMonth.setDate(1),currentDateMonth.setHours(0,0,0,0),currentMonthTimestamp=currentDateMonth.getTime(),asideMonthDay=(n-currentMonthTimestamp)/1e3/60/60/24,currentDateMonthTotal=new Date,currentMonth=currentDateMonthTotal.getMonth(),currentDateMonthTotal.setMonth(currentMonth+1,1),currentDateMonthTotal.setDate(0),asideMonthDays=currentDateMonthTotal.getDate(),o.querySelector("#pBar_month").value=asideMonthDay,o.querySelector("#pBar_month").max=asideMonthDays,monthPercentage=(asideMonthDay/asideMonthDays*100).toFixed(2),displayMonthPercentage="100.00"===monthPercentage?"100%":monthPercentage+"%",o.querySelector("#p_span_month").innerHTML=displayMonthPercentage,o.querySelector(".schedule-r1 .schedule-d1 .aside-span2").innerHTML=(Math.floor(10*(asideMonthDays-asideMonthDay))/10).toFixed(1)+" / "+asideMonthDays.toString().padStart(3,"0"),currentDateWeek=new Date,currentDayOfWeek=currentDateWeek.getDay(),currentWeekTimestamp=currentDateWeek.setHours(0,0,0,0),firstDayOfWeekTimestamp=currentWeekTimestamp-24*(0===currentDayOfWeek?6:currentDayOfWeek-1)*60*60*1e3,pastWeekTimestamp=n-firstDayOfWeekTimestamp,asideWeekDay=pastWeekTimestamp/1e3/60/60/24,o.querySelector("#pBar_week").value=asideWeekDay,weekPercentage=(asideWeekDay/7*100).toFixed(2),displayWeekPercentage="100.00"===weekPercentage?"100%":weekPercentage+"%",o.querySelector("#p_span_week").innerHTML=displayWeekPercentage,o.querySelector(".schedule-r2 .schedule-d1 .aside-span2").innerHTML=(Math.floor(10*(7-asideWeekDay))/10).toFixed(1)+" / 007",currentTimeStamp=(new Date).getTime(),startOfDay=new Date,startOfDay.setHours(0,0,0,0),startOfDayTimeStamp=startOfDay.getTime(),timeDifferenceToday=currentTimeStamp-startOfDayTimeStamp,asideToday=timeDifferenceToday/1e3/60/60/24,asideTodayHour=timeDifferenceToday/36e5,o.querySelector("#pBar_day").value=asideTodayHour,dayPercentage=(100*asideToday).toFixed(2),displayDayPercentage="100.00"===dayPercentage?"100%":dayPercentage+"%",o.querySelector("#p_span_day").innerHTML=displayDayPercentage,o.querySelector(".schedule-r3 .schedule-d1 .aside-span2").innerHTML=(Math.floor(10*(24-asideTodayHour))/10).toFixed(1)+" / 024",month=n.getMonth()+1,day=n.getDate(),month=month>9?month:"0"+month,day=day>9?day:"0"+day,week={0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"},document.querySelector("#aside-content .card-widget#card-widget-schedule .item-content .schedule-today").innerHTML=n.getFullYear()+"-"+month+"-"+day+" "+week[n.getDay()])},PressEscapeKey(e){27===e.keyCode&&(document.getElementById("console")&&mycpen1js.hideConsole(),document.getElementById("cf-overlay")&&document.getElementById("cf-overshow")&&(document.querySelector(".cf-overshow-close")||document.querySelector(".cf-overshow"))&&(document.getElementById("mycpen1-fcircle-page-tag")&&closeShow(),document.getElementById("mycpen1-link-page-tag")&&mycpen1js.linkPageCloseShow()))},linkPageOpenMeShow(e){var t="ok",n=document.getElementById("mycpen1-link-page-tag");n&&(document.getElementById("cf-overlay")||n.insertAdjacentHTML("afterend",'\n <div id="cf-overlay" class="cf-new-add" onclick="mycpen1js.linkPageCloseShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n ')),e.preventDefault();var a;a="https://www.cpen.top:8002/post?link="+e.currentTarget.dataset.link.replace(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,"$1:$2$3"),"ok"==t&&(t="no",mycpen1js.linkPageFetchShow(a))},linkPageOpenMeShowV2(e){var t="ok",n=document.getElementById("mycpen1-link-page-tag");n&&(document.getElementById("cf-overlay")||n.insertAdjacentHTML("afterend",'\n <div id="cf-overlay" class="cf-new-add" onclick="mycpen1js.linkPageCloseShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n ')),e.preventDefault();var a;a="https://www.cpen.top:8002/postv2?name="+encodeURIComponent(e.currentTarget.dataset.name),"ok"==t&&(t="no",mycpen1js.linkPageFetchShow(a))},linkPageCloseShow(){document.getElementById("cf-overlay").className-="cf-show-now",document.getElementById("cf-overshow").className-="cf-show-now",setTimeout((function(){var e=document.querySelectorAll("#cf-overshow > :not(.cf-overshow-close)"),t=document.querySelectorAll("#cf-overshow > .cf-overshow-close");e.forEach((function(e){e.remove()}));for(var n=1;n<t.length;n++)t[n].remove()}),100)},linkPageFetchShow(url){var closeHtml='\n <div class="cf-overshow-close" onclick="mycpen1js.linkPageCloseShow()"></div>\n ';fetch(url).then((e=>e.json())).then((json=>{noClick="ok";var statisticalData=json.statistical_data,articleData=eval(json.article_data);0!==statisticalData.article_num?(mycpen1js.linkPageLoadFcircleShow(statisticalData,articleData),document.getElementById("cf-overlay").className="cf-show-now",document.getElementById("cf-overshow").insertAdjacentHTML("afterbegin",closeHtml)):btf.snackbarShow("未获取到订阅内容")})).catch((e=>{btf.snackbarShow("未获取到文章卡片")}))},linkPageLoadFcircleShow(e,t){for(var n=`\n <div class="cf-overshow">\n <div class="cf-overshow-head">\n <img class="cf-img-avatar avatar" src="${e.avatar}" alt="avatar" onerror="this.src='https://jsd.cdn.zzko.cn/npm/mycpen-blog@0.0.0-fibnucbndy/img/flink404.svg'; this.onerror = null;">\n <a class="" target="_blank" rel="noopener nofollow" href="${e.link}">${e.name}</a>\n </div>\n <div class="cf-overshow-content">\n `,a=0;a<e.article_num;a++){var o=t[a];let e="";Date.now()-new Date(o.created+" 00:00:00").getTime()<=1728e5&&(e='style="color: var(--mycpen1-main); opacity: 1;"'),n+=`\n <p><a class="cf-article-title" href="${o.link}" target="_blank" rel="noopener nofollow" data-title="${o.title}">${o.title}</a><span ${e}>${o.created}</span></p>\n `}n+="</div></div>",document.getElementById("cf-overshow").insertAdjacentHTML("beforeend",n),document.getElementById("cf-overshow").className="cf-show-now"},linkPageRssAliveCheck(){apiurl="https://www.cpen.top:8002/",rssAliveCheckUrl=apiurl+"friendstatus",fetch(rssAliveCheckUrl).then((e=>e.json())).then((e=>{var t=e.lost_friends,n=e.not_lost_friends,a=e.total_friend_num;let o=[];for(const e in t){let n=t[e];n=n.replace(/^https?:\/\//,""),n=n.replace(/\/$/,""),o.push(n)}let c=[];for(const e in n){let t=n[e];t=t.replace(/^https?:\/\//,""),t=t.replace(/\/$/,""),c.push(t)}document.querySelectorAll("#article-container .flink#mycpen1-link-page-tag-2 .flink-list>.flink-list-item a .flink-item-icon").forEach((e=>{if(e){let t=e.getAttribute("data-link").replace(/^https?:\/\//,"");t=t.replace(/\/$/,""),a>0?c.includes(t)?e.classList.add("flink-mycpen1-rss-not-lost-friends"):o.includes(t)?e.classList.add("flink-mycpen1-rss-lost-friends"):e.classList.add("flink-mycpen1-rss-unknown-friends"):0===a&&e.classList.add("flink-mycpen1-rss-lost-friends")}}))}))},NzcheckLink:async e=>{const t=document.querySelectorAll(e);if(t){let e=new RegExp(/^[#].*/);for(let o=0;o<t.length;o++){const c=t[o];var n=c.hasAttribute("data-fancybox"),a=c.classList.contains("already-redirect-link");if(!n&&!a){let t=c.getAttribute("href"),n=c.getAttribute("data-download"),a=c.getAttribute("rel");e.test(t)||"prev"===a||"next"===a||"category"===a||"tag"===a||"javascript:void(0);"===t||(await mycpen1js.NzcheckLocalSite(t)||n?await mycpen1js.NzcheckLocalSite(t)||"goDown"!==n||c.setAttribute("href","/redirect.html?url="+btoa(t)+"&type=goDown"):c.setAttribute("href","/redirect.html?url="+btoa(t)))}c.classList.add("already-redirect-link")}}},NzcheckLocalSite:async e=>{try{const t=["localhost:4000","cpen.top","mycpen.cn"];let n=!1;for(let a=0;a<t.length;a++){const o=t[a];if(e.includes(o)){n=!0;break}}return n}catch(e){return!0}},cookieConsent(){window.addEventListener("load",(()=>{window.cookieconsent.initialise({type:"info",theme:"edgeless",static:!1,position:"bottom-right",content:{message:"我们使用 cookie 来确保在我们的网站上为您提供最佳体验。",dismiss:"接受",allow:"接受",deny:"拒绝",link:!1},palette:{popup:{background:"#edeff5",text:"#838391"},button:{background:"#4b81e8"}}})}))}};function whenDOMReadyMycpen1JS(){mycpen1js.changeNavPageNameTitle(),mycpen1js.getFooterRandomFlink(),mycpen1js.removeBodyPaceClass(),mycpen1js.tagPageActive(),mycpen1js.categoryPageActive(),mycpen1js.listenToPageInputPress(),mycpen1js.owoBigfunc(),document.getElementById("mycpen1-essay-page-tag")&&(mycpen1js.essayChangeTimeInEssayByMycpen(),mycpen1js.essayReflashEssayWaterFall(),window.onresize=()=>{document.getElementById("mycpen1-essay-page-tag")&&(mycpen1js.essayReflashEssayWaterFall(),setTimeout((()=>{mycpen1js.essayReflashEssayWaterFall()}),300))}),document.getElementById("darkmode").addEventListener("click",(function(){setTimeout(mycpen1js.switchPostChart,100)})),document.getElementById("darkmode_navswitch").addEventListener("click",(function(){setTimeout(mycpen1js.switchPostChart,100)})),document.getElementById("darkmode_consoleSwitch").addEventListener("click",(function(){setTimeout(mycpen1js.switchPostChart,100)})),document.getElementById("darkmode_sidebarSwitch").addEventListener("click",(function(){setTimeout(mycpen1js.switchPostChart,100)})),mycpen1js.cpRemind(),mycpen1js.closeAboutAplayer(),document.getElementById("card-widget-schedule")&&(mycpen1js.cardRefreshTimes(),setInterval((()=>{mycpen1js.cardRefreshTimes()}),1e3)),document.getElementById("mycpen1-link-page-tag-2")&&mycpen1js.linkPageRssAliveCheck(),document.getElementById("mycpen1-link-page-tag")&&(mycpen1js.NzcheckLink("#article-container .flink .flink-list > .flink-list-item.单向 > a"),mycpen1js.NzcheckLink("#article-container .flink .flink-list > .flink-list-item.失联 > a")),document.getElementById("mycpen1-about-page-tag")&&mycpen1js.NzcheckLink("#article-container #mycpen1-about-page-tag-sponsor-part a"),document.getElementById("post-comment")&&setInterval((()=>{if(document.querySelector(".tk-comments-container")){mycpen1js.NzcheckLink(".tk-comments-container a:not(.already-redirect-link)");document.querySelectorAll(".tk-avatar.tk-clickable:not(.already-clear-clickEvent)").forEach((e=>{e.classList.add("already-clear-clickEvent");const t=document.createElement("a");for(Array.from(e.attributes).forEach((e=>{t.setAttribute(e.name,e.value)}));e.firstChild;)t.appendChild(e.firstChild);e.parentNode.replaceChild(t,e);const n=t.nextElementSibling.firstElementChild.firstElementChild.firstElementChild.getAttribute("href");t.setAttribute("href",n),t.setAttribute("target","_blank"),t.setAttribute("rel","noopener external nofollow noreferrer")}))}}),1e3)}mycpen1js.console(),document.removeEventListener("keydown",mycpen1js.PressEscapeKey),document.addEventListener("keydown",mycpen1js.PressEscapeKey),window.onscroll=mycpen1js.getNavRightPagePercent,mycpen1js.removeaAlayerFixedLrc(),whenDOMReadyMycpen1JS(),document.addEventListener("pjax:complete",whenDOMReadyMycpen1JS);
|
1
|
+
var _0x47c395=_0x2566;!function(e,t){for(var a=_0x2566,n=_0x130b();;)try{if(655361===parseInt(a(754))/1*(parseInt(a(532))/2)+-parseInt(a(762))/3+parseInt(a(504))/4+parseInt(a(689))/5+parseInt(a(884))/6+-parseInt(a(736))/7*(parseInt(a(625))/8)+parseInt(a(673))/9*(parseInt(a(739))/10))break;n.push(n.shift())}catch(e){n.push(n.shift())}}();var mycpen1js={changeNavPageNameTitle(){var e=_0x2566;document[e(867)]==e(824)?document.getElementById("page-name").innerText=document[e(867)]:document[e(582)]("page-name")[e(737)]=document[e(867)][e(487)](e(507))[0]},getNavRightPagePercent(){var e=_0x2566;let t=document.documentElement[e(874)]||window.pageYOffset,a=Math[e(569)](document[e(574)][e(738)],document[e(521)][e(738)],document[e(574)].offsetHeight,document.documentElement[e(806)],document[e(574)][e(527)],document[e(521)][e(527)])-document[e(521)][e(527)],n=Math[e(812)](t/a*100),o=document[e(721)](e(609));n<=99||(n=99),o[e(742)]=n,r=window[e(684)]+document[e(521)][e(527)],p=document.getElementById(e(638))||document.getElementById(e(804)),p[e(821)]+p[e(806)]/2<r||90<n?(document[e(721)](e(514))[e(749)][e(858)](e(830)),o[e(742)]="返回顶部"):(document[e(721)](e(514)).classList[e(788)](e(830)),o[e(742)]=n)},share(){var e=_0x2566;let t=window.location[e(877)]+window[e(496)][e(573)];new ClipboardJS(e(859),{text:function(){var a=e;return a(634)+document[a(867)]+a(598)+t}}),btf[e(787)]("复制成功")},getFooterRandomFlink(){var e={saveData:(e,t)=>{var a=_0x2566;localStorage.setItem(e,JSON[a(632)]({time:Date[a(648)](),data:t}))},loadData:(e,t)=>{var a=_0x2566;let n=JSON[a(531)](localStorage.getItem(e));if(n){let e=Date[a(648)]()-n[a(725)];if(e<60*t*1e3&&e>-1)return n.data}return 0},randomLink:()=>{var t=_0x2566;let a=e[t(572)](t(854),30);if(a){let e=document[t(635)]("#friend-links-in-footer .footer-item");if(!e[t(860)])return;for(let n=0;n<3;n++){let o;do{o=parseInt(Math[t(878)]()*a.length)}while("失联"===a[o].tag);e[n].innerText=a[o][t(555)],e[n][t(842)]=a[o][t(556)],e[n][t(867)]=a[o][t(555)],e[n][t(545)]=t(669),e[n][t(763)]=t(826),a[t(659)](o,1)}}else fetch(t(825)).then((e=>e[t(579)]()))[t(702)]((a=>{var n=t;e[n(679)](n(854),a[n(552)]),e[n(722)]()}))}};e[_0x2566(722)]()},newYearCountdownCard(){(()=>{var e=_0x2566;if(clearTimeout(null),!document[e(721)](e(823)))return;let t=new Date((new Date)[e(557)]()+1+"-01-01 00:00:00")[e(479)]()/1e3,a={0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"};!function(){var n=e;let o=new Date,c=o[n(771)]()+1,s=o[n(617)]();c=c>9?c:"0"+c,s=s>9?s:"0"+s,document[n(721)](n(547))[n(742)]=o[n(557)]()+"-"+c+"-"+s+" "+a[o.getDay()];let r=t-Math[n(812)](o[n(479)]()/1e3);r<0?(document.querySelector("#newYear .title")[n(742)]="Happy New Year!",document[n(721)](n(592)).innerHTML=n(879)):(document.querySelector(n(832))[n(742)]=n(802)+((new Date)[n(557)]()+1)+" <span>年</span>",r>86400?document[n(721)](n(592)).innerHTML=n(844)+Math[n(855)](r/86400)+n(661):document[n(721)](n(592))[n(742)]=n(844)+Math[n(855)](r/86400)+n(661))}()})()},removeBodyPaceClass:function(){var e=_0x2566;$("body")[e(654)](),$(e(574)).addClass("pace-done")},toPage:function(){var e=_0x2566,t=document[e(635)](e(586)),a=parseInt(t[t[e(860)]-1][e(742)]),n=document[e(582)]("toPageText"),o=parseInt(n[e(696)]);if(!isNaN(o)&&o>0&&"0"!==(""+o)[0]&&o<=a){var c,s=window[e(496)].href[e(753)](/\/page\/\d+\/$/,"/");c=1===o?s:s+(s[e(733)]("/")?"":"/")+e(727)+o+"/",document[e(582)](e(491))[e(842)]=c}},listenToPageInputPress(){var e=_0x2566,t=document[e(582)](e(477)),a=document[e(582)](e(491));t&&(t.addEventListener("keydown",(t=>{var n=e;13===t[n(790)]&&(mycpen1js.toPage(),pjax[n(756)](a.href))})),t[e(834)](e(704),(function(){var n=e;""===t[n(696)]||"0"===t[n(696)]?a[n(749)][n(788)](n(809)):a.classList[n(858)](n(809));var o=document[n(635)](n(586)),c=+o[o[n(860)]-1][n(742)];+document.getElementById("toPageText")[n(696)]>c&&(t[n(696)]=c)})))},showConsole:function(){var e=_0x2566;document[e(721)](e(688))[e(749)][e(858)]("show"),mycpen1js.initConsoleState()},hideConsole:function(){var e=_0x2566;document[e(721)](e(688))[e(749)].remove(e(686))},hideAsideBtn:()=>{var e=_0x2566;const t=document[e(521)].classList;t[e(784)](e(594))?saveToLocal.set(e(882),e(686),2):saveToLocal[e(707)](e(882),e(476),2),t[e(869)](e(594)),t[e(784)](e(594))?document.querySelector(e(621))[e(749)].add("on"):document[e(721)](e(621))[e(749)][e(788)]("on")},initConsoleState:function(){var e=_0x2566;document[e(521)][e(749)].contains(e(594))?document[e(721)](e(621)).classList[e(858)]("on"):document[e(721)](e(621))[e(749)][e(788)]("on")},tagPageActive:function(){var e=_0x2566,t=window.location.pathname;if(/\/tags\/.*?\//[e(681)](t=decodeURIComponent(t))){var a=t[e(487)]("/")[2];if(document[e(721)](".page .layout #tag #tag-page-tags")){$("a")[e(654)]("select");var n=document[e(582)](e(493)+a);n&&n[e(749)][e(858)](e(818))}}},categoryPageActive:function(){var e=_0x2566,t=window[e(496)].pathname;if(/\/categories\/.*?\//[e(681)](t=decodeURIComponent(t))){var a=t.split("/")[2];if(document[e(721)](e(510))){$("a").removeClass(e(818));var n=document[e(582)](e(599)+a);n&&n[e(749)][e(858)]("select")}}},addRandomCommentInfo:function(){var e=_0x2566;const t=[e(687),e(512),e(664),"勇敢的",e(744),e(499),e(831),e(610),e(730),"成熟的","稳重的",e(865),e(533),e(849),e(550),e(779),e(711),e(652),e(774),"温暖的",e(794),e(644),"耐心的",e(608),"朴素的","含蓄的","率直的","开放的",e(705),e(709),e(676),e(576),e(501),e(785),e(827),"朝气蓬勃的","慎重的",e(660),e(605),"迷人的","机智的",e(697),e(775),e(600),"独立的",e(570),"干净的",e(778),e(885),e(627),e(751),"有耐性的",e(520),e(743),"有远见的",e(597),e(729),e(863),"有爱心的",e(614),"喜欢思考的",e(873),e(853),e(851),e(528),"善于合作的",e(620),e(497),e(529),e(856),e(850),e(492),e(489),"有创造力的",e(800),e(798),"有团队精神的","有协调能力的",e(724),e(813),e(668),e(666),e(837),"有逻辑思维的",e(840),e(848),e(852)],a=["萝卜","白菜","芹菜","生菜","青椒","辣椒","茄子","豆角","黄瓜","西红柿","洋葱","大蒜","土豆","南瓜","豆腐","韭菜","花菜",e(719),"蘑菇","金针菇","苹果","香蕉","橙子","柠檬","猕猴桃","草莓","葡萄","桃子","杏子","李子","石榴","西瓜","哈密瓜","蜜瓜","樱桃","蓝莓","柿子","橄榄","柚子",e(777)],n=""+t[Math[e(538)](Math[e(878)]()*t[e(860)])]+a[Math[e(538)](Math.random()*a[e(860)])];!function(){for(var t=e,a=["#author",t(629),t(585),t(735),"#ds-dialog-name",t(480),"input[name='nick']","#comment_author"],o=[t(839),t(694),t(543),t(757),t(575),"#ds-dialog-email","input[name='mail']",t(611)],c=0;c<a[t(860)];c++){var s=document.querySelector(a[c]);if(null!=s){s[t(696)]=n,s[t(765)](new Event(t(704))),s[t(765)](new Event("change"));break}}for(var r=0;r<o[t(860)];r++){var i=document[t(721)](o[r]);if(null!=i){i.value=t(828),i[t(765)](new Event(t(704))),i[t(765)](new Event(t(643)));break}}}();var o=document[e(612)]("el-textarea__inner")[0];o[e(613)](),o[e(682)](-1,-1)},owoBigfunc(){document.getElementById("post-comment")&&function(){var e=_0x2566;let t=1,a="",n=document.createElement(e(883)),o=document[e(721)](e(574));n.id=e(619),o[e(549)](n),new MutationObserver((c=>{var s=e;for(let e=0;e<c[s(860)];e++){let r=c[e][s(726)],i="";2==r[s(860)]&&r[1].className==s(580)&&(i=r[1],document[s(574)].clientWidth<=768&&i[s(834)](s(820),(e=>e[s(548)]())),i[s(833)]=e=>{var c=s;t&&e[c(545)][c(511)]==c(791)&&(t=0,a=setTimeout((()=>{var t=c;let a=3*e[t(545)][t(527)],s=3*e[t(545)].clientWidth,r=e.x-e[t(868)]-(s-e[t(545)].clientWidth)/2,i=e.y-e.offsetY;r+s>o[t(670)]&&(r-=r+s-o[t(670)]+10),r<0&&(r=10),n[t(542)][t(500)]=t(746)+a+"px; width:"+s+t(588)+r+"px; top:"+i+"px;",n[t(742)]=t(822)+e[t(545)][t(651)]+'">'}),300))},i.onmouseout=()=>{var e=s;n.style.display=e(558),t=1,clearTimeout(a)})}}))[e(674)](document[e(582)](e(638)),{subtree:!0,childList:!0})}()},removeaAlayerFixedLrc(){var e=_0x2566;function t(){var e=_0x2566;const t=document[e(721)](e(640));t&&(a[e(481)](),setTimeout((()=>{t[e(534)]()}),1))}const a=new MutationObserver(((e,a)=>{var n=_0x2566;for(let a of e)"childList"===a[n(740)]&&t()}));a[e(674)](document,{childList:!0,subtree:!0})},switchDarkMode(){var e=_0x2566;(document[e(521)][e(845)]("data-theme")===e(888)?e(888):e(747))===e(747)?(activateDarkMode(),saveToLocal[e(707)](e(589),e(888),2),void 0!==GLOBAL_CONFIG[e(708)]&&btf.snackbarShow(GLOBAL_CONFIG[e(708)][e(886)])):(activateLightMode(),saveToLocal[e(707)]("theme",e(747),2),void 0!==GLOBAL_CONFIG[e(708)]&&btf[e(787)](GLOBAL_CONFIG[e(708)][e(780)])),typeof utterancesTheme===e(755)&&utterancesTheme(),typeof FB===e(565)&&window.loadFBComment(),window.DISQUS&&document[e(582)](e(593))[e(750)][e(860)]&&setTimeout((()=>window[e(723)]()),200)},essayUnknownPart(){},essayReplaceAll(e,t,a){var n=_0x2566;return e[n(487)](t)[n(653)](a)},essayDiffDate:function(e,t=!1){var a=_0x2566;const n=new Date,o=new Date(e),c=n[a(479)]()-o[a(479)](),s=36e5,r=864e5;let i;if(t){const e=c/r,t=c/s,n=c/6e4;i=c/2592e6>=1?o[a(656)]()[a(753)](/\//g,"-"):e>=1?parseInt(e)+" "+GLOBAL_CONFIG[a(761)][a(672)]:t>=1?parseInt(t)+" "+GLOBAL_CONFIG[a(761)][a(561)]:n>=1?parseInt(n)+" "+GLOBAL_CONFIG[a(761)].min:GLOBAL_CONFIG.date_suffix[a(769)]}else i=parseInt(c/r);return i},essayChangeTimeInEssay:function(){var e=_0x2566;document[e(721)](e(710))&&document[e(635)](e(616))[e(792)]((function(t){var a=e,n=t,o=n[a(845)]("datetime");n.innerText=mycpen1js[a(692)](o,!0),n[a(542)][a(797)]=a(841)}))},essayReflashEssayWaterFall:function(){var e=_0x2566;document.querySelector(e(567))&&setTimeout((function(){var t=e;waterfall(t(567)),document[t(582)](t(540)).classList[t(858)]("show")}),500)},essayCommentText:function(e){var t=_0x2566;var a=document[t(721)](t(745)).offsetTop;window.scrollTo(0,a-80),e!=t(843)&&"null"!=e||(e="好棒!"),function t(){setTimeout((()=>{var a=_0x2566,n=document[a(612)](a(553))[0];n||t();let o=document[a(857)](a(636));o.initEvent(a(704),!0,!0);let c=mycpen1js.essayReplaceAll(e,"\n",a(805));n[a(696)]="> "+c+"\n\n",n[a(765)](o),n.focus(),n[a(682)](-1,-1),document.getElementById(a(671))&&document.getElementById(a(671))[a(749)][a(858)](a(686))}),100)}()},essayInitIndexEssay:function(){setTimeout((()=>{var e=_0x2566;let t=new Swiper(e(768),{passiveListeners:!0,direction:e(864),loop:!0,autoplay:{disableOnInteraction:!0,delay:3e3},mousewheel:!0}),a=document[e(582)](e(887));null!==a&&(a.onmouseenter=function(){var a=e;t[a(516)][a(490)]()},a.onmouseleave=function(){var a=e;t.autoplay[a(728)]()})}),100)},essayChangeTimeInEssayByMycpen:function(){for(var e=_0x2566,t=document.getElementsByTagName(e(725)),a=0;a<t[e(860)];a++){var n,o=t[a][e(845)]("datetime"),c=new Date(o),s=(new Date)[e(479)]()-c[e(479)](),r=Math[e(538)](s/864e5);0===r?n="最近":1===r?n="昨天":2===r?n="前天":r<=7?n=r+"天前":c[e(557)]()!==(new Date)[e(557)]()?(Essaymonth=c.getMonth()+1,EssayDay=c[e(617)](),Essaymonth=Essaymonth>9?Essaymonth:"0"+Essaymonth,EssayDay=EssayDay>9?EssayDay:"0"+EssayDay,n=c[e(557)]()+"-"+Essaymonth+"-"+EssayDay):(Essaymonth=c[e(771)]()+1,EssayDay=c.getDate(),Essaymonth=Essaymonth>9?Essaymonth:"0"+Essaymonth,EssayDay=EssayDay>9?EssayDay:"0"+EssayDay,n=Essaymonth+"-"+EssayDay),t[a].textContent=n}},switchPostChart:function(){var e=_0x2566;let t=document[e(521)][e(845)](e(587))===e(747)?"#4C4948":e(701);if(document.getElementById("posts-chart")&&postsOption)try{let a=postsOption;a[e(867)][e(766)][e(836)]=t,a[e(584)].nameTextStyle[e(836)]=t,a.yAxis[e(484)][e(836)]=t,a[e(584)][e(564)].color=t,a.yAxis[e(564)][e(836)]=t,a[e(584)].axisLine[e(642)][e(836)]=t,a[e(667)][e(776)][e(642)][e(836)]=t,a[e(795)][0].markLine[e(872)][0][e(741)][e(836)]=t,postsChart[e(554)](a)}catch(t){console[e(488)](t)}if(document[e(582)](e(665))&&tagsOption)try{let a=tagsOption;a[e(867)][e(766)][e(836)]=t,a[e(584)][e(484)][e(836)]=t,a[e(667)][e(484)][e(836)]=t,a[e(584)][e(564)][e(836)]=t,a.yAxis.axisLabel.color=t,a[e(584)][e(776)][e(642)][e(836)]=t,a.yAxis[e(776)].lineStyle[e(836)]=t,a[e(795)][0].markLine.data[0][e(741)][e(836)]=t,tagsChart[e(554)](a)}catch(t){console[e(488)](t)}if(document[e(582)]("categories-chart")&&categoriesOption)try{let a=categoriesOption;a[e(867)][e(766)][e(836)]=t,a[e(539)][e(766)][e(836)]=t,!categoryParentFlag&&(a[e(795)][0][e(741)][e(836)]=t),categoriesChart[e(554)](a)}catch(t){console[e(488)](t)}},cpRemind(){var e=_0x2566;document[e(834)]("copy",(function(t){var a=e;window.getSelection()[a(808)]()[a(639)]()[a(860)]>0&&btf[a(787)](a(811))}))},closeAboutAplayer(){var e=_0x2566;if(!document.getElementById(e(478)))try{about_page_ap[e(560)](),about_page_ap=void 0,about_page_weekSong=void 0,about_page_now=void 0,about_page_weekSong_today=void 0}catch(e){}},grey(){var e=_0x2566,t=new Date,a=t[e(771)]()+1,n=t[e(617)](),o=["04.04",e(759),e(603),e(615),e(720),e(626),"09.30",e(602),e(485)];for(var c of o){var s=c[e(487)](".");if(a==s[0]&&n==s[1]){var r="grayscale(100%)";$("html").css({filter:"gray !important;",filter:"progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)",filter:r,"-webkit-filter":r,"-moz-filter":r,"-ms-filter":r,"-o-filter":r});break}}},console(){var e=_0x2566,t=new Date,a=console[e(488)];queueMicrotask((function(){var n=e;var o=new Date(""+atob("MDgvMjgvMjAyMiA=")+atob(n(535))),c=new Date(atob(n(517))+":"+atob(n(518))),s=new Date(""+atob(n(699))+atob(n(647))),r=new Date(atob(n(662))+"/"+atob(n(650))+atob(n(631))),i=new Date(n(732));t.setTime(t[n(479)]()+250);o=[n(562)," "+window.location.origin+" ","\n\n",n(881),Math.floor(Math[n(683)](t-o)/1e3/60/60/24+(t-o<0?1:0))[n(808)]()[n(495)](5," "),"天",n(712),Math.floor(Math[n(683)](t-c)/1e3/60/60/24+(t-c<0?1:0)).toString().padEnd(5," "),"天",n(846),Math[n(538)](Math[n(683)](t-s)/1e3/60/60/24+(t-s<0?1:0))[n(808)]().padEnd(5," "),"天","距 2058-00-00 计时",Math[n(538)](Math[n(683)](t-r)/1e3/60/60/24+(t-r<0?1:0))[n(808)]()[n(495)](5," "),"天",n(680),Math[n(538)](Math[n(683)](t-i)/1e3/60/60/24+(t-i<0?1:0))[n(808)]()[n(495)](5," "),n(866)];setTimeout(function(){a.apply(console,arguments)}[n(807)](console,"\n%c"[n(871)](o[0],"%c").concat(o[1],"%c")[n(871)](o[2],"%c")[n(871)](o[3],n(522))[n(871)](o[4],n(522))[n(871)](o[5],"\n")[n(871)](o[6],n(522))[n(871)](o[7],n(522)).concat(o[8],"\n").concat(o[9],n(522))[n(871)](o[10],n(522))[n(871)](o[11],"\n")[n(871)](o[12],n(522))[n(871)](o[13],"%c ").concat(o[14],"\n")[n(871)](o[15],n(522))[n(871)](o[16],n(522))[n(871)](o[17],"\n")[n(871)]("\n"),"color: #fadfa3; background: #030307; padding:5px 0;",n(475),"color:#fadfa3","",n(577),"",n(577),"",n(577),"",n(577),"",n(577),""))}))},cardRefreshTimes(){var e=_0x2566;const t=(new Date).getFullYear(),a=(n=t)%4==0&&n%100!=0||n%400==0?366:365;var n,o=new Date,c=new Date((new Date).getFullYear()+e(536)),s=document[e(582)]("card-widget-schedule");s&&(asideDay=(o-c)/1e3/60/60/24,s[e(721)](e(568)).value=asideDay,s[e(721)](e(568))[e(569)]=a,yearPercentage=(asideDay/a*100)[e(623)](2),displayYearPercentage=yearPercentage===e(537)?e(819):yearPercentage+"%",s.querySelector("#p_span_year")[e(742)]=displayYearPercentage,s[e(721)](".schedule-r0 .schedule-d1 .aside-span2").innerHTML=(Math[e(538)](10*(a-asideDay))/10)[e(623)](1)+e(870)+a,currentDateMonth=new Date,currentDateMonth[e(486)](1),currentDateMonth[e(880)](0,0,0,0),currentMonthTimestamp=currentDateMonth[e(479)](),asideMonthDay=(o-currentMonthTimestamp)/1e3/60/60/24,currentDateMonthTotal=new Date,currentMonth=currentDateMonthTotal[e(771)](),currentDateMonthTotal[e(563)](currentMonth+1,1),currentDateMonthTotal[e(486)](0),asideMonthDays=currentDateMonthTotal[e(617)](),s[e(721)](e(815)).value=asideMonthDay,s[e(721)](e(815))[e(569)]=asideMonthDays,monthPercentage=(asideMonthDay/asideMonthDays*100)[e(623)](2),displayMonthPercentage=monthPercentage===e(537)?e(819):monthPercentage+"%",s[e(721)](e(494))[e(742)]=displayMonthPercentage,s[e(721)](e(716))[e(742)]=(Math[e(538)](10*(asideMonthDays-asideMonthDay))/10)[e(623)](1)+e(870)+asideMonthDays[e(808)]()[e(713)](3,"0"),currentDateWeek=new Date,currentDayOfWeek=currentDateWeek[e(890)](),currentWeekTimestamp=currentDateWeek.setHours(0,0,0,0),firstDayOfWeekTimestamp=currentWeekTimestamp-24*(0===currentDayOfWeek?6:currentDayOfWeek-1)*60*60*1e3,pastWeekTimestamp=o-firstDayOfWeekTimestamp,asideWeekDay=pastWeekTimestamp/1e3/60/60/24,s[e(721)](e(526))[e(696)]=asideWeekDay,weekPercentage=(asideWeekDay/7*100)[e(623)](2),displayWeekPercentage=weekPercentage===e(537)?e(819):weekPercentage+"%",s.querySelector(e(783))[e(742)]=displayWeekPercentage,s.querySelector(e(606))[e(742)]=(Math[e(538)](10*(7-asideWeekDay))/10)[e(623)](1)+e(541),currentTimeStamp=(new Date)[e(479)](),startOfDay=new Date,startOfDay[e(880)](0,0,0,0),startOfDayTimeStamp=startOfDay[e(479)](),timeDifferenceToday=currentTimeStamp-startOfDayTimeStamp,asideToday=timeDifferenceToday/1e3/60/60/24,asideTodayHour=timeDifferenceToday/36e5,s[e(721)](e(816)).value=asideTodayHour,dayPercentage=(100*asideToday).toFixed(2),displayDayPercentage=dayPercentage===e(537)?e(819):dayPercentage+"%",s[e(721)](e(503))[e(742)]=displayDayPercentage,s[e(721)](".schedule-r3 .schedule-d1 .aside-span2")[e(742)]=(Math[e(538)](10*(24-asideTodayHour))/10).toFixed(1)+" / 024",month=o[e(771)]()+1,day=o[e(617)](),month=month>9?month:"0"+month,day=day>9?day:"0"+day,week={0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"},document[e(721)](e(546))[e(742)]=o[e(557)]()+"-"+month+"-"+day+" "+week[o[e(890)]()])},PressEscapeKey(e){var t=_0x2566;27===e[t(790)]&&(document[t(582)](t(715))&&mycpen1js.hideConsole(),document[t(582)](t(695))&&document[t(582)](t(786))&&(document[t(721)](t(607))||document.querySelector(t(506)))&&(document.getElementById(t(657))&&closeShow(),document[t(582)](t(693))&&mycpen1js.linkPageCloseShow()))},linkPageOpenMeShow(e){var t=_0x2566,a={apipublicurl:t(544)},n="ok",o=t(758),c=document[t(582)](t(693));c&&(document[t(582)](t(695))||c.insertAdjacentHTML("afterend",o)),e[t(548)]();var s,r=e.currentTarget[t(630)][t(556)][t(753)](/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,t(637));s=a[t(782)]+"post?link="+r,"ok"==n&&(n="no",mycpen1js.linkPageFetchShow(s))},linkPageOpenMeShowV2(e){var t=_0x2566,a="ok",n=t(758),o=document[t(582)](t(693));o&&(document[t(582)](t(695))||o.insertAdjacentHTML(t(767),n)),e[t(548)]();var c,s=encodeURIComponent(e[t(551)].dataset[t(555)]);c={apipublicurl:"https://www.cpen.top:8002/"}[t(782)]+t(530)+s,"ok"==a&&(a="no",mycpen1js[t(760)](c))},linkPageCloseShow(){var e=_0x2566;document.getElementById(e(695))[e(595)]-=e(718),document[e(582)](e(786)).className-="cf-show-now",setTimeout((function(){var t=e,a=document[t(635)]("#cf-overshow > :not(.cf-overshow-close)"),n=document[t(635)]("#cf-overshow > .cf-overshow-close");a[t(792)]((function(e){e.remove()}));for(var o=1;o<n.length;o++)n[o][t(788)]()}),100)},linkPageFetchShow(_0x2bcbca){var _0x153c5e=_0x2566,_0x422f67=_0x153c5e(793);fetch(_0x2bcbca)[_0x153c5e(702)]((e=>e.json()))[_0x153c5e(702)]((_0x42b0fe=>{var _0x4b8c93=_0x153c5e;noClick="ok";var _0x569c30=_0x42b0fe[_0x4b8c93(633)],_0x3d68f9=eval(_0x42b0fe[_0x4b8c93(690)]);0!==_0x569c30[_0x4b8c93(604)]?(mycpen1js.linkPageLoadFcircleShow(_0x569c30,_0x3d68f9),document[_0x4b8c93(582)](_0x4b8c93(695)).className="cf-show-now",document.getElementById(_0x4b8c93(786))[_0x4b8c93(835)](_0x4b8c93(814),_0x422f67)):btf[_0x4b8c93(787)](_0x4b8c93(645))}))[_0x153c5e(658)]((e=>{var t=_0x153c5e;btf[t(787)](t(655))}))},linkPageLoadFcircleShow(e,t){for(var a=_0x2566,n=a(591)+e.avatar+a(891)+e[a(556)]+'">'+e[a(555)]+a(764),o=0;o<e[a(604)];o++){var c=t[o];let e="";Date[a(648)]()-new Date(c[a(523)]+" 00:00:00")[a(479)]()<=1728e5&&(e=a(628)),n+='\n <p><a class="cf-article-title" href="'+c[a(556)]+a(483)+c[a(867)]+'">'+c[a(867)]+a(677)+e+">"+c[a(523)]+a(803)}n+=a(876),document.getElementById(a(786)).insertAdjacentHTML(a(714),n),document[a(582)](a(786))[a(595)]=a(718)},linkPageRssAliveCheck(){var e=_0x2566;apiurl=e(544),rssAliveCheckUrl=apiurl+e(515),fetch(rssAliveCheckUrl).then((e=>e.json()))[e(702)]((t=>{var a=e,n=t[a(678)],o=t[a(649)],c=t[a(675)];let s=[];for(const e in n){let t=n[e];t=t.replace(/^https?:\/\//,""),t=t[a(753)](/\/$/,""),s[a(566)](t)}let r=[];for(const e in o){let t=o[e];t=t.replace(/^https?:\/\//,""),t=t[a(753)](/\/$/,""),r[a(566)](t)}document.querySelectorAll("#article-container .flink#mycpen1-link-page-tag-2 .flink-list>.flink-list-item a .flink-item-icon")[a(792)]((e=>{var t=a;if(e){let a=e[t(845)](t(752))[t(753)](/^https?:\/\//,"");a=a[t(753)](/\/$/,""),c>0?r[t(810)](a)?e.classList[t(858)](t(698)):s.includes(a)?e[t(749)][t(858)](t(646)):e[t(749)][t(858)]("flink-mycpen1-rss-unknown-friends"):0===c&&e[t(749)].add("flink-mycpen1-rss-lost-friends")}}))}))},NzcheckLink:async e=>{var t=_0x2566;const a=document[t(635)](e);if(a){let e=new RegExp(/^[#].*/);for(let c=0;c<a.length;c++){const s=a[c];var n=s[t(559)](t(861)),o=s.classList[t(784)]("already-redirect-link");if(!n&&!o){let a=s.getAttribute(t(842)),n=s[t(845)](t(509)),o=s[t(845)](t(763));e[t(681)](a)||"prev"===o||o===t(691)||o===t(502)||o===t(624)||a===t(781)||(await mycpen1js[t(578)](a)||n?!await mycpen1js[t(578)](a)&&"goDown"===n&&s.setAttribute(t(842),t(513)+btoa(a)+"&type=goDown"):s[t(817)](t(842),t(513)+btoa(a)))}s[t(749)][t(858)]("already-redirect-link")}}},NzcheckLocalSite:async e=>{var t=_0x2566;try{const a=[t(663),"cpen.top",t(789)];let n=!1;for(let t=0;t<a.length;t++){const o=a[t];if(e.includes(o)){n=!0;break}}return n}catch(e){return!0}},cookieConsent(){var e=_0x2566;window[e(834)]("load",(()=>{var t=e;window[t(799)][t(772)]({type:t(505),theme:"edgeless",static:!1,position:t(875),content:{message:"我们使用 cookie 来确保在我们的网站上为您提供最佳体验。",dismiss:"接受",allow:"接受",deny:"拒绝",link:!1},palette:{popup:{background:"#edeff5",text:"#838391"},button:{background:t(773)}}})}))}};function _0x130b(){var e=["有专业素养的","豁达的","有个性的","善于表达的","有商业头脑的","具有批判性思维的","links","ceil","有思想的","createEvent","add",".share","length","data-fancybox","firstElementChild","有冒险精神的","vertical","真诚的","天 (阿里云)","title","offsetX","toggle"," / ","concat","data","喜欢学习的","scrollTop","bottom-right","</div></div>","origin","random",'<span class="happyNewYear">新年快乐</span>',"setHours","距 2022-08-28 上线","aside-status","div","4312110YUvgKe","尊重他人的","day_to_night","bbtalk","dark","pageYOffset","getDay",'" alt="avatar" onerror="this.src=\'https://cdn.cbd.int/mycpen-blog@0.0.0-ficveucsjd/img/flink404.svg\'; this.onerror = null;">\n <a class="" target="_blank" rel="noopener nofollow" href="',"background: #fadfa3; padding:5px 0;","hide","toPageText","mycpen1-about-page-tag","getTime","#name","disconnect","darkmode_navswitch",'" target="_blank" rel="noopener nofollow" data-title="',"nameTextStyle","12.13","setDate","split","log","有责任感的","stop","toPageButton","有正义感的","mycpen1-tags-page-cloudTags-","#p_span_month","padEnd","location","有激情的","pjax:complete","慷慨的","cssText","文静的","category","#p_span_day","1437696iaJTNJ","info",".cf-overshow"," | Mycpen","darkmode_sidebarSwitch","data-download",".page .layout #category #category-page-categories","tagName","英俊的","/redirect.html?url=","#nav-totop","friendstatus","autoplay","MTAvMjIvMTk5OCAwMA==","MDA6MDA=","darkmode_consoleSwitch","有责任心的","documentElement","%c ","created","onresize","cardRefreshTimes","#pBar_week","clientHeight","善于沟通的","有幽默感的","postv2?name=","parse","2hxwkxA","幽默的","click","MDA6MDA6MDA=","-01-01 00:00:00","100.00","floor","legend","waterfall"," / 007","style","input[name='commail']","https://www.cpen.top:8002/","target","#aside-content .card-widget#card-widget-schedule .item-content .schedule-today","#newYear .today","preventDefault","appendChild","有趣的","currentTarget","link_list","el-textarea__inner","setOption","name","link","getFullYear","none","hasAttribute","pause","hour"," MYCPEN BLOG ","setMonth","axisLabel","object","push","#waterfall","#pBar_year","max","好奇的","darkmode","loadData","pathname","body","input[name='email']","谦虚的","color:#030307","NzcheckLocalSite","json","OwO-body","firstChild","getElementById","tagPageActive","xAxis","#inpName",".page-number","data-theme","px; left:","theme","replaceChild",'\n <div class="cf-overshow">\n <div class="cf-overshow-head">\n <img class="cf-img-avatar avatar" src="',"#newYear .newYear-time","disqus_thread","hide-aside","className","PressEscapeKey","有智慧的","\n链接:","mycpen1-categories-page-cloudCategories-","有魅力的","cpRemind","11.30","07.07","article_num","顽强的",".schedule-r2 .schedule-d1 .aside-span2",".cf-overshow-close","深沉的","#percent","可靠的","#comment_email","getElementsByClassName","focus","有同情心的","08.14","#bber time","getDate","NzcheckLink","owo-big","善于领导的","#consoleHideAside","keydown","toFixed","tag","16SIXvYq","09.18","体贴的",'style="color: var(--mycpen1-main); opacity: 1;"',"input[name='comname']","dataset","OjAw","stringify","statistical_data","标题:","querySelectorAll","HTMLEvents","$1:$2$3","post-comment","trim",".aplayer-fixed .aplayer-icon.aplayer-icon-lrc","#article-container .flink .flink-list > .flink-list-item.失联 > a","lineStyle","change","细心的","未获取到订阅内容","flink-mycpen1-rss-lost-friends","MjggMDA6MDA6MDA=","now","not_lost_friends","MjIvMjA1OCAwMDowMA==","src","敏捷的","join","removeClass","未获取到文章卡片","toLocaleDateString","mycpen1-fcircle-page-tag","catch","splice","大方的",'<span class="unit">天</span></span>',"MTA=","localhost:4000","聪明的","tags-chart","有执行能力的","yAxis","有学习能力的","_blank","clientWidth","comment-tips","day","3528QbDOeb","observe","total_friend_num","自信的","</a><span ","lost_friends","saveData","距 2025-05-23 计时","test","setSelectionRange","abs","scrollY","createElement","show","美丽的","#console","1783700qhSIDi","article_data","next","essayDiffDate","mycpen1-link-page-tag","#email","cf-overlay","value","善解人意的","flink-mycpen1-rss-not-lost-friends","MTAvMjIvMjA=","getFooterRandomFlink","rgba(255,255,255,0.7)","then","onscroll","input","务实的","#article-container .flink .flink-list > .flink-list-item.单向 > a","set","Snackbar","坚强的","#bber","优雅的","距 1998-00-00 计时","padStart","beforeend","console",".schedule-r1 .schedule-d1 .aside-span2","from","cf-show-now","西兰花","09.09","querySelector","randomLink","disqusReset","有决策能力的","time","addedNodes","page/","start","有眼光的","开朗的","essayChangeTimeInEssayByMycpen","05/23/2025 00:00:00","endsWith","parentNode","input[name='author']","2954476OCnzSY","innerText","scrollHeight","25940YNlQPI","type","label","innerHTML","有担当的","可爱的","#post-comment","display:flex; height:","light","card-widget-schedule","classList","children","守信的","data-link","replace","223637nzprgC","function","loadUrl","#inpEmail",'\n <div id="cf-overlay" class="cf-new-add" onclick="mycpen1js.linkPageCloseShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n ',"05.12","linkPageFetchShow","date_suffix","3527511sGOrSP","rel",'</a>\n </div>\n <div class="cf-overshow-content">\n ',"dispatchEvent","textStyle","afterend",".essay_bar_swiper_container","just","nextElementSibling","getMonth","initialise","#4b81e8","温柔的","富有想象力的","axisLine","火龙果","宽容的","活泼的","night_to_day","javascript:void(0);","apipublicurl","#p_span_week","contains","深刻的","cf-overshow","snackbarShow","remove","mycpen.cn","keyCode","IMG","forEach",'\n <div class="cf-overshow-close" onclick="mycpen1js.linkPageCloseShow()"></div>\n ',"敬业的","series","categoryPageActive","display","有艺术细胞的","cookieconsent","有想象力的",".tk-avatar.tk-clickable:not(.already-clear-clickEvent)",'<i class="fa-solid fa-clock"></i> <span>距离</span> ',"</span></p>\n ","footer","\n> ","offsetHeight","bind","toString","haveValue","includes","复制成功","round","有组织能力的","afterbegin","#pBar_month","#pBar_day","setAttribute","select","100%","contextmenu","offsetTop",'<img src="',"#newYear","Mycpen - Personal Blog","/json/link.json","noopener external nofollow noreferrer","纯真的","donotreply@mycpen.cn","mycpen1-essay-page-tag","long","善良的","#newYear .title","onmouseover","addEventListener","insertAdjacentHTML","color","有分析能力的","switchPostChart","#mail","有创新能力的","inline","href","undefined",'<span class="day">',"getAttribute","距 2028-00-00 计时","essayReflashEssayWaterFall"];return(_0x130b=function(){return e})()}function _0x2566(e,t){var a=_0x130b();return(_0x2566=function(e,t){return a[e-=475]})(e,t)}function whenDOMReadyMycpen1JS(){var e=_0x47c395;mycpen1js.changeNavPageNameTitle(),mycpen1js[e(700)](),mycpen1js.removeBodyPaceClass(),mycpen1js[e(583)](),mycpen1js[e(796)](),mycpen1js.listenToPageInputPress(),mycpen1js.owoBigfunc(),document[e(582)](e(829))&&(mycpen1js[e(731)](),mycpen1js[e(847)](),window[e(524)]=()=>{var t=e;document[t(582)]("mycpen1-essay-page-tag")&&(mycpen1js[t(847)](),setTimeout((()=>{mycpen1js[t(847)]()}),300))}),document[e(582)](e(571))[e(834)](e(534),(function(){setTimeout(mycpen1js[e(838)],100)})),document[e(582)](e(482))[e(834)]("click",(function(){setTimeout(mycpen1js[e(838)],100)})),document.getElementById(e(519)).addEventListener(e(534),(function(){setTimeout(mycpen1js[e(838)],100)})),document[e(582)](e(508))[e(834)](e(534),(function(){setTimeout(mycpen1js[e(838)],100)})),mycpen1js[e(601)](),mycpen1js.closeAboutAplayer(),document.getElementById(e(748))&&(mycpen1js[e(525)](),setInterval((()=>{mycpen1js[e(525)]()}),1e3)),document.getElementById("mycpen1-link-page-tag-2")&&mycpen1js.linkPageRssAliveCheck(),document.getElementById(e(693))&&(mycpen1js[e(618)](e(706)),mycpen1js.NzcheckLink(e(641))),document[e(582)](e(478))&&mycpen1js[e(618)]("#article-container #mycpen1-about-page-tag-sponsor-part a"),document.getElementById(e(638))&&setInterval((()=>{var t=e;if(document[t(721)](".tk-comments-container")){mycpen1js.NzcheckLink(".tk-comments-container a:not(.already-redirect-link)");document[t(635)](t(801))[t(792)]((e=>{var a=t;e.classList[a(858)]("already-clear-clickEvent");const n=document[a(685)]("a");for(Array[a(717)](e.attributes).forEach((e=>{var t=a;n.setAttribute(e[t(555)],e[t(696)])}));e[a(581)];)n[a(549)](e[a(581)]);e[a(734)][a(590)](n,e);const o=n[a(770)][a(862)].firstElementChild[a(862)][a(845)](a(842));n.setAttribute(a(842),o),n[a(817)](a(545),a(669)),n[a(817)](a(763),a(826))}))}}),1e3)}mycpen1js[_0x47c395(715)](),document.removeEventListener(_0x47c395(622),mycpen1js[_0x47c395(596)]),document[_0x47c395(834)]("keydown",mycpen1js.PressEscapeKey),window[_0x47c395(703)]=mycpen1js.getNavRightPagePercent,mycpen1js.removeaAlayerFixedLrc(),whenDOMReadyMycpen1JS(),document[_0x47c395(834)](_0x47c395(498),whenDOMReadyMycpen1JS);
|
package/js/fcircle.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var frdata={apiurl:"https://www.cpen.top:8002/",defaultFish:100,hungryFish:100},fdatalist=JSON.parse(localStorage.getItem("fdatalist")),fcdata={jsonurl:"",apiurl:"",apipublicurl:fdatalist.apiurl,initnumber:fdatalist.initnumber,stepnumber:fdatalist.stepnumber,article_sort:"created",error_img:"https://jsd.cdn.zzko.cn/npm/mycpen-blog@0.0.0-fibnucbndy/img/flink404.svg"};if("undefined"!=typeof fdataUser)for(var key in fdataUser)fdataUser[key]&&(fdata[key]=fdataUser[key]);var article_num="",sortNow="",UrlNow="",friends_num="",container=document.getElementById("fcircleContainer")||document.getElementById("cf-container"),localSortNow=localStorage.getItem("sortNow"),localUrlNow=localStorage.getItem("urlNow");function loadStatistical(a){article_num=a.article_num,friends_num=a.friends_num;a.friends_num,a.active_num,a.article_num;var e=`\n <div id="cf-more" class="cf-new-add" onclick="loadNextArticle()"><i class="fas fa-angle-double-down"></i></div>\n <div id="cf-footer" class="cf-new-add">\n <span id="cf-version-up" onclick="checkVersion()"></span>\n <span class="cf-data-lastupdated">Powered by <a href="https://github.com/Rock-Candy-Tea/hexo-circle-of-friends" target="_blank" rel="noopener external nofollow noreferrer">FriendCircle</a></span>\n <span class="cf-data-lastupdated">订阅:${a.friends_num} 活跃:${a.active_num} 日志:${a.article_num}</span>\n <span class="cf-data-lastupdated">更新于:${a.last_updated_time}</span>\n 排序:<span id="cf-change-created" data-sort="created" onclick="changeSort(event)" class="${"created"==sortNow?"cf-change-now":""}">创建时间</span> | <span id="cf-change-updated" data-sort="updated" onclick="changeSort(event)" class="${"updated"==sortNow?"cf-change-now":""}" >更新时间</span>\n </div>\n <div id="cf-overlay" class="cf-new-add" onclick="closeShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n `;container&&(container.insertAdjacentHTML("afterend",e),setTimeout((function(){document.getElementById("hexo-circle-of-friends-root-notice").innerHTML=""}),0))}function loadArticleItem(a,e,t){var r="",o=t;if(t>article_num&&(o=article_num),e<article_num){for(var l=e;l<o;l++){var n=a[l];r+=`\n <div class="cf-article">\n <a class="cf-article-title" href="${n.link}" target="_blank" rel="noopener nofollow" data-title="${n.title}">${n.title}</a>\n <span class="cf-article-floor">${n.floor}</span>\n <div class="cf-article-avatar no-lightbox flink-item-icon">\n <a onclick="openMeShowV2(event)" data-link="${n.link}" data-name="${n.author}" class="" target="_blank" rel="noopener nofollow" href="javascript:;"><img class="cf-img-avatar avatar" src="${n.avatar}" alt="avatar" onerror="this.src='${fcdata.error_img}'; this.onerror = null;"><span class="cf-article-author">${n.author}</span></a>\n <span class="cf-article-time">\n <span class="cf-time-created" style="${"created"==sortNow?"":"display:none"}">${n.created}</span>\n <span class="cf-time-updated" style="${"updated"==sortNow?"":"display:none"}">${n.updated}</span>\n </span>\n </div>\n </div>\n `}container.insertAdjacentHTML("beforeend",r),fetchNextArticle()}else document.getElementById("cf-more").outerHTML='<div id="cf-more" class="cf-new-add" onclick="loadNoArticle()"><small>一切皆有尽头!</small></div>'}function loadFcircleShow(a,e){for(var t=`\n <div class="cf-overshow">\n <div class="cf-overshow-head">\n <img class="cf-img-avatar avatar" src="${a.avatar}" alt="avatar" onerror="this.src='${fcdata.error_img}'; this.onerror = null;">\n <a class="" target="_blank" rel="noopener nofollow" href="${a.link}">${a.name}</a>\n </div>\n <div class="cf-overshow-content">\n `,r=0;r<a.article_num;r++){var o=e[r];let a="";Date.now()-new Date(o.created+" 00:00:00").getTime()<=1728e5&&(a='style="color: var(--mycpen1-main); opacity: 1;"'),t+=`\n <p><a class="cf-article-title" href="${o.link}" target="_blank" rel="noopener nofollow" data-title="${o.title}">${o.title}</a><span ${a}>${o.created}</span></p>\n `}t+="</div></div>",document.getElementById("cf-overshow").insertAdjacentHTML("beforeend",t),document.getElementById("cf-overshow").className="cf-show-now"}function fetchNextArticle(){var start=document.getElementsByClassName("cf-article").length,end=start+fcdata.stepnumber,articleNum=article_num;if(end>articleNum&&(end=articleNum),start<articleNum){UrlNow=localStorage.getItem("urlNow");var fetchUrl=UrlNow+"rule="+sortNow+"&start="+start+"&end="+end;fetch(fetchUrl).then((a=>a.json())).then((json=>{var nextArticle=eval(json.article_data);localStorage.setItem("nextArticle",JSON.stringify(nextArticle))}))}else(start=articleNum)&&(document.getElementById("cf-more").outerHTML='<div id="cf-more" class="cf-new-add" onclick="loadNoArticle()"><small>一切皆有尽头!</small></div>')}function loadNextArticle(){for(var a=JSON.parse(localStorage.getItem("nextArticle")),e="",t=0;t<a.length;t++){var r=a[t];e+=`\n <div class="cf-article">\n <a class="cf-article-title" href="${r.link}" target="_blank" rel="noopener nofollow" data-title="${r.title}">${r.title}</a>\n <span class="cf-article-floor">${r.floor}</span>\n <div class="cf-article-avatar no-lightbox flink-item-icon">\n <a onclick="openMeShowV2(event)" data-link="${r.link}" data-name="${r.author}" class="" target="_blank" rel="noopener nofollow" href="javascript:;"><img class="cf-img-avatar avatar" src="${r.avatar}" alt="avatar" onerror="this.src='${fcdata.error_img}'; this.onerror = null;"><span class="cf-article-author">${r.author}</span></a>\n <span class="cf-article-time">\n <span class="cf-time-created" style="${"created"==sortNow?"":"display:none"}">${r.created}</span>\n <span class="cf-time-updated" style="${"updated"==sortNow?"":"display:none"}">${r.updated}</span>\n </span>\n </div>\n </div>\n `}container.insertAdjacentHTML("beforeend",e),lazyLoadInstance.update(),fetchNextArticle()}function loadNoArticle(){var a=sortNow+"ArticleData";localStorage.removeItem(a),localStorage.removeItem("statisticalData"),document.getElementById("cf-more").remove(),window.scrollTo(0,document.getElementsByClassName("cf-state").offsetTop)}function clearLocal(){localStorage.removeItem("updatedArticleData"),localStorage.removeItem("createdArticleData"),localStorage.removeItem("nextArticle"),localStorage.removeItem("statisticalData"),localStorage.removeItem("sortNow"),localStorage.removeItem("urlNow"),location.reload()}function checkVersion(){var a=fcdata.apiurl+"version";fetch(a).then((a=>a.json())).then((a=>{var e=a.status,t=a.current_version,r=a.latest_version,o=document.getElementById("cf-version-up");o.innerHTML=0==e?"当前版本:v"+t:1==e?"发现新版本:v"+t+" ↦ "+r:"网络错误,检测失败!"}))}function changeEgg(){if(fcdata.jsonurl||fcdata.apiurl){document.querySelectorAll(".cf-new-add").forEach((a=>a.remove())),localStorage.removeItem("updatedArticleData"),localStorage.removeItem("createdArticleData"),localStorage.removeItem("nextArticle"),localStorage.removeItem("statisticalData"),container.innerHTML="",UrlNow=localStorage.getItem("urlNow");var a=fcdata.apipublicurl+"all?";UrlNow!==a?changeUrl=fcdata.apipublicurl+"all?":fcdata.jsonurl?changeUrl=fcdata.apipublicurl+"postjson?jsonlink="+fcdata.jsonurl+"&":fcdata.apiurl&&(changeUrl=fcdata.apiurl+"all?"),localStorage.setItem("urlNow",changeUrl),FetchFriendCircle(sortNow,changeUrl)}else clearLocal()}function FetchFriendCircle(sortNow,changeUrl){var end=fcdata.initnumber,fetchUrl=UrlNow+"rule="+sortNow+"&start=0&end="+end;changeUrl&&(fetchUrl=changeUrl+"rule="+sortNow+"&start=0&end="+end),fetch(fetchUrl).then((a=>a.json())).then((json=>{var statisticalData=json.statistical_data,articleData=eval(json.article_data),articleSortData=sortNow+"ArticleData";loadStatistical(statisticalData),loadArticleItem(articleData,0,end),localStorage.setItem("statisticalData",JSON.stringify(statisticalData)),localStorage.setItem(articleSortData,JSON.stringify(articleData))}))}function changeSort(a){sortNow=a.currentTarget.dataset.sort,localStorage.setItem("sortNow",sortNow),document.querySelectorAll(".cf-new-add").forEach((a=>a.remove())),container.innerHTML="",changeUrl=localStorage.getItem("urlNow"),container.style.opacity=0,document.getElementById("hexo-circle-of-friends-root-notice").innerHTML="与主机通讯中......",setTimeout((function(){container.innerHTML="",initFriendCircle(sortNow,changeUrl),container.style.opacity=1}),300),fcdata.apiurl&&checkVersion()}function openMeShow(a){a.preventDefault();var e=a.currentTarget.dataset.link.replace(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,"$1:$2$3"),t="";t=fcdata.apiurl?fcdata.apiurl+"post?link="+e:fcdata.apipublicurl+"post?link="+e,"ok"==noClick&&(noClick="no",fetchShow(t))}function openMeShowV2(a){a.preventDefault();var e=encodeURIComponent(a.currentTarget.dataset.name),t="";t=fcdata.apiurl?fcdata.apiurl+"postv2?name="+e:fcdata.apipublicurl+"postv2?name="+e,"ok"==noClick&&(noClick="no",fetchShow(t))}function closeShow(){document.getElementById("cf-overlay").className-="cf-show-now",document.getElementById("cf-overshow").className-="cf-show-now",setTimeout((function(){var a=document.querySelectorAll("#cf-overshow > :not(.cf-overshow-close)"),e=document.querySelectorAll("#cf-overshow > .cf-overshow-close");a.forEach((function(a){a.remove()}));for(var t=1;t<e.length;t++)e[t].remove()}),100)}localSortNow&&localUrlNow?(sortNow=localSortNow,UrlNow=localUrlNow):(sortNow=fcdata.article_sort,UrlNow=fcdata.jsonurl?fcdata.apipublicurl+"postjson?jsonlink="+fcdata.jsonurl+"&":fcdata.apiurl?fcdata.apiurl+"all?":fcdata.apipublicurl+"all?",localStorage.setItem("urlNow",UrlNow),localStorage.setItem("sortNow",sortNow));var noClick="ok";function openToShow(){var a="";a=fcdata.apiurl?fcdata.apiurl+"post":fcdata.apipublicurl+"post","ok"==noClick&&(noClick="no",fetchShow(a))}function fetchShow(url){var closeHtml='\n <div class="cf-overshow-close" onclick="closeShow()"></div>\n ';fetch(url).then((a=>a.json())).then((json=>{noClick="ok";var statisticalData=json.statistical_data,articleData=eval(json.article_data);loadFcircleShow(statisticalData,articleData),document.getElementById("cf-overlay").className="cf-show-now",document.getElementById("cf-overshow").insertAdjacentHTML("afterbegin",closeHtml)})).catch((a=>{btf.snackbarShow("未获取到文章卡片")}))}function initFriendCircle(a,e){var t=a+"ArticleData";JSON.parse(localStorage.getItem("statisticalData")),JSON.parse(localStorage.getItem(t));container.innerHTML="",FetchFriendCircle(a,e)}initFriendCircle(sortNow);
|
1
|
+
function _0x4a88(){var a=["article_num","hexo-circle-of-friends-root-notice","getElementsByClassName","256853krDwii",".cf-new-add","parse",'</span>\n <span class="cf-time-updated" style="','<div id="cf-more" class="cf-new-add" onclick="loadNoArticle()"><small>一切皆有尽头!</small></div>','" target="_blank" rel="noopener nofollow" data-title="',"https://cdn.cbd.int/mycpen-blog@0.0.0-ficveucsjd/img/flink404.svg","title","dataset","apiurl",'\n <div id="cf-more" class="cf-new-add" onclick="loadNextArticle()"><i class="fas fa-angle-double-down"></i></div>\n <div id="cf-footer" class="cf-new-add">\n <span id="cf-version-up" onclick="checkVersion()"></span>\n <span class="cf-data-lastupdated">Powered by <a href="https://github.com/Rock-Candy-Tea/hexo-circle-of-friends" target="_blank" rel="noopener external nofollow noreferrer">FriendCircle</a></span>\n <span class="cf-data-lastupdated">订阅:'," ↦ ","cf-overshow","removeItem",'</span>\n </div>\n <div class="cf-data-active" onclick="changeEgg()">\n <span class="cf-label">活跃</span>\n <span class="cf-message">',"initnumber","statisticalData","catch","active_num","cf-show-now","updated","querySelectorAll",'\'; this.onerror = null;"><span class="cf-article-author">',"error_img","createdArticleData","currentTarget","postjson?jsonlink=","cf-container","网络错误,检测失败!","preventDefault","json","snackbarShow","fdatalist","innerHTML","rule=","created","length","outerHTML","afterbegin","</span>\n </span>\n </div>\n </div>\n ",'</a>\n <span class="cf-article-floor">',"current_version",'</span>\n <div class="cf-article-avatar no-lightbox flink-item-icon">\n <a onclick="openMeShowV2(event)" data-link="',"16055316qLxUTl","未获取到文章卡片","article_sort","article_data","floor","className",'" data-name="',"postv2?name=","name",'\n <div class="cf-overshow-close" onclick="closeShow()"></div>\n ',"&start=0&end=","all?",'">创建时间</span> | <span id="cf-change-updated" data-sort="updated" onclick="changeSort(event)" class="',"post?link=","1669878qNqohI","urlNow",'" >Updated</span>\n </div>\n </div>\n ',"8240QqnKfu","setItem","status","fcircleContainer","cf-change-now","</a><span ","post","offsetTop",'</span>\n 排序:<span id="cf-change-created" data-sort="created" onclick="changeSort(event)" class="',"update","updatedArticleData",'\'; this.onerror = null;">\n <a class="" target="_blank" rel="noopener nofollow" href="','</a>\n </div>\n <div class="cf-overshow-content">\n ',"1024PNcHoB","5874496GHHZLJ","https://www.cpen.top:8002/","author","style","sortNow",'</span>\n <span class="cf-data-lastupdated">更新于:',"stringify","avatar","afterend","$1:$2$3","3RdbTCX","ArticleData","sort","&start=","forEach","当前版本:v",'</span></a>\n <span class="cf-article-time">\n <span class="cf-time-created" style="',"#cf-overshow > .cf-overshow-close","getTime","2027028iIPaSQ","getElementById","#cf-overshow > :not(.cf-overshow-close)"," 日志:","insertAdjacentHTML",'" >更新时间</span>\n </div>\n <div id="cf-overlay" class="cf-new-add" onclick="closeShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n ',"beforeend",'\n <div id="cf-state" class="cf-new-add">\n <div class="cf-state-data">\n <div class="cf-data-friends" onclick="openToShow()">\n <span class="cf-label">订阅</span>\n <span class="cf-message">',"3223031fzWKQy","stepnumber",'\n <div class="cf-article">\n <a class="cf-article-title" href="',"&end=","cf-version-up","getItem",'" alt="avatar" onerror="this.src=\'',"nextArticle",'" class="" target="_blank" rel="noopener nofollow" href="javascript:;"><img class="cf-img-avatar avatar" src="',"reload","now","display:none","apipublicurl","friends_num","then","cf-overlay","link",'</span>\n </div>\n <div class="cf-data-article" onclick="clearLocal()">\n <span class="cf-label">日志</span>\n <span class="cf-message">'," 活跃:","cf-article","statistical_data","opacity","jsonurl","remove","cf-more","</div></div>","version",'\n <p><a class="cf-article-title" href="'];return(_0x4a88=function(){return a})()}var _0x45dc2f=_0x17b9;!function(a,c){for(var e=_0x17b9,t=_0x4a88();;)try{if(537613===parseInt(e(408))/1+parseInt(e(501))/2*(parseInt(e(492))/3)+-parseInt(e(481))/4*(parseInt(e(468))/5)+parseInt(e(465))/6+parseInt(e(509))/7+parseInt(e(482))/8+-parseInt(e(451))/9)break;t.push(t.shift())}catch(a){t.push(t.shift())}}();var frdata={apiurl:_0x45dc2f(483),defaultFish:100,hungryFish:100},fdatalist=JSON[_0x45dc2f(410)](localStorage[_0x45dc2f(514)](_0x45dc2f(440))),fcdata={jsonurl:"",apiurl:"",apipublicurl:fdatalist[_0x45dc2f(417)],initnumber:fdatalist[_0x45dc2f(423)],stepnumber:fdatalist[_0x45dc2f(510)],article_sort:_0x45dc2f(443),error_img:_0x45dc2f(414)};function _0x17b9(a,c){var e=_0x4a88();return(_0x17b9=function(a,c){return e[a-=395]})(a,c)}if("undefined"!=typeof fdataUser)for(var key in fdataUser)fdataUser[key]&&(fdata[key]=fdataUser[key]);var article_num="",sortNow="",UrlNow="",friends_num="",container=document[_0x45dc2f(502)](_0x45dc2f(471))||document[_0x45dc2f(502)](_0x45dc2f(435)),localSortNow=localStorage[_0x45dc2f(514)](_0x45dc2f(486)),localUrlNow=localStorage[_0x45dc2f(514)](_0x45dc2f(466));function loadStatistical(a){var c=_0x45dc2f;article_num=a.article_num,friends_num=a[c(522)];c(508),a[c(522)],c(422),a[c(426)],c(526),a[c(405)],c(443),sortNow==c(428)&&c(472),c(467);var e=c(418)+a[c(522)]+c(395)+a.active_num+c(504)+a[c(405)]+c(487)+a.last_updated_time+c(476)+(sortNow==c(443)?c(472):"")+c(463)+(sortNow==c(428)?"cf-change-now":"")+c(506);container&&(container[c(505)](c(490),e),setTimeout((function(){var a=c;document.getElementById(a(406))[a(441)]=""}),0))}function loadArticleItem(a,c,e){var t=_0x45dc2f,n="",o=e;if(e>article_num&&(o=article_num),c<article_num){for(var r=c;r<o;r++){var l=a[r];n+='\n <div class="cf-article">\n <a class="cf-article-title" href="'+l[t(525)]+t(413)+l[t(415)]+'">'+l[t(415)]+t(448)+l.floor+'</span>\n <div class="cf-article-avatar no-lightbox flink-item-icon">\n <a onclick="openMeShowV2(event)" data-link="'+l[t(525)]+t(457)+l[t(484)]+t(517)+l[t(489)]+t(515)+fcdata[t(431)]+'\'; this.onerror = null;"><span class="cf-article-author">'+l[t(484)]+'</span></a>\n <span class="cf-article-time">\n <span class="cf-time-created" style="'+(sortNow==t(443)?"":t(520))+'">'+l[t(443)]+t(411)+(sortNow==t(428)?"":"display:none")+'">'+l.updated+t(447)}container[t(505)](t(507),n),fetchNextArticle()}else document[t(502)](t(401))[t(445)]='<div id="cf-more" class="cf-new-add" onclick="loadNoArticle()"><small>一切皆有尽头!</small></div>'}function loadFcircleShow(a,c){for(var e=_0x45dc2f,t='\n <div class="cf-overshow">\n <div class="cf-overshow-head">\n <img class="cf-img-avatar avatar" src="'+a[e(489)]+'" alt="avatar" onerror="this.src=\''+fcdata[e(431)]+e(479)+a[e(525)]+'">'+a[e(459)]+e(480),n=0;n<a.article_num;n++){var o=c[n];let a="";Date[e(519)]()-new Date(o[e(443)]+" 00:00:00")[e(500)]()<=1728e5&&(a='style="color: var(--mycpen1-main); opacity: 1;"'),t+=e(404)+o.link+e(413)+o[e(415)]+'">'+o[e(415)]+e(473)+a+">"+o[e(443)]+"</span></p>\n "}t+=e(402),document[e(502)](e(420)).insertAdjacentHTML(e(507),t),document.getElementById("cf-overshow")[e(456)]=e(427)}function fetchNextArticle(){var _0x243b5f=_0x45dc2f,_0x1e7277=document[_0x243b5f(407)](_0x243b5f(396))[_0x243b5f(444)],_0x381502=_0x1e7277+fcdata.stepnumber,_0x155c62=article_num;if(_0x381502>_0x155c62&&(_0x381502=_0x155c62),_0x1e7277<_0x155c62){UrlNow=localStorage[_0x243b5f(514)](_0x243b5f(466));var _0x569835=UrlNow+_0x243b5f(442)+sortNow+_0x243b5f(495)+_0x1e7277+_0x243b5f(512)+_0x381502;fetch(_0x569835).then((a=>a[_0x243b5f(438)]()))[_0x243b5f(523)]((_0x218ec1=>{var _0x10cfbd=_0x243b5f,_0x2e12db=eval(_0x218ec1[_0x10cfbd(454)]);localStorage[_0x10cfbd(469)](_0x10cfbd(516),JSON[_0x10cfbd(488)](_0x2e12db))}))}else(_0x1e7277=_0x155c62)&&(document.getElementById(_0x243b5f(401))[_0x243b5f(445)]=_0x243b5f(412))}function loadNextArticle(){for(var a=_0x45dc2f,c=JSON.parse(localStorage[a(514)](a(516))),e="",t=0;t<c[a(444)];t++){var n=c[t];e+=a(511)+n.link+a(413)+n[a(415)]+'">'+n.title+'</a>\n <span class="cf-article-floor">'+n[a(455)]+a(450)+n[a(525)]+a(457)+n[a(484)]+a(517)+n[a(489)]+a(515)+fcdata[a(431)]+a(430)+n[a(484)]+a(498)+(sortNow==a(443)?"":"display:none")+'">'+n.created+a(411)+(sortNow==a(428)?"":"display:none")+'">'+n[a(428)]+a(447)}container[a(505)](a(507),e),lazyLoadInstance[a(477)](),fetchNextArticle()}function loadNoArticle(){var a=_0x45dc2f,c=sortNow+a(493);localStorage[a(421)](c),localStorage[a(421)](a(424)),document[a(502)](a(401)).remove(),window.scrollTo(0,document[a(407)]("cf-state")[a(475)])}function clearLocal(){var a=_0x45dc2f;localStorage[a(421)](a(478)),localStorage[a(421)](a(432)),localStorage[a(421)](a(516)),localStorage.removeItem("statisticalData"),localStorage[a(421)](a(486)),localStorage.removeItem(a(466)),location[a(518)]()}function checkVersion(){var a=_0x45dc2f,c=fcdata.apiurl+a(403);fetch(c).then((a=>a.json()))[a(523)]((c=>{var e=a,t=c[e(470)],n=c[e(449)],o=c.latest_version,r=document.getElementById(e(513));0==t?r[e(441)]=e(497)+n:1==t?r.innerHTML="发现新版本:v"+n+e(419)+o:r[e(441)]=e(436)}))}function changeEgg(){var a=_0x45dc2f;if(fcdata[a(399)]||fcdata[a(417)]){document[a(429)](a(409))[a(496)]((c=>c[a(400)]())),localStorage[a(421)](a(478)),localStorage.removeItem(a(432)),localStorage[a(421)](a(516)),localStorage.removeItem(a(424)),container[a(441)]="",UrlNow=localStorage[a(514)](a(466));var c=fcdata[a(521)]+a(462);UrlNow!==c?changeUrl=fcdata[a(521)]+a(462):fcdata[a(399)]?changeUrl=fcdata.apipublicurl+a(434)+fcdata.jsonurl+"&":fcdata[a(417)]&&(changeUrl=fcdata[a(417)]+a(462)),localStorage[a(469)](a(466),changeUrl),FetchFriendCircle(sortNow,changeUrl)}else clearLocal()}function FetchFriendCircle(_0x9b714b,_0x45cdfa){var _0x15dfd9=_0x45dc2f,_0x2f6319=fcdata[_0x15dfd9(423)],_0x4fff00=UrlNow+"rule="+_0x9b714b+_0x15dfd9(461)+_0x2f6319;_0x45cdfa&&(_0x4fff00=_0x45cdfa+_0x15dfd9(442)+_0x9b714b+_0x15dfd9(461)+_0x2f6319),fetch(_0x4fff00)[_0x15dfd9(523)]((a=>a[_0x15dfd9(438)]()))[_0x15dfd9(523)]((_0x5456a1=>{var _0x1ccab0=_0x15dfd9,_0x326d4a=_0x5456a1.statistical_data,_0x4c8591=eval(_0x5456a1[_0x1ccab0(454)]),_0x5948bc=_0x9b714b+"ArticleData";loadStatistical(_0x326d4a),loadArticleItem(_0x4c8591,0,_0x2f6319),localStorage[_0x1ccab0(469)]("statisticalData",JSON[_0x1ccab0(488)](_0x326d4a)),localStorage[_0x1ccab0(469)](_0x5948bc,JSON[_0x1ccab0(488)](_0x4c8591))}))}function changeSort(a){var c=_0x45dc2f;sortNow=a[c(433)].dataset[c(494)],localStorage.setItem(c(486),sortNow),document[c(429)](c(409))[c(496)]((a=>a.remove())),container[c(441)]="",changeUrl=localStorage[c(514)](c(466)),container.style[c(398)]=0,document[c(502)](c(406))[c(441)]="与主机通讯中......",setTimeout((function(){var a=c;container.innerHTML="",initFriendCircle(sortNow,changeUrl),container[a(485)][a(398)]=1}),300),fcdata.apiurl&&checkVersion()}function openMeShow(a){var c=_0x45dc2f;a[c(437)]();var e=a.currentTarget[c(416)][c(525)].replace(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,c(491)),t="";t=fcdata[c(417)]?fcdata[c(417)]+c(464)+e:fcdata[c(521)]+c(464)+e,"ok"==noClick&&(noClick="no",fetchShow(t))}function openMeShowV2(a){var c=_0x45dc2f;a[c(437)]();var e=encodeURIComponent(a[c(433)][c(416)][c(459)]),t="";t=fcdata[c(417)]?fcdata.apiurl+"postv2?name="+e:fcdata[c(521)]+c(458)+e,"ok"==noClick&&(noClick="no",fetchShow(t))}function closeShow(){var a=_0x45dc2f;document[a(502)](a(524))[a(456)]-=a(427),document[a(502)](a(420))[a(456)]-=a(427),setTimeout((function(){var c=a,e=document.querySelectorAll(c(503)),t=document[c(429)](c(499));e[c(496)]((function(a){a[c(400)]()}));for(var n=1;n<t[c(444)];n++)t[n][c(400)]()}),100)}localSortNow&&localUrlNow?(sortNow=localSortNow,UrlNow=localUrlNow):(sortNow=fcdata[_0x45dc2f(453)],UrlNow=fcdata[_0x45dc2f(399)]?fcdata[_0x45dc2f(521)]+_0x45dc2f(434)+fcdata[_0x45dc2f(399)]+"&":fcdata[_0x45dc2f(417)]?fcdata.apiurl+_0x45dc2f(462):fcdata[_0x45dc2f(521)]+"all?",localStorage.setItem(_0x45dc2f(466),UrlNow),localStorage[_0x45dc2f(469)](_0x45dc2f(486),sortNow));var noClick="ok";function openToShow(){var a=_0x45dc2f,c="";c=fcdata.apiurl?fcdata[a(417)]+a(474):fcdata.apipublicurl+"post","ok"==noClick&&(noClick="no",fetchShow(c))}function fetchShow(_0xa8cd60){var _0x15ba36=_0x45dc2f,_0x5ee859=_0x15ba36(460);fetch(_0xa8cd60)[_0x15ba36(523)]((a=>a[_0x15ba36(438)]())).then((_0x79371e=>{var _0x5ce864=_0x15ba36;noClick="ok";var _0x32020c=_0x79371e[_0x5ce864(397)],_0x3906c2=eval(_0x79371e[_0x5ce864(454)]);loadFcircleShow(_0x32020c,_0x3906c2),document[_0x5ce864(502)](_0x5ce864(524))[_0x5ce864(456)]="cf-show-now",document.getElementById("cf-overshow")[_0x5ce864(505)](_0x5ce864(446),_0x5ee859)}))[_0x15ba36(425)]((a=>{var c=_0x15ba36;btf[c(439)](c(452))}))}function initFriendCircle(a,c){var e=_0x45dc2f,t=a+"ArticleData";JSON[e(410)](localStorage[e(514)](e(424))),JSON[e(410)](localStorage[e(514)](t));container[e(441)]="",FetchFriendCircle(a,c)}initFriendCircle(sortNow);
|