q78kgblog 0.0.0-1726820669988 → 0.0.0-1727266299503

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/.github/workflows/HexoSeoAutoPush.yml +12 -8
  2. package/404.html +12 -12
  3. package/about/index.html +15 -15
  4. package/archives/2023/02/index.html +12 -12
  5. package/archives/2023/04/index.html +12 -12
  6. package/archives/2023/05/index.html +12 -12
  7. package/archives/2023/08/index.html +12 -12
  8. package/archives/2023/09/index.html +12 -12
  9. package/archives/2023/index.html +12 -12
  10. package/archives/2024/01/index.html +12 -12
  11. package/archives/2024/02/index.html +12 -12
  12. package/archives/2024/index.html +12 -12
  13. package/archives/index.html +12 -12
  14. package/atom.xml +68 -68
  15. package/baidusitemap.xml +16 -16
  16. package/bangumis/index.html +17 -16
  17. package/bigpie/index.html +13 -13
  18. package/bing.json +1 -1
  19. package/categories/Hexo/index.html +13 -13
  20. package/categories/index.html +12 -12
  21. package/categories//345/271/264/347/273/210/346/200/273/347/273/223/index.html +13 -13
  22. package/categories//347/264/240/346/235/220/index.html +13 -13
  23. package/categories//351/227/262/350/201/212/346/235/202/350/260/210/index.html +13 -13
  24. package/content.json +1 -1
  25. package/css/ariasakablog.css +1 -1
  26. package/css/essay.css +1 -1
  27. package/fcircle/index.html +16 -16
  28. package/fontawesome/index.html +13 -13
  29. package/google.txt +8 -8
  30. package/index.html +22 -22
  31. package/js/commentBarrage.js +1 -1
  32. package/js/commentsCount.js +1 -1
  33. package/js/randomFriend.js +1 -1
  34. package/js/rightmenu.js +1 -1
  35. package/js/welcome.js +1 -1
  36. package/links/index.html +15 -15
  37. package/othersite/index.html +18 -18
  38. package/package.json +1 -1
  39. package/people.html +1 -1
  40. package/posts/164ef646/index.html +16 -16
  41. package/posts/228c2ef8/index.html +16 -16
  42. package/posts/a9a6c1fb/index.html +16 -16
  43. package/posts/c262e439/index.html +16 -16
  44. package/posts/c81531cf/index.html +16 -16
  45. package/posts/ccdf7cfc/index.html +17 -17
  46. package/posts/de1f83f4/index.html +16 -16
  47. package/posts/e54f7476/index.html +29 -29
  48. package/random.html +18 -18
  49. package/search.xml +2 -2
  50. package/sitemap.txt +49 -49
  51. package/sitemap.xml +98 -98
  52. package/sw.js +1 -1
  53. package/tags/AI/index.html +13 -13
  54. package/tags/Butterfly/index.html +13 -13
  55. package/tags/Cloudflare/index.html +13 -13
  56. package/tags/DiffSinger/index.html +13 -13
  57. package/tags/Hexo/index.html +13 -13
  58. package/tags/Next/index.html +13 -13
  59. package/tags/RAID/index.html +13 -13
  60. package/tags/Vercel/index.html +13 -13
  61. package/tags/Workers/index.html +13 -13
  62. package/tags/index.html +12 -12
  63. package/tags//344/270/273/351/242/230/index.html +13 -13
  64. package/tags//345/206/231/344/275/234/index.html +13 -13
  65. package/tags//345/245/263/346/200/247/346/204/217/350/257/206/index.html +13 -13
  66. package/tags//345/255/246/344/271/240/index.html +13 -13
  67. package/tags//345/256/266/351/207/214/344/272/221/index.html +13 -13
  68. package/tags//345/271/264/347/273/210/346/200/273/347/273/223/index.html +13 -13
  69. package/tags//346/212/230/350/205/276/index.html +13 -13
  70. package/tags//346/227/245/345/270/270/index.html +13 -13
  71. package/tags//346/234/215/345/212/241/345/231/250/index.html +13 -13
  72. package/tags//346/265/252/346/275/256/index.html +13 -13
  73. package/tags//347/256/200/347/210/261/index.html +13 -13
  74. package/tags//350/207/252/345/212/250/346/240/207/346/263/250/index.html +13 -13
  75. package/tags//350/256/272/346/226/207/index.html +13 -13
  76. package/tags//350/260/267/346/255/214/347/277/273/350/257/221/index.html +13 -13
  77. package/tags//350/264/237/350/275/275/345/235/207/350/241/241/index.html +13 -13
  78. package/tags//351/207/221/345/217/245/index.html +13 -13
  79. package/tags//351/255/224/346/224/271/index.html +13 -13
