mycpen-blog 0.0.0-fyvbcebmdn → 0.0.0-fyvdazuhhw

Sign up to get free protection for your applications and to get access to all the features.
package/js/fcircle.js CHANGED
@@ -1 +1,338 @@
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://cdn.jsdmirror.com/npm/mycpen-blog@0.0.0-fyvbcebmdn/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
+ var _0x2a93f2 = _0x4703;
2
+ (function (_0x39c9a1, _0x5e04b2) {
3
+ var _0x2131f1 = _0x4703, _0x3fd64a = _0x39c9a1();
4
+ while (!![]) {
5
+ try {
6
+ var _0x29dd29 = parseInt(_0x2131f1(0x24f)) / 0x1 * (parseInt(_0x2131f1(0x20c)) / 0x2) + parseInt(_0x2131f1(0x222)) / 0x3 * (-parseInt(_0x2131f1(0x20a)) / 0x4) + -parseInt(_0x2131f1(0x23d)) / 0x5 * (parseInt(_0x2131f1(0x237)) / 0x6) + parseInt(_0x2131f1(0x203)) / 0x7 * (-parseInt(_0x2131f1(0x227)) / 0x8) + -parseInt(_0x2131f1(0x211)) / 0x9 * (parseInt(_0x2131f1(0x201)) / 0xa) + parseInt(_0x2131f1(0x205)) / 0xb + parseInt(_0x2131f1(0x20e)) / 0xc;
7
+ if (_0x29dd29 === _0x5e04b2)
8
+ break;
9
+ else
10
+ _0x3fd64a['push'](_0x3fd64a['shift']());
11
+ } catch (_0x1e442c) {
12
+ _0x3fd64a['push'](_0x3fd64a['shift']());
13
+ }
14
+ }
15
+ }(_0x5e7f, 0x540dd));
16
+ var frdata = {
17
+ 'apiurl': _0x2a93f2(0x21f),
18
+ 'defaultFish': 0x64,
19
+ 'hungryFish': 0x64
20
+ }, fdatalist = JSON[_0x2a93f2(0x1ec)](localStorage[_0x2a93f2(0x1df)](_0x2a93f2(0x239))), fcdata = {
21
+ 'jsonurl': '',
22
+ 'apiurl': '',
23
+ 'apipublicurl': fdatalist[_0x2a93f2(0x1e8)],
24
+ 'initnumber': fdatalist['initnumber'],
25
+ 'stepnumber': fdatalist[_0x2a93f2(0x244)],
26
+ 'article_sort': _0x2a93f2(0x25f),
27
+ 'error_img': _0x2a93f2(0x232)
28
+ };
29
+ if (typeof fdataUser !== _0x2a93f2(0x1fd))
30
+ for (var key in fdataUser) {
31
+ fdataUser[key] && (fdata[key] = fdataUser[key]);
32
+ }
33
+ var article_num = '', sortNow = '', UrlNow = '', friends_num = '', container = document[_0x2a93f2(0x257)]('fcircleContainer') || document[_0x2a93f2(0x257)]('cf-container'), localSortNow = localStorage[_0x2a93f2(0x1df)](_0x2a93f2(0x20f)), localUrlNow = localStorage[_0x2a93f2(0x1df)](_0x2a93f2(0x1e9));
34
+ if (localSortNow && localUrlNow)
35
+ sortNow = localSortNow, UrlNow = localUrlNow;
36
+ else {
37
+ sortNow = fcdata[_0x2a93f2(0x206)];
38
+ if (fcdata['jsonurl'])
39
+ UrlNow = fcdata[_0x2a93f2(0x1eb)] + _0x2a93f2(0x243) + fcdata[_0x2a93f2(0x1f2)] + '&';
40
+ else
41
+ fcdata[_0x2a93f2(0x1e8)] ? UrlNow = fcdata[_0x2a93f2(0x1e8)] + _0x2a93f2(0x1f8) : UrlNow = fcdata[_0x2a93f2(0x1eb)] + _0x2a93f2(0x1f8);
42
+ localStorage[_0x2a93f2(0x24c)](_0x2a93f2(0x1e9), UrlNow), localStorage[_0x2a93f2(0x24c)]('sortNow', sortNow);
43
+ }
44
+ function loadStatistical(_0x46b4b1) {
45
+ var _0x2a4688 = _0x2a93f2;
46
+ article_num = _0x46b4b1[_0x2a4688(0x1e3)], friends_num = _0x46b4b1[_0x2a4688(0x1f3)];
47
+ var _0x512907 = _0x2a4688(0x223) + _0x46b4b1['friends_num'] + _0x2a4688(0x208) + _0x46b4b1['active_num'] + _0x2a4688(0x21b) + _0x46b4b1['article_num'] + _0x2a4688(0x204) + (sortNow == _0x2a4688(0x25f) ? _0x2a4688(0x22b) : '') + _0x2a4688(0x21a) + (sortNow == _0x2a4688(0x1e7) ? _0x2a4688(0x22b) : '') + _0x2a4688(0x24d), _0x478eca = '\x0a\x20\x20\x20\x20<div\x20id=\x22cf-more\x22\x20class=\x22cf-new-add\x22\x20onclick=\x22loadNextArticle()\x22><i\x20class=\x22fas\x20fa-angle-double-down\x22></i></div>\x0a\x20\x20\x20\x20<div\x20id=\x22cf-footer\x22\x20class=\x22cf-new-add\x22>\x0a\x20\x20\x20\x20\x20<span\x20id=\x22cf-version-up\x22\x20onclick=\x22checkVersion()\x22></span>\x0a\x20\x20\x20\x20\x20<span\x20class=\x22cf-data-lastupdated\x22>Powered\x20by\x20<a\x20href=\x22https://github.com/Rock-Candy-Tea/hexo-circle-of-friends\x22\x20target=\x22_blank\x22\x20rel=\x22noopener\x20external\x20nofollow\x20noreferrer\x22>FriendCircle</a></span>\x0a\x20\x20\x20\x20\x20<span\x20class=\x22cf-data-lastupdated\x22>订阅:' + _0x46b4b1[_0x2a4688(0x1f3)] + _0x2a4688(0x242) + _0x46b4b1[_0x2a4688(0x1f0)] + _0x2a4688(0x23e) + _0x46b4b1['article_num'] + _0x2a4688(0x202) + _0x46b4b1['last_updated_time'] + _0x2a4688(0x254) + (sortNow == _0x2a4688(0x25f) ? _0x2a4688(0x22b) : '') + '\x22>创建时间</span>\x20|\x20<span\x20id=\x22cf-change-updated\x22\x20data-sort=\x22updated\x22\x20onclick=\x22changeSort(event)\x22\x20class=\x22' + (sortNow == 'updated' ? _0x2a4688(0x22b) : '') + '\x22\x20>更新时间</span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20id=\x22cf-overlay\x22\x20class=\x22cf-new-add\x22\x20onclick=\x22closeShow()\x22></div>\x0a\x20\x20\x20\x20<div\x20id=\x22cf-overshow\x22\x20class=\x22cf-new-add\x22></div>\x0a\x20\x20';
48
+ container && (container[_0x2a4688(0x240)](_0x2a4688(0x259), _0x478eca), setTimeout(function () {
49
+ var _0x2b3939 = _0x2a4688;
50
+ document['getElementById']('hexo-circle-of-friends-root-notice')[_0x2b3939(0x1e1)] = '';
51
+ }, 0x0));
52
+ }
53
+ function loadArticleItem(_0xf8a2a6, _0x5768d2, _0x3eb051) {
54
+ var _0x40a520 = _0x2a93f2, _0x475cdd = '', _0x269e01 = article_num, _0x668e83 = _0x3eb051;
55
+ _0x3eb051 > _0x269e01 && (_0x668e83 = _0x269e01);
56
+ if (_0x5768d2 < _0x269e01) {
57
+ for (var _0x32c606 = _0x5768d2; _0x32c606 < _0x668e83; _0x32c606++) {
58
+ var _0x3eb8e7 = _0xf8a2a6[_0x32c606];
59
+ _0x475cdd += _0x40a520(0x1f5) + _0x3eb8e7[_0x40a520(0x215)] + _0x40a520(0x1f1) + _0x3eb8e7[_0x40a520(0x226)] + '\x22>' + _0x3eb8e7['title'] + _0x40a520(0x220) + _0x3eb8e7[_0x40a520(0x1e2)] + _0x40a520(0x25b) + _0x3eb8e7[_0x40a520(0x215)] + _0x40a520(0x251) + _0x3eb8e7[_0x40a520(0x25e)] + _0x40a520(0x1e6) + _0x3eb8e7['avatar'] + _0x40a520(0x241) + fcdata[_0x40a520(0x1fe)] + '\x27;\x20this.onerror\x20=\x20null;\x22><span\x20class=\x22cf-article-author\x22>' + _0x3eb8e7[_0x40a520(0x25e)] + _0x40a520(0x1ed) + (sortNow == _0x40a520(0x25f) ? '' : _0x40a520(0x1f4)) + '\x22>' + _0x3eb8e7[_0x40a520(0x25f)] + _0x40a520(0x212) + (sortNow == _0x40a520(0x1e7) ? '' : _0x40a520(0x1f4)) + '\x22>' + _0x3eb8e7[_0x40a520(0x1e7)] + _0x40a520(0x1e5);
60
+ }
61
+ container[_0x40a520(0x240)](_0x40a520(0x24b), _0x475cdd), fetchNextArticle();
62
+ } else
63
+ document['getElementById'](_0x40a520(0x22e))[_0x40a520(0x1f9)] = _0x40a520(0x207);
64
+ }
65
+ function loadFcircleShow(_0x5e6bef, _0x2b6251) {
66
+ var _0x451fca = _0x2a93f2, _0x1ccc29 = _0x451fca(0x230) + _0x5e6bef['avatar'] + _0x451fca(0x241) + fcdata['error_img'] + _0x451fca(0x217) + _0x5e6bef[_0x451fca(0x215)] + '\x22>' + _0x5e6bef[_0x451fca(0x23f)] + _0x451fca(0x234);
67
+ for (var _0x1651ab = 0x0; _0x1651ab < _0x5e6bef[_0x451fca(0x1e3)]; _0x1651ab++) {
68
+ var _0x13432d = _0x2b6251[_0x1651ab];
69
+ let _0x47e9c2 = '';
70
+ Date[_0x451fca(0x209)]() - new Date(_0x13432d[_0x451fca(0x25f)] + _0x451fca(0x221))[_0x451fca(0x235)]() <= 0x3e8 * 0x3c * 0x3c * 0x18 * 0x2 && (_0x47e9c2 = _0x451fca(0x200)), _0x1ccc29 += '\x0a\x20\x20\x20\x20\x20\x20<p><a\x20class=\x22cf-article-title\x22\x20\x20href=\x22' + _0x13432d[_0x451fca(0x215)] + _0x451fca(0x1f1) + _0x13432d[_0x451fca(0x226)] + '\x22>' + _0x13432d[_0x451fca(0x226)] + _0x451fca(0x249) + _0x47e9c2 + '>' + _0x13432d[_0x451fca(0x25f)] + '</span></p>\x0a\x20\x20\x20\x20';
71
+ }
72
+ _0x1ccc29 += _0x451fca(0x231), document[_0x451fca(0x257)](_0x451fca(0x256))[_0x451fca(0x240)]('beforeend', _0x1ccc29), document[_0x451fca(0x257)](_0x451fca(0x256))[_0x451fca(0x22d)] = _0x451fca(0x229);
73
+ }
74
+ function fetchNextArticle() {
75
+ var _0x465d6e = _0x2a93f2, _0x323184 = document[_0x465d6e(0x25c)](_0x465d6e(0x1fc))[_0x465d6e(0x21c)], _0x4c8f53 = _0x323184 + fcdata[_0x465d6e(0x244)], _0x126e6a = article_num;
76
+ _0x4c8f53 > _0x126e6a && (_0x4c8f53 = _0x126e6a);
77
+ if (_0x323184 < _0x126e6a) {
78
+ UrlNow = localStorage[_0x465d6e(0x1df)](_0x465d6e(0x1e9));
79
+ var _0x5ea013 = UrlNow + _0x465d6e(0x1f6) + sortNow + _0x465d6e(0x1fb) + _0x323184 + _0x465d6e(0x245) + _0x4c8f53;
80
+ fetch(_0x5ea013)[_0x465d6e(0x25d)](_0x4ad095 => _0x4ad095[_0x465d6e(0x20d)]())[_0x465d6e(0x25d)](_0x2f4500 => {
81
+ var _0x43eb5c = _0x465d6e, _0x37f2c1 = eval(_0x2f4500[_0x43eb5c(0x22a)]);
82
+ localStorage[_0x43eb5c(0x24c)](_0x43eb5c(0x25a), JSON['stringify'](_0x37f2c1));
83
+ });
84
+ } else
85
+ (_0x323184 = _0x126e6a) && (document[_0x465d6e(0x257)](_0x465d6e(0x22e))[_0x465d6e(0x1f9)] = '<div\x20id=\x22cf-more\x22\x20class=\x22cf-new-add\x22\x20onclick=\x22loadNoArticle()\x22><small>一切皆有尽头!</small></div>');
86
+ }
87
+ function loadNextArticle() {
88
+ var _0x49c934 = _0x2a93f2, _0x2086f9 = JSON['parse'](localStorage[_0x49c934(0x1df)](_0x49c934(0x25a))), _0x3e30aa = '';
89
+ for (var _0x340118 = 0x0; _0x340118 < _0x2086f9[_0x49c934(0x21c)]; _0x340118++) {
90
+ var _0x13fc74 = _0x2086f9[_0x340118];
91
+ _0x3e30aa += _0x49c934(0x1f5) + _0x13fc74[_0x49c934(0x215)] + _0x49c934(0x1f1) + _0x13fc74[_0x49c934(0x226)] + '\x22>' + _0x13fc74[_0x49c934(0x226)] + _0x49c934(0x220) + _0x13fc74[_0x49c934(0x1e2)] + _0x49c934(0x25b) + _0x13fc74['link'] + '\x22\x20data-name=\x22' + _0x13fc74[_0x49c934(0x25e)] + _0x49c934(0x1e6) + _0x13fc74[_0x49c934(0x225)] + _0x49c934(0x241) + fcdata[_0x49c934(0x1fe)] + _0x49c934(0x218) + _0x13fc74['author'] + _0x49c934(0x1ed) + (sortNow == _0x49c934(0x25f) ? '' : _0x49c934(0x1f4)) + '\x22>' + _0x13fc74[_0x49c934(0x25f)] + '</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-time-updated\x22\x20style=\x22' + (sortNow == _0x49c934(0x1e7) ? '' : _0x49c934(0x1f4)) + '\x22>' + _0x13fc74[_0x49c934(0x1e7)] + _0x49c934(0x1e5);
92
+ }
93
+ container['insertAdjacentHTML'](_0x49c934(0x24b), _0x3e30aa), lazyLoadInstance['update'](), fetchNextArticle();
94
+ }
95
+ function _0x4703(_0x4144ae, _0x36be89) {
96
+ var _0x5e7fab = _0x5e7f();
97
+ return _0x4703 = function (_0x4703f5, _0x8fbbbc) {
98
+ _0x4703f5 = _0x4703f5 - 0x1dc;
99
+ var _0x2ba348 = _0x5e7fab[_0x4703f5];
100
+ return _0x2ba348;
101
+ }, _0x4703(_0x4144ae, _0x36be89);
102
+ }
103
+ function loadNoArticle() {
104
+ var _0x46594a = _0x2a93f2, _0x2e0e0a = sortNow + 'ArticleData';
105
+ localStorage[_0x46594a(0x22c)](_0x2e0e0a), localStorage[_0x46594a(0x22c)]('statisticalData'), document[_0x46594a(0x257)](_0x46594a(0x22e))['remove'](), window[_0x46594a(0x214)](0x0, document[_0x46594a(0x25c)](_0x46594a(0x216))['offsetTop']);
106
+ }
107
+ function clearLocal() {
108
+ var _0x942c35 = _0x2a93f2;
109
+ localStorage[_0x942c35(0x22c)](_0x942c35(0x21e)), localStorage[_0x942c35(0x22c)]('createdArticleData'), localStorage[_0x942c35(0x22c)](_0x942c35(0x25a)), localStorage['removeItem']('statisticalData'), localStorage[_0x942c35(0x22c)](_0x942c35(0x20f)), localStorage['removeItem']('urlNow'), location[_0x942c35(0x1f7)]();
110
+ }
111
+ function checkVersion() {
112
+ var _0x442f85 = _0x2a93f2, _0x44f833 = fcdata[_0x442f85(0x1e8)] + 'version';
113
+ fetch(_0x44f833)[_0x442f85(0x25d)](_0x23b2c8 => _0x23b2c8[_0x442f85(0x20d)]())[_0x442f85(0x25d)](_0x92c507 => {
114
+ var _0x3030a6 = _0x442f85, _0x18e8e5 = _0x92c507[_0x3030a6(0x1de)], _0x332376 = _0x92c507[_0x3030a6(0x224)], _0x1043f7 = _0x92c507[_0x3030a6(0x233)], _0x3eadc2 = document['getElementById'](_0x3030a6(0x1ef));
115
+ if (_0x18e8e5 == 0x0)
116
+ _0x3eadc2[_0x3030a6(0x1e1)] = _0x3030a6(0x1e4) + _0x332376;
117
+ else
118
+ _0x18e8e5 == 0x1 ? _0x3eadc2[_0x3030a6(0x1e1)] = '发现新版本:v' + _0x332376 + '\x20↦\x20' + _0x1043f7 : _0x3eadc2[_0x3030a6(0x1e1)] = _0x3030a6(0x1ff);
119
+ });
120
+ }
121
+ function changeEgg() {
122
+ var _0x58716d = _0x2a93f2;
123
+ if (fcdata['jsonurl'] || fcdata[_0x58716d(0x1e8)]) {
124
+ document['querySelectorAll']('.cf-new-add')[_0x58716d(0x1fa)](_0x13ed2e => _0x13ed2e['remove']()), localStorage[_0x58716d(0x22c)](_0x58716d(0x21e)), localStorage[_0x58716d(0x22c)](_0x58716d(0x1ee)), localStorage[_0x58716d(0x22c)](_0x58716d(0x25a)), localStorage['removeItem'](_0x58716d(0x247)), container['innerHTML'] = '', UrlNow = localStorage['getItem']('urlNow');
125
+ var _0x565f37 = fcdata['apipublicurl'] + _0x58716d(0x1f8);
126
+ if (UrlNow !== _0x565f37)
127
+ changeUrl = fcdata['apipublicurl'] + _0x58716d(0x1f8);
128
+ else {
129
+ if (fcdata['jsonurl'])
130
+ changeUrl = fcdata['apipublicurl'] + _0x58716d(0x243) + fcdata['jsonurl'] + '&';
131
+ else
132
+ fcdata['apiurl'] && (changeUrl = fcdata[_0x58716d(0x1e8)] + 'all?');
133
+ }
134
+ localStorage[_0x58716d(0x24c)](_0x58716d(0x1e9), changeUrl), FetchFriendCircle(sortNow, changeUrl);
135
+ } else
136
+ clearLocal();
137
+ }
138
+ function FetchFriendCircle(_0x2c68ab, _0x5e90f0) {
139
+ var _0x558e91 = _0x2a93f2, _0x2d42b0 = fcdata[_0x558e91(0x228)], _0x413425 = UrlNow + _0x558e91(0x1f6) + _0x2c68ab + _0x558e91(0x23b) + _0x2d42b0;
140
+ _0x5e90f0 && (_0x413425 = _0x5e90f0 + 'rule=' + _0x2c68ab + _0x558e91(0x23b) + _0x2d42b0), fetch(_0x413425)[_0x558e91(0x25d)](_0x152991 => _0x152991[_0x558e91(0x20d)]())[_0x558e91(0x25d)](_0x4ef40b => {
141
+ var _0xf5df7f = _0x558e91, _0x2d5fe3 = _0x4ef40b[_0xf5df7f(0x1dc)], _0x378d82 = eval(_0x4ef40b['article_data']), _0x4861b7 = _0x2c68ab + _0xf5df7f(0x253);
142
+ loadStatistical(_0x2d5fe3), loadArticleItem(_0x378d82, 0x0, _0x2d42b0), localStorage[_0xf5df7f(0x24c)](_0xf5df7f(0x247), JSON[_0xf5df7f(0x236)](_0x2d5fe3)), localStorage[_0xf5df7f(0x24c)](_0x4861b7, JSON[_0xf5df7f(0x236)](_0x378d82));
143
+ });
144
+ }
145
+ function changeSort(_0x144292) {
146
+ var _0x52492e = _0x2a93f2;
147
+ sortNow = _0x144292[_0x52492e(0x23c)]['dataset'][_0x52492e(0x24e)], localStorage[_0x52492e(0x24c)](_0x52492e(0x20f), sortNow), document[_0x52492e(0x23a)](_0x52492e(0x255))[_0x52492e(0x1fa)](_0x3e6f14 => _0x3e6f14[_0x52492e(0x1ea)]()), container['innerHTML'] = '', changeUrl = localStorage[_0x52492e(0x1df)](_0x52492e(0x1e9)), container[_0x52492e(0x219)][_0x52492e(0x20b)] = 0x0, document[_0x52492e(0x257)](_0x52492e(0x252))['innerHTML'] = _0x52492e(0x250), setTimeout(function () {
148
+ var _0x5b9908 = _0x52492e;
149
+ container[_0x5b9908(0x1e1)] = '', initFriendCircle(sortNow, changeUrl), container[_0x5b9908(0x219)][_0x5b9908(0x20b)] = 0x1;
150
+ }, 0x12c), fcdata['apiurl'] && checkVersion();
151
+ }
152
+ function openMeShow(_0x6ceb3e) {
153
+ var _0x37296a = _0x2a93f2;
154
+ _0x6ceb3e[_0x37296a(0x246)]();
155
+ var _0x2ee1df = /^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/, _0x70b84f = _0x6ceb3e[_0x37296a(0x23c)][_0x37296a(0x1e0)]['link'][_0x37296a(0x258)](_0x2ee1df, _0x37296a(0x21d)), _0x266ab8 = '';
156
+ fcdata[_0x37296a(0x1e8)] ? _0x266ab8 = fcdata['apiurl'] + _0x37296a(0x1dd) + _0x70b84f : _0x266ab8 = fcdata[_0x37296a(0x1eb)] + _0x37296a(0x1dd) + _0x70b84f, noClick == 'ok' && (noClick = 'no', fetchShow(_0x266ab8));
157
+ }
158
+ function openMeShowV2(_0xc29758) {
159
+ var _0x28a4c1 = _0x2a93f2;
160
+ _0xc29758[_0x28a4c1(0x246)]();
161
+ var _0x1eaea6 = encodeURIComponent(_0xc29758[_0x28a4c1(0x23c)]['dataset'][_0x28a4c1(0x23f)]), _0x38c408 = '';
162
+ fcdata[_0x28a4c1(0x1e8)] ? _0x38c408 = fcdata[_0x28a4c1(0x1e8)] + _0x28a4c1(0x24a) + _0x1eaea6 : _0x38c408 = fcdata[_0x28a4c1(0x1eb)] + _0x28a4c1(0x24a) + _0x1eaea6, noClick == 'ok' && (noClick = 'no', fetchShow(_0x38c408));
163
+ }
164
+ function closeShow() {
165
+ var _0x1ff286 = _0x2a93f2;
166
+ document['getElementById'](_0x1ff286(0x248))[_0x1ff286(0x22d)] -= 'cf-show-now', document['getElementById'](_0x1ff286(0x256))['className'] -= _0x1ff286(0x229), setTimeout(function () {
167
+ var _0x1c4c4b = _0x1ff286, _0xa92b37 = document[_0x1c4c4b(0x23a)]('#cf-overshow\x20>\x20:not(.cf-overshow-close)'), _0x168e74 = document[_0x1c4c4b(0x23a)](_0x1c4c4b(0x213));
168
+ _0xa92b37[_0x1c4c4b(0x1fa)](function (_0x59ba26) {
169
+ var _0x444cb4 = _0x1c4c4b;
170
+ _0x59ba26[_0x444cb4(0x1ea)]();
171
+ });
172
+ for (var _0x2bfc7c = 0x1; _0x2bfc7c < _0x168e74[_0x1c4c4b(0x21c)]; _0x2bfc7c++) {
173
+ _0x168e74[_0x2bfc7c]['remove']();
174
+ }
175
+ }, 0x64);
176
+ }
177
+ var noClick = 'ok';
178
+ function openToShow() {
179
+ var _0x5b1ec2 = _0x2a93f2, _0x31ddcb = '';
180
+ fcdata[_0x5b1ec2(0x1e8)] ? _0x31ddcb = fcdata['apiurl'] + _0x5b1ec2(0x22f) : _0x31ddcb = fcdata[_0x5b1ec2(0x1eb)] + _0x5b1ec2(0x22f), noClick == 'ok' && (noClick = 'no', fetchShow(_0x31ddcb));
181
+ }
182
+ function _0x5e7f() {
183
+ var _0x2ddd4a = [
184
+ '&end=',
185
+ 'preventDefault',
186
+ 'statisticalData',
187
+ 'cf-overlay',
188
+ '</a><span\x20',
189
+ 'postv2?name=',
190
+ 'beforeend',
191
+ 'setItem',
192
+ '\x22\x20>Updated</span>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20</div>\x0a\x20\x20',
193
+ 'sort',
194
+ '45523FNnbIW',
195
+ '与主机通讯中......',
196
+ '\x22\x20data-name=\x22',
197
+ 'hexo-circle-of-friends-root-notice',
198
+ 'ArticleData',
199
+ '</span>\x0a\x20\x20\x20\x20\x20排序:<span\x20id=\x22cf-change-created\x22\x20data-sort=\x22created\x22\x20onclick=\x22changeSort(event)\x22\x20class=\x22',
200
+ '.cf-new-add',
201
+ 'cf-overshow',
202
+ 'getElementById',
203
+ 'replace',
204
+ 'afterend',
205
+ 'nextArticle',
206
+ '</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-article-avatar\x20no-lightbox\x20flink-item-icon\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20onclick=\x22openMeShowV2(event)\x22\x20data-link=\x22',
207
+ 'getElementsByClassName',
208
+ 'then',
209
+ 'author',
210
+ 'created',
211
+ 'statistical_data',
212
+ 'post?link=',
213
+ 'status',
214
+ 'getItem',
215
+ 'dataset',
216
+ 'innerHTML',
217
+ 'floor',
218
+ 'article_num',
219
+ '当前版本:v',
220
+ '</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20',
221
+ '\x22\x20class=\x22\x22\x20target=\x22_blank\x22\x20rel=\x22noopener\x20nofollow\x22\x20href=\x22javascript:;\x22><img\x20class=\x22cf-img-avatar\x20avatar\x22\x20src=\x22',
222
+ 'updated',
223
+ 'apiurl',
224
+ 'urlNow',
225
+ 'remove',
226
+ 'apipublicurl',
227
+ 'parse',
228
+ '</span></a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-article-time\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-time-created\x22\x20style=\x22',
229
+ 'createdArticleData',
230
+ 'cf-version-up',
231
+ 'active_num',
232
+ '\x22\x20target=\x22_blank\x22\x20rel=\x22noopener\x20nofollow\x22\x20data-title=\x22',
233
+ 'jsonurl',
234
+ 'friends_num',
235
+ 'display:none',
236
+ '\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-article\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22cf-article-title\x22\x20href=\x22',
237
+ 'rule=',
238
+ 'reload',
239
+ 'all?',
240
+ 'outerHTML',
241
+ 'forEach',
242
+ '&start=',
243
+ 'cf-article',
244
+ 'undefined',
245
+ 'error_img',
246
+ '网络错误,检测失败!',
247
+ 'style=\x22color:\x20var(--mycpen1-main);\x20opacity:\x201;\x22',
248
+ '5180750sxhBaf',
249
+ '</span>\x0a\x20\x20\x20\x20\x20<span\x20class=\x22cf-data-lastupdated\x22>更新于:',
250
+ '3423lschHv',
251
+ '</span>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20<div\x20id=\x22cf-change\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20id=\x22cf-change-created\x22\x20data-sort=\x22created\x22\x20onclick=\x22changeSort(event)\x22\x20class=\x22',
252
+ '1230988reJuRj',
253
+ 'article_sort',
254
+ '<div\x20id=\x22cf-more\x22\x20class=\x22cf-new-add\x22\x20onclick=\x22loadNoArticle()\x22><small>一切皆有尽头!</small></div>',
255
+ '</span>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-data-active\x22\x20onclick=\x22changeEgg()\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-label\x22>活跃</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-message\x22>',
256
+ 'now',
257
+ '326164nBLhKT',
258
+ 'opacity',
259
+ '2wGcdzh',
260
+ 'json',
261
+ '14195160PfemNM',
262
+ 'sortNow',
263
+ 'snackbarShow',
264
+ '9nDdmrH',
265
+ '</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-time-updated\x22\x20style=\x22',
266
+ '#cf-overshow\x20>\x20.cf-overshow-close',
267
+ 'scrollTo',
268
+ 'link',
269
+ 'cf-state',
270
+ '\x27;\x20this.onerror\x20=\x20null;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22\x22\x20target=\x22_blank\x22\x20rel=\x22noopener\x20nofollow\x22\x20href=\x22',
271
+ '\x27;\x20this.onerror\x20=\x20null;\x22><span\x20class=\x22cf-article-author\x22>',
272
+ 'style',
273
+ '\x22>Created</span>\x20|\x20<span\x20id=\x22cf-change-updated\x22\x20data-sort=\x22updated\x22\x20onclick=\x22changeSort(event)\x22\x20class=\x22',
274
+ '</span>\x0a\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-data-article\x22\x20onclick=\x22clearLocal()\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-label\x22>日志</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-message\x22>',
275
+ 'length',
276
+ '$1:$2$3',
277
+ 'updatedArticleData',
278
+ 'https://www.cpen.top:8002/',
279
+ '</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-article-floor\x22>',
280
+ '\x2000:00:00',
281
+ '6amPLuK',
282
+ '\x0a\x20\x20<div\x20id=\x22cf-state\x22\x20class=\x22cf-new-add\x22>\x0a\x20\x20\x20\x20<div\x20class=\x22cf-state-data\x22>\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-data-friends\x22\x20onclick=\x22openToShow()\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-label\x22>订阅</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22cf-message\x22>',
283
+ 'current_version',
284
+ 'avatar',
285
+ 'title',
286
+ '4016pzDMaW',
287
+ 'initnumber',
288
+ 'cf-show-now',
289
+ 'article_data',
290
+ 'cf-change-now',
291
+ 'removeItem',
292
+ 'className',
293
+ 'cf-more',
294
+ 'post',
295
+ '\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-overshow\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-overshow-head\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20class=\x22cf-img-avatar\x20avatar\x22\x20src=\x22',
296
+ '</div></div>',
297
+ 'https://cdn.cbd.int/mycpen-blog@0.0.0-fyvdazuhhw/img/flink404.svg',
298
+ 'latest_version',
299
+ '</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22cf-overshow-content\x22>\x0a\x20\x20',
300
+ 'getTime',
301
+ 'stringify',
302
+ '5274RNsfaD',
303
+ 'afterbegin',
304
+ 'fdatalist',
305
+ 'querySelectorAll',
306
+ '&start=0&end=',
307
+ 'currentTarget',
308
+ '395RBBiKn',
309
+ '\x20日志:',
310
+ 'name',
311
+ 'insertAdjacentHTML',
312
+ '\x22\x20alt=\x22avatar\x22\x20onerror=\x22this.src=\x27',
313
+ '\x20活跃:',
314
+ 'postjson?jsonlink=',
315
+ 'stepnumber'
316
+ ];
317
+ _0x5e7f = function () {
318
+ return _0x2ddd4a;
319
+ };
320
+ return _0x5e7f();
321
+ }
322
+ function fetchShow(_0x272f98) {
323
+ var _0x2e3124 = _0x2a93f2, _0x2407ea = '\x0a\x20\x20\x20\x20<div\x20class=\x22cf-overshow-close\x22\x20onclick=\x22closeShow()\x22></div>\x0a\x20\x20';
324
+ fetch(_0x272f98)[_0x2e3124(0x25d)](_0x51353c => _0x51353c[_0x2e3124(0x20d)]())['then'](_0x153569 => {
325
+ var _0x4b1988 = _0x2e3124;
326
+ noClick = 'ok';
327
+ var _0x3949bb = _0x153569[_0x4b1988(0x1dc)], _0x42e54b = eval(_0x153569[_0x4b1988(0x22a)]);
328
+ loadFcircleShow(_0x3949bb, _0x42e54b), document['getElementById'](_0x4b1988(0x248))[_0x4b1988(0x22d)] = _0x4b1988(0x229), document[_0x4b1988(0x257)](_0x4b1988(0x256))[_0x4b1988(0x240)](_0x4b1988(0x238), _0x2407ea);
329
+ })['catch'](_0x34c9a2 => {
330
+ var _0x21eca3 = _0x2e3124;
331
+ btf[_0x21eca3(0x210)]('未获取到文章卡片');
332
+ });
333
+ }
334
+ function initFriendCircle(_0x1451de, _0xdb6726) {
335
+ var _0x311c32 = _0x2a93f2, _0x30f4b3 = _0x1451de + 'ArticleData', _0x3d62b4 = JSON[_0x311c32(0x1ec)](localStorage[_0x311c32(0x1df)]('statisticalData')), _0x30f90b = JSON['parse'](localStorage['getItem'](_0x30f4b3));
336
+ container[_0x311c32(0x1e1)] = '', FetchFriendCircle(_0x1451de, _0xdb6726);
337
+ }
338
+ initFriendCircle(sortNow);