@@ -1,4 +1,4 @@
1
- document.addEventListener("pjax:complete",startbarrage),document.addEventListener("DOMContentLoaded",startbarrage);function startbarrage(){try{clearInterval(timer),document.querySelector(".comment-barrage").innerHTML="",delete sw}catch{}const r={lightColors:[["#ffffffaa!important","var(--lyx-black)"]],darkColors:[["#000a!important","var(--lyx-white)"]],maxBarrage:1,barrageTime:3e3,twikooUrl:"https://twikoo.anjiurine.top",accessToken:"f0fac9b52af34219af509d087ea72c4a",pageUrl:window.location.pathname,barrageTimer:[],barrageList:[],barrageIndex:0,noAvatarType:"retro",dom:document.querySelector(".comment-barrage"),displayBarrage:!0,avatarCDN:"cravatar.cn"};function i(e){var a=e,t=/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/,n=new RegExp(t);return n.test(a)==!0}function s(e){const a=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,t=e.offsetTop,n=document.documentElement.scrollTop;return t-n<=a}(location.href.indexOf("posts")!=-1||location.href.indexOf("posts")!=-1)&&(document.onscroll=function(){r.displayBarrage&&(s(document.getElementById("post-comment"))?(document.getElementsByClassName("barrageswiper")[0].style.transform="translateX(514px)",document.getElementsByClassName("barrageswiper")[0].style.opacity="0"):(document.getElementsByClassName("barrageswiper")[0].style.transform="",document.getElementsByClassName("barrageswiper")[0].style.opacity="1"))});function c(){var e=JSON.stringify({event:"COMMENT_GET","commentBarrageConfig.accessToken":r.accessToken,url:r.pageUrl}),a=new XMLHttpRequest;a.withCredentials=!0,a.addEventListener("readystatechange",function(){if(this.readyState===4){for(r.barrageList=g(JSON.parse(this.responseText).data),r.dom.innerHTML="",r.barrageIndex=0;r.barrageIndex<r.barrageList.length;r.barrageIndex++)m(r.barrageList[r.barrageIndex]);kkksc03=new Swiper(".barrageswiper",{direction:"vertical",loop:!0,mousewheel:!0,autoplay:{delay:3e3,stopOnLastSlide:!1,disableOnInteraction:!1}}),kkksc03.el.onmouseover=function(){kkksc03.autoplay.stop()},kkksc03.el.onmouseout=function(){kkksc03.autoplay.start()}}}),a.open("POST",r.twikooUrl),a.setRequestHeader("Content-Type","application/json"),a.send(e)}function g(e){e.sort((t,n)=>t.created-n.created);let a=[];return e.forEach(t=>{a.push(...l(t))}),a}function l(e){if(e.replies){let a=[e];return e.replies.forEach(t=>{a.push(...l(t))}),a}else return[]}function m(e){let a=document.createElement("div"),t=r.dom.clientWidth,n=r.dom.clientHeight;a.className="comment-barrage-item";let o=Math.floor(Math.random()*r.lightColors.length);document.getElementById("barragesColor").innerHTML=`[data-theme='light'] .comment-barrage-item { background-color:${r.lightColors[o][0]};color:${r.lightColors[o][1]}}[data-theme='dark'] .comment-barrage-item{ background-color:${r.darkColors[o][0]};color:${r.darkColors[o][1]}}`,e.avatar!=null?e.link!=null?(i(e.link)||(e.link="http://"+e.link),a.innerHTML=`
1
+ document.addEventListener("pjax:complete",startbarrage),document.addEventListener("DOMContentLoaded",startbarrage);function startbarrage(){try{clearInterval(timer),document.querySelector(".comment-barrage").innerHTML="",delete sw}catch{}const r={lightColors:[["#ffffffaa!important","var(--lyx-black)"]],darkColors:[["#000a!important","var(--lyx-white)"]],maxBarrage:1,barrageTime:3e3,twikooUrl:"https://twikoo.yumetsuki.moe",accessToken:"f0fac9b52af34219af509d087ea72c4a",pageUrl:window.location.pathname,barrageTimer:[],barrageList:[],barrageIndex:0,noAvatarType:"retro",dom:document.querySelector(".comment-barrage"),displayBarrage:!0,avatarCDN:"cravatar.cn"};function i(e){var a=e,t=/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/,n=new RegExp(t);return n.test(a)==!0}function s(e){const a=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,t=e.offsetTop,n=document.documentElement.scrollTop;return t-n<=a}(location.href.indexOf("posts")!=-1||location.href.indexOf("posts")!=-1)&&(document.onscroll=function(){r.displayBarrage&&(s(document.getElementById("post-comment"))?(document.getElementsByClassName("barrageswiper")[0].style.transform="translateX(514px)",document.getElementsByClassName("barrageswiper")[0].style.opacity="0"):(document.getElementsByClassName("barrageswiper")[0].style.transform="",document.getElementsByClassName("barrageswiper")[0].style.opacity="1"))});function c(){var e=JSON.stringify({event:"COMMENT_GET","commentBarrageConfig.accessToken":r.accessToken,url:r.pageUrl}),a=new XMLHttpRequest;a.withCredentials=!0,a.addEventListener("readystatechange",function(){if(this.readyState===4){for(r.barrageList=g(JSON.parse(this.responseText).data),r.dom.innerHTML="",r.barrageIndex=0;r.barrageIndex<r.barrageList.length;r.barrageIndex++)m(r.barrageList[r.barrageIndex]);kkksc03=new Swiper(".barrageswiper",{direction:"vertical",loop:!0,mousewheel:!0,autoplay:{delay:3e3,stopOnLastSlide:!1,disableOnInteraction:!1}}),kkksc03.el.onmouseover=function(){kkksc03.autoplay.stop()},kkksc03.el.onmouseout=function(){kkksc03.autoplay.start()}}}),a.open("POST",r.twikooUrl),a.setRequestHeader("Content-Type","application/json"),a.send(e)}function g(e){e.sort((t,n)=>t.created-n.created);let a=[];return e.forEach(t=>{a.push(...l(t))}),a}function l(e){if(e.replies){let a=[e];return e.replies.forEach(t=>{a.push(...l(t))}),a}else return[]}function m(e){let a=document.createElement("div"),t=r.dom.clientWidth,n=r.dom.clientHeight;a.className="comment-barrage-item";let o=Math.floor(Math.random()*r.lightColors.length);document.getElementById("barragesColor").innerHTML=`[data-theme='light'] .comment-barrage-item { background-color:${r.lightColors[o][0]};color:${r.lightColors[o][1]}}[data-theme='dark'] .comment-barrage-item{ background-color:${r.darkColors[o][0]};color:${r.darkColors[o][1]}}`,e.avatar!=null?e.link!=null?(i(e.link)||(e.link="http://"+e.link),a.innerHTML=`
2
2
  <div class="barrageHead">
3
3
  <img class="barrageAvatar" src="${e.avatar}"/>
4
4
  <a href="${e.link}" class="barrageNick" target="_blank">${e.nick}</a>
@@ -1 +1 @@
1
- function comCount(){let t=loadData("comCount",10);t?document.querySelectorAll(".card_comment").forEach(e=>{e.innerHTML=t}):fetch("https://twikoo.anjiurine.top/",{method:"POST",body:JSON.stringify({event:"COMMENT_GET_FOR_ADMIN",accessToken:"1059857c25a2ce9fba9cff298f4f33ee",per:1,page:1}),headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{document.querySelectorAll(".card_comment").forEach(n=>{n.innerHTML=e.count}),document.getElementsByClassName("card_comment").innerText=e.count,saveData("comCount",e.count)})}function saveData(t,e){localStorage.setItem(t,JSON.stringify({time:Date.now(),data:e}))}function loadData(t,e){let n=JSON.parse(localStorage.getItem(t)),o=0;return n!=null&&(o=Date.now()-n.time),o<e*60*1e3&&o>0?n.data:0}window.addEventListener("pjax:complete",comCount),window.addEventListener("DOMContentLoaded",comCount);
1
+ function comCount(){let t=loadData("comCount",10);t?document.querySelectorAll(".card_comment").forEach(e=>{e.innerHTML=t}):fetch("https://twikoo.yumetsuki.moe/",{method:"POST",body:JSON.stringify({event:"COMMENT_GET_FOR_ADMIN",accessToken:"1059857c25a2ce9fba9cff298f4f33ee",per:1,page:1}),headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{document.querySelectorAll(".card_comment").forEach(n=>{n.innerHTML=e.count}),document.getElementsByClassName("card_comment").innerText=e.count,saveData("comCount",e.count)})}function saveData(t,e){localStorage.setItem(t,JSON.stringify({time:Date.now(),data:e}))}function loadData(t,e){let n=JSON.parse(localStorage.getItem(t)),o=0;return n!=null&&(o=Date.now()-n.time),o<e*60*1e3&&o>0?n.data:0}window.addEventListener("pjax:complete",comCount),window.addEventListener("DOMContentLoaded",comCount);
@@ -1 +1 @@
1
- var fdata={apiurl:"https://fcircleapi.anjiurine.top/",defaultFish:500,hungryFish:500};if(typeof fdataUser<"u")for(var key in fdataUser)fdataUser[key]&&(fdata[key]=fdataUser[key]);var randomPostTimes=0,randomPostWorking=!1,randomPostTips=["\u9493\u5230\u4E86\u7EDD\u4E16\u597D\u6587\uFF01","\u5728\u6CB3\u8FB9\u6253\u4E86\u4E2A\u55B7\u568F\uFF0C\u5413\u8DD1\u4E86","\u4F60\u548C\u5C0F\u4F19\u4F34\u62A2\u593A\u7740","\u4F60\u51FB\u8D25\u4E86\u5DE8\u9F99\uFF0C\u5728\u5DE2\u7A74\u4E2D\u53D1\u73B0\u4E86","\u6316\u6398\u79E6\u59CB\u7687\u575F\u65F6\u627E\u5230\u4E86","\u5728\u8DEF\u8FB9\u95F2\u901B\u7684\u65F6\u5019\u968F\u624B\u4E70\u4E86\u4E00\u4E2A","\u4ECE\u5B66\u6821\u73ED\u4E3B\u4EFB\u90A3\u62FF\u6765\u4E86\u5B69\u5B50\u4E0A\u8BFE\u5077\u5077\u770B\u7684","\u4F60\u7684\u540C\u684C\u65E0\u60C5\u7684\u4ECE\u4F60\u7684\u8BED\u6587\u4E66\u4E2D\u6495\u4E0B\u4E86\u90A3\u7BC7\u4F60\u6700\u559C\u6B22\u7684","\u8003\u53E4\u5B66\u5BB6\u8FD1\u65E5\u53D1\u73B0\u4E86","\u5916\u661F\u4EBA\u964D\u4E34\u5730\u7403\u5B66\u4E60\u5730\u7403\u6587\u5316\uFF0C\u843D\u5730\u65F6\u88AB\u4F60\u585E\u4E86","\u4ECE\u56FE\u4E66\u9986\u9876\u5C42\u7684\u9690\u79D8\u89D2\u843D\u91CC\u53D1\u73B0\u4E86\u95EA\u7740\u91D1\u5149\u7684","\u5F92\u5F1F\u4FEE\u70BC\u8D70\u706B\u5165\u9B54\uFF0C\u4E3A\u5E08\u7ACB\u523B\u638F\u51FA\u4E86","\u5728\u5927\u5C71\u4E2D\u5531\u5C71\u6B4C\uFF0C\u9694\u58C1\u7684\u963F\u59B9\u8DD1\u6765\u4E86\uFF0C\u5E26\u7740","\u9694\u58C1\u5BB6\u7684\u5B69\u5B50\u6570\u5B66\u8003\u4E86\u6EE1\u5206\uFF0C\u90FD\u662F\u56E0\u4E3A\u770B\u4E86","\u9694\u58C1\u5BB6\u7684\u5B69\u5B50\u82F1\u8BED\u8003\u4E86\u6EE1\u5206\uFF0C\u90FD\u662F\u56E0\u4E3A\u770B\u4E86","\u5C0F\u7C73\u7814\u53D1\u4E86\u5168\u65B0\u4E00\u4EE3MIX\u624B\u673A\uFF0C\u636E\u8BF4\u7075\u611F","\u4FEE\u70BC\u6E21\u52AB\u6210\u529F\uFF0C\u8FD8\u597D\u63D0\u524D\u770B\u4E86","\u5E93\u514B\u5750\u4E0A\u4E86\u82F9\u679CCEO\u7684\u5B9D\u5EA7\uFF0C\u56E0\u4E3A\u4ED6\u9762\u8BD5\u7684\u65F6\u5019\u770B\u4E86","\u963F\u91CC\u5DF4\u5DF4\u5927\u558A\u829D\u9EBB\u5F00\u95E8\uFF0C\u6620\u5165\u773C\u5E18\u7684\u5C31\u662F","\u5E08\u5085\u8BF4\u7EC3\u6B66\u8981\u5148\u70BC\u5FC3\uFF0C\u7136\u540E\u8BA9\u6211\u597D\u751F\u7814\u8BFB","\u79D1\u8003\u961F\u5728\u5357\u6781\u5927\u9646\u53D1\u73B0\u4E86\u88AB\u51B0\u5C01\u7684","\u98DE\u673A\u7A97\u6237\u4F3C\u4E4E\u88AB\u4E00\u5F20\u7EB8\u7CCA\u4E0A\u4E86\uFF0C\u4ED4\u7EC6\u4E00\u770B\u662F","\u5386\u53F2\u4E0A\u6EE1\u5199\u7684\u4EC1\u4E49\u9053\u5FB7\u56DB\u4E2A\u5B57\uFF0C\u900F\u8FC7\u5B57\u7F1D\u91CC\u5374\u5168\u662F","\u5341\u51E0\u5E74\u524D\u7684\u5F55\u97F3\u673A\u4F3C\u4E4E\u8FD8\u80FD\u591F\u4F7F\u7528\uFF0C\u63D2\u4E0A\u7535\u53D1\u73B0\u6B63\u5728\u64AD\u7684\u662F","\u65B0\u7248\u8BED\u6587\u4E66\u62DF\u589E\u52A0\u4E00\u7BC7\u719F\u8BFB\u5E76\u80CC\u8BF5\u7684","\u7ECF\u8C03\u67E5\uFF0C99%\u7684\u53D7\u8BBF\u8005\u90FD\u6CA1\u6709\u80CC\u8BF5\u8FC7","\u4ECA\u5E74\u7684\u9AD8\u8003\u6EE1\u5206\u4F5C\u6587\u662F","\u5510\u50E7\u63ED\u5F00\u4E86\u4F5B\u7956\u538B\u5728\u4E94\u6307\u5C71\u4E0A\u7684","\u79D1\u5B66\u5BB6\u53D1\u73B0\u80FD\u591F\u89E3\u51B3\u8870\u8001\u7684\u79D8\u5BC6\uFF0C\u5C31\u662F\u6BCF\u65E5\u7814\u8BFB","\u82F1\u7279\u5C14\u53D1\u5E03\u4E86\u5168\u65B0\u7684\u81F3\u5F3A\u5904\u7406\u5668\uFF0C\u5176\u82AF\u7247\u7684\u5236\u9020\u539F\u7406\u90FD\u662F","\u65B0\u7684iPhone\u4EA7\u80FD\u5F88\u8DB3\uFF0C\u65B0\u7684\u8FDB\u8D27\u6E20\u9053\u662F","\u4ECA\u5E74\u4EA9\u4EA7\u7A81\u7834\u4E86\u516B\u5343\u4E07\u65A4\uFF0C\u591A\u4E8F\u4E86","\u9646\u9690\u4E00\u7EDF\u5929\u4E0A\u5B97\uFF0C\u5728\u65E0\u6570\u7956\u5883\u9AD8\u624B\u7684\u76EE\u5149\u4E0B\u5BA3\u8BFB\u4E86","\u9ED1\u94BB\u98CE\u8DDF\u767D\u94BB\u98CE\u8BF4\u9053\uFF0C\u5403\u4E86\u5510\u50E7\u8089\u80FD\u957F\u751F\u4E0D\u8001\uFF0C\u4ED6\u77E5\u9053\u662F\u56E0\u4E3A\u770B\u4E86","\u4E0A\u536B\u751F\u95F4\u6CA1\u5E26\u7EB8\uFF0C\u76F4\u63A5\u63D0\u88E4\u8DD1\u8DEF\u4E5F\u4E0D\u613F\u610F\u73B7\u6C61\u624B\u4E2D","\u79CD\u4E0B\u4E00\u7BC7\u6587\u7AE0\u5C31\u4F1A\u4EA7\u751F\u5F88\u591A\u5F88\u591A\u6587\u7AE0\uFF0C\u6211\u79CD\u4E0B\u4E86","\u4E09\u5341\u5E74\u6CB3\u4E1C\uFF0C\u4E09\u5341\u5E74\u6CB3\u897F\uFF0C\u83AB\u6B3A\u6211\u6CA1\u6709\u770B\u8FC7","\u8E0F\u7834\u94C1\u8840\u65E0\u89C5\u5904\uFF0C\u5F97\u6765\u5168\u9760","\u4ECA\u65E5\u53CC\u8272\u7403\u4E2D\u4E86\u4E24\u5343\u4E07\uFF0C\u9884\u6D4B\u5168\u9760","\u56E0\u4E3A\u5377\u5B50\u4E0A\u6CA1\u5199\u540D\u5B57\uFF0C\u8001\u5E08\u7F5A\u6284","\u4E3A\u4E86\u6297\u8BAE\u4E16\u95F4\u7684\u4E0D\u516C\uFF0C\u5272\u7834\u624B\u6307\u5199\u4E0B\u4E86","\u5728\u827A\u672F\u5927\u8857\u4E0A\u88AB\u8D34\u6EE1\u4E86\u76F8\u540C\u7684\u7EB8\uFF0C\u8D70\u8FD1\u4E00\u770B\u662F","\u8FD9\u533A\u533A\u8FF7\u9635\u5C82\u80FD\u96BE\u5F97\u4F4F\u6211\uFF1F\u5176\u5B9E\u80FD\u8D70\u51FA\u6765\u591A\u4E8F\u4E86","\u4ECA\u65E5\u88AB\u4E00\u7BC7\u6587\u7AE0\u9876\u4E0A\u4E86\u5FAE\u535A\u70ED\u641C\uFF0C\u5B83\u662F","\u4F60\u9001\u7ED9\u4E5E\u4E10\u4E00\u4E2A\u66B4\u5BCC\u79D8\u7C4D\uFF0C\u5B83\u662F","UZI\u4E00\u4E2A\u8D70A\u62FF\u4E0B\u4E94\u6740\uFF0C\u5728\u4E8B\u540E\u91C7\u8BBF\u65F6\u8BF4\u4ED6\u5F53\u65F6\u56DE\u60F3\u8D77\u4E86","\u79D1\u5B66\u5BB6\u89E3\u5228\u4E86\u7B2C\u4E00\u4E2A\u611F\u67D3\u4E27\u5C38\u75C5\u6BD2\u7684\u4EBA\uFF0C\u53D1\u73B0\u4E27\u5C38\u6297\u4F53\u5B58\u5728\u4E8E"],randomPostClick=0;function fetchRandomPost(){if(console.log(fdata.apiurl),randomPostWorking==!1){randomPostWorking=!0;let a=randomPostTimes*360,n=randomPostTips[Math.floor(Math.random()*randomPostTips.length)],e="";randomPostTimes>1e4?e="\u613F\u8005\u4E0A\u94A9":randomPostTimes>1e3?e="\u4FEF\u89C8\u5929\u4E0B":randomPostTimes>1e3?e="\u8D85\u8D8A\u795E\u4E86":randomPostTimes>100?e="\u7EDD\u4E16\u6E14\u592B":randomPostTimes>75?e="\u9493\u9C7C\u738B\u8005":randomPostTimes>50?e="\u9493\u9C7C\u5B97\u5E08":randomPostTimes>20?e="\u9493\u9C7C\u4E13\u5BB6":randomPostTimes>5?e="\u9493\u9C7C\u9AD8\u624B":e="\u9493\u9C7C\u65B0\u624B",randomPostTimes>=5?document.getElementById("random-post").innerHTML="\u9493\u9C7C\u4E2D... \uFF08Lv."+randomPostTimes+" \u5F53\u524D\u79F0\u53F7\uFF1A"+e+"\uFF09":document.getElementById("random-post").innerHTML="\u9493\u9C7C\u4E2D...",$(".random-post-start").css("transform","rotate("+a+"deg)"),window.setTimeout(function(){if(randomPostClick*fdata.hungryFish+fdata.defaultFish<randomPostTimes&&Math.round(Math.random())==0)document.getElementById("random-post").innerHTML="\u56E0\u4E3A\u53EA\u9493\u9C7C\u4E0D\u5403\u9C7C\uFF0C\u8FC7\u5206\u9965\u997F\u5BFC\u81F4\u672C\u6B21\u9493\u9C7C\u5931\u8D25...",randomPostWorking=!1;else{var o=fdata.apiurl+"randompost";fetch(o).then(t=>t.json()).then(t=>{var r=t.title,i=t.link,l=t.author;document.querySelector("#random-post")&&(document.getElementById("random-post").innerHTML=n+"\u6765\u81EA\u53CB\u94FE <b>"+l+'</b> \u7684\u6587\u7AE0\uFF1A<a class="random-friends-post" onclick="randomClickLink()" target="_blank" href="'+i+'" rel="external nofollow">'+r+"</a>")}),randomPostWorking=!1}randomPostTimes+=1},2e3)}}fetchRandomPost();function randomClickLink(){randomPostClick+=1}function addflink(){var a=document.getElementsByClassName("el-textarea__inner")[0],n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),a.value=d.value="```yaml\n- name: #\u53CB\u94FE\u540D\u79F0\n link: #\u53CB\u94FE\u5730\u5740\uFF08\u5EFA\u8BAE\u535A\u5BA2\uFF0C\u800C\u4E0D\u662F\u4E3B\u9875\uFF0C\u5426\u5219\u53CB\u94FE\u670B\u53CB\u5708\u65E0\u6CD5\u722C\u53D6\uFF09\n avatar: #\u53CB\u94FE\u5934\u50CF\n descr: #\u4ECB\u7ECD\n theme_color: #\u53CB\u94FE\u80CC\u666F\u8272\uFF0C\u56E0\u4E3A#\u53F7\u5728yaml\u4E2D\u8BC6\u522B\u4E3A\u6CE8\u91CA\u8BF7\u52A0\u5F15\u53F7\n```",a.dispatchEvent(n)}
1
+ var fdata={apiurl:"https://fcircleapi.yumetsuki.moe/",defaultFish:500,hungryFish:500};if(typeof fdataUser<"u")for(var key in fdataUser)fdataUser[key]&&(fdata[key]=fdataUser[key]);var randomPostTimes=0,randomPostWorking=!1,randomPostTips=["\u9493\u5230\u4E86\u7EDD\u4E16\u597D\u6587\uFF01","\u5728\u6CB3\u8FB9\u6253\u4E86\u4E2A\u55B7\u568F\uFF0C\u5413\u8DD1\u4E86","\u4F60\u548C\u5C0F\u4F19\u4F34\u62A2\u593A\u7740","\u4F60\u51FB\u8D25\u4E86\u5DE8\u9F99\uFF0C\u5728\u5DE2\u7A74\u4E2D\u53D1\u73B0\u4E86","\u6316\u6398\u79E6\u59CB\u7687\u575F\u65F6\u627E\u5230\u4E86","\u5728\u8DEF\u8FB9\u95F2\u901B\u7684\u65F6\u5019\u968F\u624B\u4E70\u4E86\u4E00\u4E2A","\u4ECE\u5B66\u6821\u73ED\u4E3B\u4EFB\u90A3\u62FF\u6765\u4E86\u5B69\u5B50\u4E0A\u8BFE\u5077\u5077\u770B\u7684","\u4F60\u7684\u540C\u684C\u65E0\u60C5\u7684\u4ECE\u4F60\u7684\u8BED\u6587\u4E66\u4E2D\u6495\u4E0B\u4E86\u90A3\u7BC7\u4F60\u6700\u559C\u6B22\u7684","\u8003\u53E4\u5B66\u5BB6\u8FD1\u65E5\u53D1\u73B0\u4E86","\u5916\u661F\u4EBA\u964D\u4E34\u5730\u7403\u5B66\u4E60\u5730\u7403\u6587\u5316\uFF0C\u843D\u5730\u65F6\u88AB\u4F60\u585E\u4E86","\u4ECE\u56FE\u4E66\u9986\u9876\u5C42\u7684\u9690\u79D8\u89D2\u843D\u91CC\u53D1\u73B0\u4E86\u95EA\u7740\u91D1\u5149\u7684","\u5F92\u5F1F\u4FEE\u70BC\u8D70\u706B\u5165\u9B54\uFF0C\u4E3A\u5E08\u7ACB\u523B\u638F\u51FA\u4E86","\u5728\u5927\u5C71\u4E2D\u5531\u5C71\u6B4C\uFF0C\u9694\u58C1\u7684\u963F\u59B9\u8DD1\u6765\u4E86\uFF0C\u5E26\u7740","\u9694\u58C1\u5BB6\u7684\u5B69\u5B50\u6570\u5B66\u8003\u4E86\u6EE1\u5206\uFF0C\u90FD\u662F\u56E0\u4E3A\u770B\u4E86","\u9694\u58C1\u5BB6\u7684\u5B69\u5B50\u82F1\u8BED\u8003\u4E86\u6EE1\u5206\uFF0C\u90FD\u662F\u56E0\u4E3A\u770B\u4E86","\u5C0F\u7C73\u7814\u53D1\u4E86\u5168\u65B0\u4E00\u4EE3MIX\u624B\u673A\uFF0C\u636E\u8BF4\u7075\u611F","\u4FEE\u70BC\u6E21\u52AB\u6210\u529F\uFF0C\u8FD8\u597D\u63D0\u524D\u770B\u4E86","\u5E93\u514B\u5750\u4E0A\u4E86\u82F9\u679CCEO\u7684\u5B9D\u5EA7\uFF0C\u56E0\u4E3A\u4ED6\u9762\u8BD5\u7684\u65F6\u5019\u770B\u4E86","\u963F\u91CC\u5DF4\u5DF4\u5927\u558A\u829D\u9EBB\u5F00\u95E8\uFF0C\u6620\u5165\u773C\u5E18\u7684\u5C31\u662F","\u5E08\u5085\u8BF4\u7EC3\u6B66\u8981\u5148\u70BC\u5FC3\uFF0C\u7136\u540E\u8BA9\u6211\u597D\u751F\u7814\u8BFB","\u79D1\u8003\u961F\u5728\u5357\u6781\u5927\u9646\u53D1\u73B0\u4E86\u88AB\u51B0\u5C01\u7684","\u98DE\u673A\u7A97\u6237\u4F3C\u4E4E\u88AB\u4E00\u5F20\u7EB8\u7CCA\u4E0A\u4E86\uFF0C\u4ED4\u7EC6\u4E00\u770B\u662F","\u5386\u53F2\u4E0A\u6EE1\u5199\u7684\u4EC1\u4E49\u9053\u5FB7\u56DB\u4E2A\u5B57\uFF0C\u900F\u8FC7\u5B57\u7F1D\u91CC\u5374\u5168\u662F","\u5341\u51E0\u5E74\u524D\u7684\u5F55\u97F3\u673A\u4F3C\u4E4E\u8FD8\u80FD\u591F\u4F7F\u7528\uFF0C\u63D2\u4E0A\u7535\u53D1\u73B0\u6B63\u5728\u64AD\u7684\u662F","\u65B0\u7248\u8BED\u6587\u4E66\u62DF\u589E\u52A0\u4E00\u7BC7\u719F\u8BFB\u5E76\u80CC\u8BF5\u7684","\u7ECF\u8C03\u67E5\uFF0C99%\u7684\u53D7\u8BBF\u8005\u90FD\u6CA1\u6709\u80CC\u8BF5\u8FC7","\u4ECA\u5E74\u7684\u9AD8\u8003\u6EE1\u5206\u4F5C\u6587\u662F","\u5510\u50E7\u63ED\u5F00\u4E86\u4F5B\u7956\u538B\u5728\u4E94\u6307\u5C71\u4E0A\u7684","\u79D1\u5B66\u5BB6\u53D1\u73B0\u80FD\u591F\u89E3\u51B3\u8870\u8001\u7684\u79D8\u5BC6\uFF0C\u5C31\u662F\u6BCF\u65E5\u7814\u8BFB","\u82F1\u7279\u5C14\u53D1\u5E03\u4E86\u5168\u65B0\u7684\u81F3\u5F3A\u5904\u7406\u5668\uFF0C\u5176\u82AF\u7247\u7684\u5236\u9020\u539F\u7406\u90FD\u662F","\u65B0\u7684iPhone\u4EA7\u80FD\u5F88\u8DB3\uFF0C\u65B0\u7684\u8FDB\u8D27\u6E20\u9053\u662F","\u4ECA\u5E74\u4EA9\u4EA7\u7A81\u7834\u4E86\u516B\u5343\u4E07\u65A4\uFF0C\u591A\u4E8F\u4E86","\u9646\u9690\u4E00\u7EDF\u5929\u4E0A\u5B97\uFF0C\u5728\u65E0\u6570\u7956\u5883\u9AD8\u624B\u7684\u76EE\u5149\u4E0B\u5BA3\u8BFB\u4E86","\u9ED1\u94BB\u98CE\u8DDF\u767D\u94BB\u98CE\u8BF4\u9053\uFF0C\u5403\u4E86\u5510\u50E7\u8089\u80FD\u957F\u751F\u4E0D\u8001\uFF0C\u4ED6\u77E5\u9053\u662F\u56E0\u4E3A\u770B\u4E86","\u4E0A\u536B\u751F\u95F4\u6CA1\u5E26\u7EB8\uFF0C\u76F4\u63A5\u63D0\u88E4\u8DD1\u8DEF\u4E5F\u4E0D\u613F\u610F\u73B7\u6C61\u624B\u4E2D","\u79CD\u4E0B\u4E00\u7BC7\u6587\u7AE0\u5C31\u4F1A\u4EA7\u751F\u5F88\u591A\u5F88\u591A\u6587\u7AE0\uFF0C\u6211\u79CD\u4E0B\u4E86","\u4E09\u5341\u5E74\u6CB3\u4E1C\uFF0C\u4E09\u5341\u5E74\u6CB3\u897F\uFF0C\u83AB\u6B3A\u6211\u6CA1\u6709\u770B\u8FC7","\u8E0F\u7834\u94C1\u8840\u65E0\u89C5\u5904\uFF0C\u5F97\u6765\u5168\u9760","\u4ECA\u65E5\u53CC\u8272\u7403\u4E2D\u4E86\u4E24\u5343\u4E07\uFF0C\u9884\u6D4B\u5168\u9760","\u56E0\u4E3A\u5377\u5B50\u4E0A\u6CA1\u5199\u540D\u5B57\uFF0C\u8001\u5E08\u7F5A\u6284","\u4E3A\u4E86\u6297\u8BAE\u4E16\u95F4\u7684\u4E0D\u516C\uFF0C\u5272\u7834\u624B\u6307\u5199\u4E0B\u4E86","\u5728\u827A\u672F\u5927\u8857\u4E0A\u88AB\u8D34\u6EE1\u4E86\u76F8\u540C\u7684\u7EB8\uFF0C\u8D70\u8FD1\u4E00\u770B\u662F","\u8FD9\u533A\u533A\u8FF7\u9635\u5C82\u80FD\u96BE\u5F97\u4F4F\u6211\uFF1F\u5176\u5B9E\u80FD\u8D70\u51FA\u6765\u591A\u4E8F\u4E86","\u4ECA\u65E5\u88AB\u4E00\u7BC7\u6587\u7AE0\u9876\u4E0A\u4E86\u5FAE\u535A\u70ED\u641C\uFF0C\u5B83\u662F","\u4F60\u9001\u7ED9\u4E5E\u4E10\u4E00\u4E2A\u66B4\u5BCC\u79D8\u7C4D\uFF0C\u5B83\u662F","UZI\u4E00\u4E2A\u8D70A\u62FF\u4E0B\u4E94\u6740\uFF0C\u5728\u4E8B\u540E\u91C7\u8BBF\u65F6\u8BF4\u4ED6\u5F53\u65F6\u56DE\u60F3\u8D77\u4E86","\u79D1\u5B66\u5BB6\u89E3\u5228\u4E86\u7B2C\u4E00\u4E2A\u611F\u67D3\u4E27\u5C38\u75C5\u6BD2\u7684\u4EBA\uFF0C\u53D1\u73B0\u4E27\u5C38\u6297\u4F53\u5B58\u5728\u4E8E"],randomPostClick=0;function fetchRandomPost(){if(console.log(fdata.apiurl),randomPostWorking==!1){randomPostWorking=!0;let a=randomPostTimes*360,n=randomPostTips[Math.floor(Math.random()*randomPostTips.length)],e="";randomPostTimes>1e4?e="\u613F\u8005\u4E0A\u94A9":randomPostTimes>1e3?e="\u4FEF\u89C8\u5929\u4E0B":randomPostTimes>1e3?e="\u8D85\u8D8A\u795E\u4E86":randomPostTimes>100?e="\u7EDD\u4E16\u6E14\u592B":randomPostTimes>75?e="\u9493\u9C7C\u738B\u8005":randomPostTimes>50?e="\u9493\u9C7C\u5B97\u5E08":randomPostTimes>20?e="\u9493\u9C7C\u4E13\u5BB6":randomPostTimes>5?e="\u9493\u9C7C\u9AD8\u624B":e="\u9493\u9C7C\u65B0\u624B",randomPostTimes>=5?document.getElementById("random-post").innerHTML="\u9493\u9C7C\u4E2D... \uFF08Lv."+randomPostTimes+" \u5F53\u524D\u79F0\u53F7\uFF1A"+e+"\uFF09":document.getElementById("random-post").innerHTML="\u9493\u9C7C\u4E2D...",$(".random-post-start").css("transform","rotate("+a+"deg)"),window.setTimeout(function(){if(randomPostClick*fdata.hungryFish+fdata.defaultFish<randomPostTimes&&Math.round(Math.random())==0)document.getElementById("random-post").innerHTML="\u56E0\u4E3A\u53EA\u9493\u9C7C\u4E0D\u5403\u9C7C\uFF0C\u8FC7\u5206\u9965\u997F\u5BFC\u81F4\u672C\u6B21\u9493\u9C7C\u5931\u8D25...",randomPostWorking=!1;else{var o=fdata.apiurl+"randompost";fetch(o).then(t=>t.json()).then(t=>{var r=t.title,i=t.link,l=t.author;document.querySelector("#random-post")&&(document.getElementById("random-post").innerHTML=n+"\u6765\u81EA\u53CB\u94FE <b>"+l+'</b> \u7684\u6587\u7AE0\uFF1A<a class="random-friends-post" onclick="randomClickLink()" target="_blank" href="'+i+'" rel="external nofollow">'+r+"</a>")}),randomPostWorking=!1}randomPostTimes+=1},2e3)}}fetchRandomPost();function randomClickLink(){randomPostClick+=1}function addflink(){var a=document.getElementsByClassName("el-textarea__inner")[0],n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),a.value=d.value="```yaml\n- name: #\u53CB\u94FE\u540D\u79F0\n link: #\u53CB\u94FE\u5730\u5740\uFF08\u5EFA\u8BAE\u535A\u5BA2\uFF0C\u800C\u4E0D\u662F\u4E3B\u9875\uFF0C\u5426\u5219\u53CB\u94FE\u670B\u53CB\u5708\u65E0\u6CD5\u722C\u53D6\uFF09\n avatar: #\u53CB\u94FE\u5934\u50CF\n descr: #\u4ECB\u7ECD\n theme_color: #\u53CB\u94FE\u80CC\u666F\u8272\uFF0C\u56E0\u4E3A#\u53F7\u5728yaml\u4E2D\u8BC6\u522B\u4E3A\u6CE8\u91CA\u8BF7\u52A0\u5F15\u53F7\n```",a.dispatchEvent(n)}
package/js/rightmenu.js CHANGED
@@ -2,4 +2,4 @@ console.log("Codes uses GPL Licence");function setMask(){return document.getElem
2
2
 
3
3
  `,t.dispatchEvent(e),console.log(getSelection().toString()),document.getElementsByClassName("el-textarea__inner")[0].value="> "+getSelection().toString()+`
4
4
 
5
- `,Snackbar.show({text:"\u4E3A\u4FDD\u8BC1\u6700\u4F73\u8BC4\u8BBA\u9605\u8BFB\u4F53\u9A8C\uFF0C\u5EFA\u8BAE\u4E0D\u8981\u5220\u9664\u7A7A\u884C",pos:"top-center",showAction:!1})},rmf.copyWordsLink=function(){let t=window.location.href,e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select(),document.execCommand("Copy"),document.body.removeChild(e),Snackbar.show({text:"\u94FE\u63A5\u590D\u5236\u6210\u529F\uFF01\u5FEB\u53BB\u5206\u4EAB\u5427\uFF01",pos:"top-right",showAction:!1})},rmf.switchReadMode=function(){const t=document.body;t.classList.add("read-mode");const e=document.createElement("button");e.type="button",e.className="fas fa-sign-out-alt exit-readmode",t.appendChild(e);function n(){t.classList.remove("read-mode"),e.remove(),e.removeEventListener("click",n)}e.addEventListener("click",n)},rmf.copySelect=function(){document.execCommand("Copy",!1,null)},rmf.scrollToTop=function(){document.getElementsByClassName("menus_items")[1].setAttribute("style",""),document.getElementById("name-container").setAttribute("style","display:none"),btf.scrollToDest(0,500)},rmf.translate=function(){document.getElementById("translateLink").click()},rmf.searchinThisPage=()=>{document.getElementsByClassName("local-search-box--input")[0].value=window.getSelection().toString(),document.getElementsByClassName("search")[0].click();var t=document.createEvent("HTMLEvents");t.initEvent("input",!1,!1),document.getElementsByClassName("local-search-box--input")[0].dispatchEvent(t)},rmf.downloadImage=function(t,e){btf.snackbarShow("\u6B63\u5728\u4E0B\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E",!1,1e4),setTimeout(function(){let n=new Image;n.setAttribute("crossOrigin","anonymous"),n.onload=function(){let o=document.createElement("canvas");o.width=n.width,o.height=n.height,o.getContext("2d").drawImage(n,0,0,n.width,n.height);let l=o.toDataURL("image/png"),c=document.createElement("a"),i=new MouseEvent("click");c.download=e||"photo",c.href=l,c.dispatchEvent(i)},n.src=t,btf.snackbarShow("\u56FE\u7247\u5DF2\u6DFB\u52A0\u76F2\u6C34\u5370\uFF0C\u8BF7\u9075\u5B88\u7248\u6743\u534F\u8BAE"),rm.downloadimging=!1},"10000")},document.body.addEventListener("touchmove",function(t){},{passive:!1});function popupMenu(){window.oncontextmenu=function(t){if(t.ctrlKey)return!0;$(".rightMenu-group.hide").hide(),document.getSelection().toString()&&$("#menu-text").show(),(document.getElementById("post")||document.getElementById("page"))&&$("#menu-post").show();var e=window.document.body;e=t.target;var n=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\*\+,;=.]+$/;n.test(window.getSelection().toString())&&e.tagName!="A"&&$("#menu-too").show(),e.tagName=="A"&&($("#menu-to").show(),rmf.open=function(){e.href.indexOf("http://")==-1&&e.href.indexOf("https://")==-1||e.href.indexOf("anjiurine.top")!=-1?pjax.loadUrl(e.href):location.href=e.href},rmf.openWithNewTab=function(){window.open(e.href)},rmf.copyLink=function(){let i=e.href,a=document.createElement("textarea");a.value=i,document.body.appendChild(a),a.select(),document.execCommand("Copy"),document.body.removeChild(a)}),e.tagName=="IMG"?($("#menu-img").show(),rmf.openWithNewTab=function(){window.open(e.src)},rmf.click=function(){e.click()},rmf.copyLink=function(){let i=e.src,a=document.createElement("textarea");a.value=i,document.body.appendChild(a),a.select(),document.execCommand("Copy"),document.body.removeChild(a)},rmf.saveAs=function(){var i=e.src,a=i.split("/")[-1];rmf.downloadImage(i,a)}):(e.tagName=="TEXTAREA"||e.tagName=="INPUT")&&($("#menu-paste").show(),rmf.paste=function(){navigator.permissions.query({name:"clipboard-read"}).then(i=>{i.state=="granted"||i.state=="prompt"?navigator.clipboard.readText().then(a=>{console.log(a),insertAtCursor(e,a)}):Snackbar.show({text:"\u8BF7\u5141\u8BB8\u8BFB\u53D6\u526A\u8D34\u677F\uFF01",pos:"top-center",showAction:!1})})});let o=t.clientX+10,s=t.clientY,l=$("#rightMenu").width(),c=$("#rightMenu").height();return o+l>window.innerWidth&&(o-=l+10),s+c>window.innerHeight&&(s-=s+c-window.innerHeight),mask=setMask(),window.onscroll=()=>{rmf.showRightMenu(!1),window.onscroll=()=>{},document.body.removeChild(mask)},$(".rightMenu-item").click(()=>{document.body.removeChild(mask)}),$(window).resize(()=>{rmf.showRightMenu(!1),document.body.removeChild(mask)}),mask.onclick=()=>{document.body.removeChild(mask)},rmf.showRightMenu(!0,s,o),!1},window.addEventListener("click",function(){rmf.showRightMenu(!1)})}navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)||popupMenu();const box=document.documentElement;function addLongtabListener(t,e){let n=0;t.ontouchstart=()=>{n=0,n=setTimeout(()=>{e(),n=0},380)},t.ontouchmove=()=>{clearTimeout(n),n=0},t.ontouchend=()=>{n&&clearTimeout(n)}}addLongtabListener(box,popupMenu);
5
+ `,Snackbar.show({text:"\u4E3A\u4FDD\u8BC1\u6700\u4F73\u8BC4\u8BBA\u9605\u8BFB\u4F53\u9A8C\uFF0C\u5EFA\u8BAE\u4E0D\u8981\u5220\u9664\u7A7A\u884C",pos:"top-center",showAction:!1})},rmf.copyWordsLink=function(){let t=window.location.href,e=document.createElement("textarea");e.value=t,document.body.appendChild(e),e.select(),document.execCommand("Copy"),document.body.removeChild(e),Snackbar.show({text:"\u94FE\u63A5\u590D\u5236\u6210\u529F\uFF01\u5FEB\u53BB\u5206\u4EAB\u5427\uFF01",pos:"top-right",showAction:!1})},rmf.switchReadMode=function(){const t=document.body;t.classList.add("read-mode");const e=document.createElement("button");e.type="button",e.className="fas fa-sign-out-alt exit-readmode",t.appendChild(e);function n(){t.classList.remove("read-mode"),e.remove(),e.removeEventListener("click",n)}e.addEventListener("click",n)},rmf.copySelect=function(){document.execCommand("Copy",!1,null)},rmf.scrollToTop=function(){document.getElementsByClassName("menus_items")[1].setAttribute("style",""),document.getElementById("name-container").setAttribute("style","display:none"),btf.scrollToDest(0,500)},rmf.translate=function(){document.getElementById("translateLink").click()},rmf.searchinThisPage=()=>{document.getElementsByClassName("local-search-box--input")[0].value=window.getSelection().toString(),document.getElementsByClassName("search")[0].click();var t=document.createEvent("HTMLEvents");t.initEvent("input",!1,!1),document.getElementsByClassName("local-search-box--input")[0].dispatchEvent(t)},rmf.downloadImage=function(t,e){btf.snackbarShow("\u6B63\u5728\u4E0B\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E",!1,1e4),setTimeout(function(){let n=new Image;n.setAttribute("crossOrigin","anonymous"),n.onload=function(){let o=document.createElement("canvas");o.width=n.width,o.height=n.height,o.getContext("2d").drawImage(n,0,0,n.width,n.height);let l=o.toDataURL("image/png"),c=document.createElement("a"),i=new MouseEvent("click");c.download=e||"photo",c.href=l,c.dispatchEvent(i)},n.src=t,btf.snackbarShow("\u56FE\u7247\u5DF2\u6DFB\u52A0\u76F2\u6C34\u5370\uFF0C\u8BF7\u9075\u5B88\u7248\u6743\u534F\u8BAE"),rm.downloadimging=!1},"10000")},document.body.addEventListener("touchmove",function(t){},{passive:!1});function popupMenu(){window.oncontextmenu=function(t){if(t.ctrlKey)return!0;$(".rightMenu-group.hide").hide(),document.getSelection().toString()&&$("#menu-text").show(),(document.getElementById("post")||document.getElementById("page"))&&$("#menu-post").show();var e=window.document.body;e=t.target;var n=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&'\*\+,;=.]+$/;n.test(window.getSelection().toString())&&e.tagName!="A"&&$("#menu-too").show(),e.tagName=="A"&&($("#menu-to").show(),rmf.open=function(){e.href.indexOf("http://")==-1&&e.href.indexOf("https://")==-1||e.href.indexOf("yumetsuki.moe")!=-1?pjax.loadUrl(e.href):location.href=e.href},rmf.openWithNewTab=function(){window.open(e.href)},rmf.copyLink=function(){let i=e.href,a=document.createElement("textarea");a.value=i,document.body.appendChild(a),a.select(),document.execCommand("Copy"),document.body.removeChild(a)}),e.tagName=="IMG"?($("#menu-img").show(),rmf.openWithNewTab=function(){window.open(e.src)},rmf.click=function(){e.click()},rmf.copyLink=function(){let i=e.src,a=document.createElement("textarea");a.value=i,document.body.appendChild(a),a.select(),document.execCommand("Copy"),document.body.removeChild(a)},rmf.saveAs=function(){var i=e.src,a=i.split("/")[-1];rmf.downloadImage(i,a)}):(e.tagName=="TEXTAREA"||e.tagName=="INPUT")&&($("#menu-paste").show(),rmf.paste=function(){navigator.permissions.query({name:"clipboard-read"}).then(i=>{i.state=="granted"||i.state=="prompt"?navigator.clipboard.readText().then(a=>{console.log(a),insertAtCursor(e,a)}):Snackbar.show({text:"\u8BF7\u5141\u8BB8\u8BFB\u53D6\u526A\u8D34\u677F\uFF01",pos:"top-center",showAction:!1})})});let o=t.clientX+10,s=t.clientY,l=$("#rightMenu").width(),c=$("#rightMenu").height();return o+l>window.innerWidth&&(o-=l+10),s+c>window.innerHeight&&(s-=s+c-window.innerHeight),mask=setMask(),window.onscroll=()=>{rmf.showRightMenu(!1),window.onscroll=()=>{},document.body.removeChild(mask)},$(".rightMenu-item").click(()=>{document.body.removeChild(mask)}),$(window).resize(()=>{rmf.showRightMenu(!1),document.body.removeChild(mask)}),mask.onclick=()=>{document.body.removeChild(mask)},rmf.showRightMenu(!0,s,o),!1},window.addEventListener("click",function(){rmf.showRightMenu(!1)})}navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)||popupMenu();const box=document.documentElement;function addLongtabListener(t,e){let n=0;t.ontouchstart=()=>{n=0,n=setTimeout(()=>{e(),n=0},380)},t.ontouchmove=()=>{clearTimeout(n),n=0},t.ontouchend=()=>{n&&clearTimeout(n)}}addLongtabListener(box,popupMenu);
package/js/welcome.js CHANGED
@@ -1 +1 @@
1
- "serviceWorker"in window.navigator&&navigator.serviceWorker.controller&&(navigator.serviceWorker.controller.postMessage("update"),navigator.serviceWorker.addEventListener("message",e=>{const i=e.data;switch(i.type){case"update":break;case"refresh":break;default:console.error(`\u672A\u77E5\u4E8B\u4EF6\uFF1A${i.type}`)}})),localStorage.getItem("popWelcomeWindow")!="0"&&(document.referrer==null||document.referrer.indexOf("anjiurine.top")!=-1||document.referrer.indexOf("ariasaka.top")!=-1?Snackbar.show({pos:"top-right",showAction:!1,text:"\u6B22\u8FCE\u8BBF\u95EE\u672C\u7AD9\uFF01"}):(Snackbar.show({pos:"top-right",showAction:!1,text:`\u6B22\u8FCE\u6765\u81EA${document.referrer.split("://")[1].split("/")[0]}\u7684\u7AE5\u978B\u8BBF\u95EE\u672C\u7AD9\uFF01`}),localStorage.setItem("popWelcomeWindow","0"))),sessionStorage.getItem("popCookieWindow")!="0"&&setTimeout(function(){Snackbar.show({text:"\u672C\u7AD9\u4F7F\u7528Cookie\u548C\u672C\u5730/\u4F1A\u8BDD\u5B58\u50A8\u4FDD\u8BC1\u6D4F\u89C8\u4F53\u9A8C\u548C\u7F51\u7AD9\u7EDF\u8BA1",pos:"bottom-right",actionText:"\u67E5\u770B\u535A\u5BA2\u58F0\u660E",onActionClick:function(e){window.open("/license")}})},3e3),sessionStorage.setItem("popCookieWindow","0");function browserTC(){btf.snackbarShow(""),Snackbar.show({text:"\u6D4F\u89C8\u5668\u7248\u672C\u8F83\u4F4E\uFF0C\u7F51\u7AD9\u6837\u5F0F\u53EF\u80FD\u9519\u4E71",actionText:"\u5173\u95ED",duration:"6000",pos:"bottom-right"})}function browserVersion(){var e=navigator.userAgent,i=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1,r=e.indexOf("Edge")>-1&&!i,t=e.indexOf("Firefox")>-1,n=e.indexOf("Opera")>-1||e.indexOf("OPR")>-1,a=e.indexOf("Chrome")>-1&&e.indexOf("Safari")>-1&&e.indexOf("Edge")==-1&&e.indexOf("OPR")==-1,s=e.indexOf("Safari")>-1&&e.indexOf("Chrome")==-1&&e.indexOf("Edge")==-1&&e.indexOf("OPR")==-1;r?e.split("Edge/")[1].split(".")[0]<90&&browserTC():t?e.split("Firefox/")[1].split(".")[0]<90&&browserTC():n?e.split("OPR/")[1].split(".")[0]<80&&browserTC():a&&e.split("Chrome/")[1].split(".")[0]<90&&browserTC()}function setCookies(e,i){let o=new Date(new Date().getTime()+i*24*60*60*1e3).toGMTString();for(let r in e)document.cookie=r+"="+e[r]+";expires="+o}function getCookie(e){var i,o=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(i=document.cookie.match(o))?unescape(i[2]):null}getCookie("browsertc")!=1&&(setCookies({browsertc:1},1),browserVersion());
1
+ "serviceWorker"in window.navigator&&navigator.serviceWorker.controller&&(navigator.serviceWorker.controller.postMessage("update"),navigator.serviceWorker.addEventListener("message",e=>{const i=e.data;switch(i.type){case"update":break;case"refresh":break;default:console.error(`\u672A\u77E5\u4E8B\u4EF6\uFF1A${i.type}`)}})),localStorage.getItem("popWelcomeWindow")!="0"&&(document.referrer==null||document.referrer.indexOf("yumetsuki.moe")!=-1||document.referrer.indexOf("ariasaka.top")!=-1?Snackbar.show({pos:"top-right",showAction:!1,text:"\u6B22\u8FCE\u8BBF\u95EE\u672C\u7AD9\uFF01"}):(Snackbar.show({pos:"top-right",showAction:!1,text:`\u6B22\u8FCE\u6765\u81EA${document.referrer.split("://")[1].split("/")[0]}\u7684\u7AE5\u978B\u8BBF\u95EE\u672C\u7AD9\uFF01`}),localStorage.setItem("popWelcomeWindow","0"))),sessionStorage.getItem("popCookieWindow")!="0"&&setTimeout(function(){Snackbar.show({text:"\u672C\u7AD9\u4F7F\u7528Cookie\u548C\u672C\u5730/\u4F1A\u8BDD\u5B58\u50A8\u4FDD\u8BC1\u6D4F\u89C8\u4F53\u9A8C\u548C\u7F51\u7AD9\u7EDF\u8BA1",pos:"bottom-right",actionText:"\u67E5\u770B\u535A\u5BA2\u58F0\u660E",onActionClick:function(e){window.open("/license")}})},3e3),sessionStorage.setItem("popCookieWindow","0");function browserTC(){btf.snackbarShow(""),Snackbar.show({text:"\u6D4F\u89C8\u5668\u7248\u672C\u8F83\u4F4E\uFF0C\u7F51\u7AD9\u6837\u5F0F\u53EF\u80FD\u9519\u4E71",actionText:"\u5173\u95ED",duration:"6000",pos:"bottom-right"})}function browserVersion(){var e=navigator.userAgent,i=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1,r=e.indexOf("Edge")>-1&&!i,t=e.indexOf("Firefox")>-1,n=e.indexOf("Opera")>-1||e.indexOf("OPR")>-1,s=e.indexOf("Chrome")>-1&&e.indexOf("Safari")>-1&&e.indexOf("Edge")==-1&&e.indexOf("OPR")==-1,a=e.indexOf("Safari")>-1&&e.indexOf("Chrome")==-1&&e.indexOf("Edge")==-1&&e.indexOf("OPR")==-1;r?e.split("Edge/")[1].split(".")[0]<90&&browserTC():t?e.split("Firefox/")[1].split(".")[0]<90&&browserTC():n?e.split("OPR/")[1].split(".")[0]<80&&browserTC():s&&e.split("Chrome/")[1].split(".")[0]<90&&browserTC()}function setCookies(e,i){let o=new Date(new Date().getTime()+i*24*60*60*1e3).toGMTString();for(let r in e)document.cookie=r+"="+e[r]+";expires="+o}function getCookie(e){var i,o=new RegExp("(^| )"+e+"=([^;]*)(;|$)");return(i=document.cookie.match(o))?unescape(i[2]):null}getCookie("browsertc")!=1&&(setCookies({browsertc:1},1),browserVersion());