From 5d7332423fea13f6d47dad5542b247cf365075a8 Mon Sep 17 00:00:00 2001 From: dlzmoe <65840178+dlzmoe@users.noreply.github.com> Date: Fri, 13 Sep 2024 10:47:54 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=200.3.34=20some=20new=20featu?= =?UTF-8?q?res=20have=20been=20added?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 5 +- dist/linuxdo-scripts.user.js | 923 +++++++++++------- linuxdo-scripts.user.js | 923 +++++++++++------- package.json | 2 +- src/app.vue | 17 +- .../BasicSettings/MenuDisableAutoplay.vue | 46 + .../BasicSettings/MenuNextPosts.vue | 84 ++ .../BasicSettings/MenuSelectedShare.vue | 24 + version-log.md | 7 + 9 files changed, 1272 insertions(+), 759 deletions(-) create mode 100644 src/components/BasicSettings/MenuDisableAutoplay.vue create mode 100644 src/components/BasicSettings/MenuNextPosts.vue create mode 100644 src/components/BasicSettings/MenuSelectedShare.vue diff --git a/CHANGELOG.md b/CHANGELOG.md index ee0b9e4..3ea58ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1,4 @@ -- 修复:频繁触发接口的问题 \ No newline at end of file +- 新增:快捷阅读下一个帖子 +- 新增:屏蔽视频自动播放 +- 新增:禁用选中分享功能 +- 优化:修改了部分代码逻辑 \ No newline at end of file diff --git a/dist/linuxdo-scripts.user.js b/dist/linuxdo-scripts.user.js index 8f3702c..5415f24 100644 --- a/dist/linuxdo-scripts.user.js +++ b/dist/linuxdo-scripts.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name linuxdo 增强插件 // @namespace https://github.com/dlzmoe/linuxdo-scripts -// @version 0.3.32 +// @version 0.3.33 // @author dlzmoe // @description linux.do 增强插件,功能持续更新,欢迎提出新想法! // @license Apache-2.0 @@ -15,13 +15,13 @@ // @grant GM_xmlhttpRequest // ==/UserScript== -(t=>{if(typeof GM_addStyle=="function"){GM_addStyle(t);return}const i=document.createElement("style");i.textContent=t,document.head.append(i)})(' input[type=text][data-v-2be3e9ac]{width:100px!important;outline:none;height:24px;border:1px solid #b6b6b6;border-radius:4px;margin-left:10px;padding:0 10px;box-sizing:border-box}.emojiPicker{top:0;left:100%;position:absolute;display:grid;grid-template-columns:repeat(12,1fr);gap:10px;height:100%;overflow:auto;background-color:#000c;padding:10px;border-radius:5px;z-index:9}.emojiPicker img{cursor:pointer;width:30px;height:30px}.sidebar-section-header-caret.right{transform:rotate(-90deg)}.item select[data-v-d780d688]{height:28px;border:1px solid #b6b6b6;border-radius:4px;width:180px;margin-left:10px;cursor:pointer}input[type=text][data-v-5861dcba]{width:100px!important;outline:none;height:24px;border:1px solid #b6b6b6;border-radius:4px;margin-left:10px;padding:0 10px;box-sizing:border-box}.item[data-v-e33f1de9]{border:none!important}.item a[data-v-e33f1de9]:hover{text-decoration:underline}.item[data-v-cb743585],.item[data-v-86b330f1],.item[data-v-f84417d4],.item[data-v-c99e7560]{border:none!important}.linxudoscripts-tag{background:#29a6a9;color:#fff;font-size:14px!important;padding:0 10px;height:26px;text-align:center;display:inline-flex!important;align-items:center;justify-content:center;border-radius:5px}.menu-table{width:100%}.menu-table td,.menu-table th{padding:10px;font-size:14px}.menu-table .span{cursor:pointer}.menu-table .span+.span{margin-left:10px}.item[data-v-178c15f8]{border:none}.item[data-v-b5335091]{display:block!important}p[data-v-b5335091]{margin:8px 0!important}ul[data-v-b5335091]{display:flex;flex-wrap:wrap;justify-content:space-between;list-style:none;padding:0}ul li[data-v-b5335091]{width:48%;margin-bottom:30px}input[type=radio][data-v-b5335091]{transform:scale(1.2)}.ls-flex[data-v-b5335091]{display:flex;align-content:center;margin-bottom:10px;cursor:pointer}.ls-flex input[data-v-b5335091]{margin-right:10px}.ls-flex label[data-v-b5335091]{cursor:pointer;font-weight:300}.item[data-v-b6c08155]{border:none!important;padding:0!important;margin-top:15px}.item .tit[data-v-b6c08155]{white-space:nowrap;width:160px}.item input[data-v-b6c08155]{margin:0}.btnwrapper[data-v-b6c08155]{margin-top:20px}.post-stream.lookopwrapactive .topic-post{display:none!important}.post-stream.lookopwrapactive .topic-post.topic-owner{display:block!important}@keyframes breathAnimation-57dbaeb5{0%,to{transform:scale(1);box-shadow:0 0 5px #00000080}50%{transform:scale(1.1);box-shadow:0 0 10px #000000b3}}.breath-animation[data-v-57dbaeb5]{animation:breathAnimation-57dbaeb5 4s ease-in-out infinite}.minimized[data-v-57dbaeb5]{width:50px!important;height:50px!important;border-radius:50%!important;padding:0!important;overflow:hidden;cursor:pointer}#linuxDoLevelPopupContent[data-v-57dbaeb5]{line-height:1.6;position:fixed;bottom:20px;right:90px;width:250px;height:auto;background-color:var(--tertiary-low);padding:15px;z-index:10000;font-size:14px;border-radius:5px}#linuxDoUserSearch[data-v-57dbaeb5]{width:100%;margin-top:10px}.button[data-v-57dbaeb5]{margin-top:10px}.minimize-button[data-v-57dbaeb5]{position:absolute;top:5px;right:5px;z-index:10001;background:transparent;border:none;cursor:pointer;border-radius:50%;text-align:center;line-height:40px;width:40px;height:40px}.linuxdoscripts-aidialog{position:fixed;top:0;left:-100%;width:500px;height:100vh;background:#fff;box-shadow:1px 2px 5px #0000003d;z-index:999;padding-top:60px;transition:all .1s linear;opacity:0;visibility:hidden;overflow:hidden}.linuxdoscripts-aidialog.act{left:0;opacity:1;visibility:inherit;overflow:inherit}a[data-v-45c51ed7]:hover{text-decoration:underline}.item-foot[data-v-45c51ed7]{display:flex;flex-direction:column;align-items:flex-start;position:absolute;bottom:70px;left:22px;line-height:2}.item-foot img[data-v-45c51ed7]{width:auto!important;height:20px!important}.UsageTip{position:static;margin:0;font-size:14px;line-height:1.6;background:var(--d-sidebar-background);color:var(--primary-medium)}.UsageTip>div{margin:10px 0}.UsageTip button{padding:8px 10px;margin-bottom:10px;border:none;outline:none;border-radius:4px}.timeline-container .topic-timeline .timeline-scrollarea{max-width:100px!important}#linuxdoscripts{font-size:14px}#linuxdoscripts input[type=text]{width:100%;background:var(--d-input-bg-color)}#linuxdoscripts input[type=checkbox]{transform:scale(1.2)}#linuxdoscripts #menu_suspendedball{display:none}#linuxdoscripts img{vertical-align:bottom;max-width:100%;height:auto}#linuxdoscripts .close{position:absolute;right:10px;top:45%;cursor:pointer;font-size:34px;color:#999;transform:translateY(-50%) rotate(45deg)}#linuxdoscripts .setting-btn{z-index:999;position:fixed;bottom:20px;right:20px}#linuxdoscripts .setting-btn .el-button{margin:15px 0 0;width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--tertiary-low);font-size:14px;cursor:pointer;transition:all .1s linear;border:none}#linuxdoscripts .setting-btn .el-button svg{margin:0}#linuxdoscripts .setting-btn .el-button:hover{opacity:.9}#linuxdoscripts .hint{margin-top:5px;color:#d94f4f;font-size:14px}#linuxdoscripts dialog{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:700px;background:var(--header_background);color:var(--primary);box-shadow:#0000 0 0,#0000 0 0,#0000001a 0 20px 25px -5px,#0000001a 0 8px 10px -6px;border-radius:16px;padding:15px;z-index:99999;overflow-x:hidden;box-sizing:border-box;margin:0;border:none;outline:none}#linuxdoscripts dialog .menu-about{padding:5px 0;line-height:2}#linuxdoscripts dialog .menu-about .initialization{color:#999;border-bottom:1px dashed #999;cursor:pointer}#linuxdoscripts dialog .menu-about .initialization:hover{color:#333;border-color:#333}#linuxdoscripts dialog p{margin:0;font-size:14px}#linuxdoscripts .menu-header{padding:.5rem .5rem 1rem;border-bottom:1px solid #eee;position:relative}#linuxdoscripts .title{font-size:18px;font-weight:600;display:flex;align-items:center}#linuxdoscripts .title img{margin-left:10px}#linuxdoscripts button{outline:0;min-width:80px;height:32px;border:none;background:var(--tertiary);text-shadow:0 -1px 0 rgba(0,0,0,.12);box-shadow:0 2px #0000000b;border-radius:4px;padding:0 10px;box-sizing:border-box;transition:all .1s linear;color:var(--secondary)}#linuxdoscripts button+button{margin-left:8px}#linuxdoscripts button.saveload{background:#3d9b93}#linuxdoscripts button.detection{background:#810000}#linuxdoscripts button:hover{opacity:.9}#linuxdoscripts .menu-flex{display:flex;justify-content:space-between;align-items:flex-start}#linuxdoscripts .menu-nav{width:140px;display:flex;flex-direction:column;margin:0 20px 0 0;padding-top:15px}#linuxdoscripts .menu-nav li{border-radius:4px;height:32px;width:100%;margin-bottom:5px;box-sizing:border-box;padding:0 10px;display:inline-flex;align-items:center;justify-content:flex-start;font-size:14px;cursor:pointer;line-height:1}#linuxdoscripts .menu-nav li svg{width:16px;margin-right:5px}#linuxdoscripts .menu-nav li.act{background:var(--bbcode-highlight)}#linuxdoscripts .menu-body{flex:1;height:480px;overflow-y:auto;padding-right:10px}#linuxdoscripts .menu-body::-webkit-scrollbar{height:8px;width:8px}#linuxdoscripts .menu-body::-webkit-scrollbar-corner{background:none}#linuxdoscripts .menu-body::-webkit-scrollbar-thumb{background:#dee0e1;border-radius:8px}#linuxdoscripts .menu-body .menu-body-item{display:none}#linuxdoscripts .menu-body .menu-body-item.act{display:block}#linuxdoscripts .menu-footer{display:flex;margin-top:10px;padding-top:6px}#linuxdoscripts .import{margin-left:auto!important}#linuxdoscripts .import,#linuxdoscripts .export{background:#d1f0ff;color:#559095}#linuxdoscripts .floorlottery{background:#ffb003}#linuxdoscripts .menu-body-item{padding-bottom:30px}#linuxdoscripts .menu-body-item .item{border-bottom:1px solid rgba(0,0,0,.05);padding:15px 0;display:flex;align-items:center;justify-content:space-between}#linuxdoscripts .menu-body-item .item input[type=checkbox]{width:30px;height:16px;position:relative;background-color:#dcdfe6;box-shadow:#dfdfdf 0 0 inset;border-radius:20px;background-clip:content-box;display:inline-block;appearance:none;-webkit-appearance:none;-moz-appearance:none;-webkit-user-select:none;user-select:none;outline:none;padding:0}#linuxdoscripts .menu-body-item .item input[type=checkbox]:before{content:"";position:absolute;width:12px;height:12px;background-color:#fff;border-radius:50%;left:2px;top:0;bottom:0;margin:auto;transition:.3s}#linuxdoscripts .menu-body-item .item input[type=checkbox]:checked{background-color:var(--tertiary);transition:.6s}#linuxdoscripts .menu-body-item .item input[type=checkbox]:checked:before{left:14px;transition:.3s}#linuxdoscripts textarea{font-family:inherit;width:100%;min-height:100px!important;border:1px solid #999;outline:0;padding:5px;font-size:14px;margin:5px 0 0;resize:none;border-radius:0;color:var(--d-input-text-color);background:var(--d-input-bg-color)}#linuxdoscripts textarea:focus{border-color:var(--tertiary);outline:2px solid var(--tertiary);outline-offset:-2px}#linuxdoscripts #floorlotterloading img{width:50px;height:50px}#linuxdoscripts .floorlotterywrap{display:none;width:400px;height:300px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;z-index:999}#linuxdoscripts .floorlotterywrap{width:400px;height:300px}#linuxdoscripts .el-checkbox__inner{border:1px solid #979797}#linuxdoscripts label{margin:0}.linuxdoscripts-opacity{display:none;position:fixed;left:0;top:0;width:100vw;height:100vh;background:#00000080;z-index:9999}.linuxlevel.four{background:linear-gradient(to right,red,#00f);-webkit-background-clip:text;color:transparent}.topic-post{position:relative}.linuxfloor{display:flex;color:var(--tertiary);width:30px;height:30px;align-items:center;justify-content:center;border-radius:6px;font-size:16px;margin-left:10px}.signature-p{color:#279a36;font-size:14px;word-break:break-word}.topic-list .views{font-weight:400!important;white-space:nowrap!important}.createreply{display:flex;flex-direction:column;max-width:300px}.createreply button{margin-bottom:10px;justify-content:flex-start;text-align:left}.topicpreview-btn{padding:4px 12px!important;font-size:14px!important;opacity:0!important}.topic-list-item:hover .topicpreview-btn{opacity:1!important}.topicpreview{position:fixed;top:0;left:0;z-index:99999;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center;display:none}.topicpreview .topicpreview-container{padding:30px 0;border-radius:5px;width:100%;max-width:800px;overflow-y:auto;height:80vh;z-index:10;background:var(--header_background);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.topicpreview .topicpreview-container .topicpreview-title{font-size:22px;font-weight:600;padding:0 30px}.topicpreview .topicpreview-container .topicpreview-date{padding:0 30px;color:#666}.topicpreview .topicpreview-container .topicpreview-content>.item{display:flex;align-items:flex-start;padding:20px 30px}.topicpreview .topicpreview-container .topicpreview-content>.item .itemfloor{width:50px;text-align:left;font-size:16px;padding-top:15px;color:#25b4cf}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost{flex:1;background:var(--tertiary-low);padding:15px;border-radius:10px;font-size:15px;word-break:break-all}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost pre code{max-width:620px}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost img{max-width:100%;max-height:100%;height:auto}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemname{font-size:16px;color:#8f3a3a;display:flex;justify-content:space-between;align-items:center}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemname span{color:#9e9e9e;margin-left:20px}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemdate{color:#b9b9b9;font-size:16px;margin-left:auto}.topicpreview-opacity{position:absolute;top:0;left:0;width:100%;height:100%;opacity:1;background:#0009;z-index:9}.body-preview .sidebar-wrapper{display:none!important}body.body-preview #main-outlet-wrapper{display:block!important;padding-left:50px!important}.body-preview .d-header-wrap,.body-preview .menu_suspendedball{display:none!important}.post-activity{white-space:nowrap;display:inline-block;width:100%;text-align:left}.d-header img{height:var(--d-logo-height);width:auto;max-width:100%;object-fit:contain}.aicreated-btn,.aireplay-btn{outline:none;border:none;background:var(--tertiary-low);display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:14px;padding:4px 10px;border-radius:3px;margin-bottom:10px;margin-right:10px}.aicreated-btn{display:none}.gpt-summary-wrap{background:var(--tertiary-low);border-radius:5px;padding:10px;font-size:14px;margin:0 0 10px;line-height:1.6}.gpt-summary-wrap .airegenerate{display:none;margin-top:6px;outline:none;border:1px solid #eee;background:#ffe27d;color:#626262;padding:4px 10px;cursor:pointer;border-radius:3px}.aicreatenewtopictitle{margin-left:20px}.aicreatenewtopictitle:hover{text-decoration:underline;cursor:pointer}.aireply-popup{z-index:999999;position:fixed;top:10%;left:50%;transform:translate(-50%);width:500px;padding:20px;background:var(--tertiary-low);color:#333;box-shadow:#0000 0 0,#0000 0 0,#0000001a 0 20px 25px -5px,#0000001a 0 8px 10px -6px;border-radius:10px;display:none}.aireply-popup .aireply-popup-text{width:100%;height:120px}.aireply-popup .aireply-popup-close{outline:0;min-width:80px;height:32px;border:none;background-color:var(--header_background);text-shadow:0 -1px 0 rgba(0,0,0,.12);box-shadow:0 2px #0000000b;border-radius:4px;padding:0 10px;box-sizing:border-box;transition:all .1s linear}#messageToast{z-index:9999999;position:fixed;left:50%;transform:translate(-50%);top:10%;width:100%;display:flex;flex-direction:column;align-items:center}#messageToast .messageToast-text{background:var(--tertiary-low);color:var(--primary);border-radius:6px;width:auto;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-align:center;line-height:1;height:40px;min-width:240px;font-size:16px;padding:0 30px;box-sizing:border-box;margin-bottom:10px;opacity:0;animation:messageToast .2s forwards}@keyframes messageToast{0%{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}.pangutext{cursor:pointer;margin-left:20px}.pangutext:hover{color:#279a36}.navigation-container.is-active{position:fixed;top:65px;background:var(--header_background);z-index:9;box-shadow:1px 3px 7px #0003;margin-left:-30px;padding-left:30px;border-radius:5px;padding-top:10px;padding-right:20px;min-width:1000px;width:auto} '); +(t=>{if(typeof GM_addStyle=="function"){GM_addStyle(t);return}const i=document.createElement("style");i.textContent=t,document.head.append(i)})(' input[type=text][data-v-2be3e9ac]{width:100px!important;outline:none;height:24px;border:1px solid #b6b6b6;border-radius:4px;margin-left:10px;padding:0 10px;box-sizing:border-box}.emojiPicker{top:0;left:100%;position:absolute;display:grid;grid-template-columns:repeat(12,1fr);gap:10px;height:100%;overflow:auto;background-color:#000c;padding:10px;border-radius:5px;z-index:9}.emojiPicker img{cursor:pointer;width:30px;height:30px}.sidebar-section-header-caret.right{transform:rotate(-90deg)}.item select[data-v-d780d688]{height:28px;border:1px solid #b6b6b6;border-radius:4px;width:180px;margin-left:10px;cursor:pointer}.item[data-v-e33f1de9]{border:none!important}.item a[data-v-e33f1de9]:hover{text-decoration:underline}.item[data-v-cb743585],.item[data-v-86b330f1],.item[data-v-f84417d4],.item[data-v-c99e7560]{border:none!important}input[type=text][data-v-5861dcba]{width:100px!important;outline:none;height:24px;border:1px solid #b6b6b6;border-radius:4px;margin-left:10px;padding:0 10px;box-sizing:border-box}.linxudoscripts-tag{background:#29a6a9;color:#fff;font-size:14px!important;padding:0 10px;height:26px;text-align:center;display:inline-flex!important;align-items:center;justify-content:center;border-radius:5px}.menu-table{width:100%}.menu-table td,.menu-table th{padding:10px;font-size:14px}.menu-table .span{cursor:pointer}.menu-table .span+.span{margin-left:10px}.item[data-v-178c15f8]{border:none}.item[data-v-b5335091]{display:block!important}p[data-v-b5335091]{margin:8px 0!important}ul[data-v-b5335091]{display:flex;flex-wrap:wrap;justify-content:space-between;list-style:none;padding:0}ul li[data-v-b5335091]{width:48%;margin-bottom:30px}input[type=radio][data-v-b5335091]{transform:scale(1.2)}.ls-flex[data-v-b5335091]{display:flex;align-content:center;margin-bottom:10px;cursor:pointer}.ls-flex input[data-v-b5335091]{margin-right:10px}.ls-flex label[data-v-b5335091]{cursor:pointer;font-weight:300}.item[data-v-b6c08155]{border:none!important;padding:0!important;margin-top:15px}.item .tit[data-v-b6c08155]{white-space:nowrap;width:160px}.item input[data-v-b6c08155]{margin:0}.btnwrapper[data-v-b6c08155]{margin-top:20px}.post-stream.lookopwrapactive .topic-post{display:none!important}.post-stream.lookopwrapactive .topic-post.topic-owner{display:block!important}@keyframes breathAnimation-57dbaeb5{0%,to{transform:scale(1);box-shadow:0 0 5px #00000080}50%{transform:scale(1.1);box-shadow:0 0 10px #000000b3}}.breath-animation[data-v-57dbaeb5]{animation:breathAnimation-57dbaeb5 4s ease-in-out infinite}.minimized[data-v-57dbaeb5]{width:50px!important;height:50px!important;border-radius:50%!important;padding:0!important;overflow:hidden;cursor:pointer}#linuxDoLevelPopupContent[data-v-57dbaeb5]{line-height:1.6;position:fixed;bottom:20px;right:90px;width:250px;height:auto;background-color:var(--tertiary-low);padding:15px;z-index:10000;font-size:14px;border-radius:5px}#linuxDoUserSearch[data-v-57dbaeb5]{width:100%;margin-top:10px}.button[data-v-57dbaeb5]{margin-top:10px}.minimize-button[data-v-57dbaeb5]{position:absolute;top:5px;right:5px;z-index:10001;background:transparent;border:none;cursor:pointer;border-radius:50%;text-align:center;line-height:40px;width:40px;height:40px}.linuxdoscripts-aidialog{position:fixed;top:0;left:-100%;width:500px;height:100vh;background:#fff;box-shadow:1px 2px 5px #0000003d;z-index:999;padding-top:60px;transition:all .1s linear;opacity:0;visibility:hidden;overflow:hidden}.linuxdoscripts-aidialog.act{left:0;opacity:1;visibility:inherit;overflow:inherit}a[data-v-45c51ed7]:hover{text-decoration:underline}.item-foot[data-v-45c51ed7]{display:flex;flex-direction:column;align-items:flex-start;position:absolute;bottom:70px;left:22px;line-height:2}.item-foot img[data-v-45c51ed7]{width:auto!important;height:20px!important}.UsageTip{position:static;margin:0;font-size:14px;line-height:1.6;background:var(--d-sidebar-background);color:var(--primary-medium)}.UsageTip>div{margin:10px 0}.UsageTip button{padding:8px 10px;margin-bottom:10px;border:none;outline:none;border-radius:4px}.timeline-container .topic-timeline .timeline-scrollarea{max-width:100px!important}#linuxdoscripts{font-size:14px}#linuxdoscripts input[type=text]{width:100%;background:var(--d-input-bg-color)}#linuxdoscripts input[type=checkbox]{transform:scale(1.2)}#linuxdoscripts #menu_suspendedball{display:none}#linuxdoscripts img{vertical-align:bottom;max-width:100%;height:auto}#linuxdoscripts .close{position:absolute;right:10px;top:45%;cursor:pointer;font-size:34px;color:#999;transform:translateY(-50%) rotate(45deg)}#linuxdoscripts .setting-btn{z-index:999;position:fixed;bottom:20px;right:20px}#linuxdoscripts .setting-btn .el-button{margin:15px 0 0;width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--tertiary-low);font-size:14px;cursor:pointer;transition:all .1s linear;border:none}#linuxdoscripts .setting-btn .el-button svg{margin:0}#linuxdoscripts .setting-btn .el-button:hover{opacity:.9}#linuxdoscripts .hint{margin-top:5px;color:#d94f4f;font-size:14px}#linuxdoscripts dialog{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:700px;background:var(--header_background);color:var(--primary);box-shadow:#0000 0 0,#0000 0 0,#0000001a 0 20px 25px -5px,#0000001a 0 8px 10px -6px;border-radius:16px;padding:15px;z-index:99999;overflow-x:hidden;box-sizing:border-box;margin:0;border:none;outline:none}#linuxdoscripts dialog .menu-about{padding:5px 0;line-height:2}#linuxdoscripts dialog .menu-about .initialization{color:#999;border-bottom:1px dashed #999;cursor:pointer}#linuxdoscripts dialog .menu-about .initialization:hover{color:#333;border-color:#333}#linuxdoscripts dialog p{margin:0;font-size:14px}#linuxdoscripts .menu-header{padding:.5rem .5rem 1rem;border-bottom:1px solid #eee;position:relative}#linuxdoscripts .title{font-size:18px;font-weight:600;display:flex;align-items:center}#linuxdoscripts .title img{margin-left:10px}#linuxdoscripts button{outline:0;min-width:80px;height:32px;border:none;background:var(--tertiary);text-shadow:0 -1px 0 rgba(0,0,0,.12);box-shadow:0 2px #0000000b;border-radius:4px;padding:0 10px;box-sizing:border-box;transition:all .1s linear;color:var(--secondary)}#linuxdoscripts button+button{margin-left:8px}#linuxdoscripts button.saveload{background:#3d9b93}#linuxdoscripts button.detection{background:#810000}#linuxdoscripts button:hover{opacity:.9}#linuxdoscripts .menu-flex{display:flex;justify-content:space-between;align-items:flex-start}#linuxdoscripts .menu-nav{width:140px;display:flex;flex-direction:column;margin:0 20px 0 0;padding-top:15px}#linuxdoscripts .menu-nav li{border-radius:4px;height:32px;width:100%;margin-bottom:5px;box-sizing:border-box;padding:0 10px;display:inline-flex;align-items:center;justify-content:flex-start;font-size:14px;cursor:pointer;line-height:1}#linuxdoscripts .menu-nav li svg{width:16px;margin-right:5px}#linuxdoscripts .menu-nav li.act{background:var(--bbcode-highlight)}#linuxdoscripts .menu-body{flex:1;height:480px;overflow-y:auto;padding-right:10px}#linuxdoscripts .menu-body::-webkit-scrollbar{height:8px;width:8px}#linuxdoscripts .menu-body::-webkit-scrollbar-corner{background:none}#linuxdoscripts .menu-body::-webkit-scrollbar-thumb{background:#dee0e1;border-radius:8px}#linuxdoscripts .menu-body .menu-body-item{display:none}#linuxdoscripts .menu-body .menu-body-item.act{display:block}#linuxdoscripts .menu-footer{display:flex;margin-top:10px;padding-top:6px}#linuxdoscripts .import{margin-left:auto!important}#linuxdoscripts .import,#linuxdoscripts .export{background:#d1f0ff;color:#559095}#linuxdoscripts .floorlottery{background:#ffb003}#linuxdoscripts .menu-body-item{padding-bottom:30px}#linuxdoscripts .menu-body-item .item{border-bottom:1px solid rgba(0,0,0,.05);padding:15px 0;display:flex;align-items:center;justify-content:space-between}#linuxdoscripts .menu-body-item .item input[type=checkbox]{width:30px;height:16px;position:relative;background-color:#dcdfe6;box-shadow:#dfdfdf 0 0 inset;border-radius:20px;background-clip:content-box;display:inline-block;appearance:none;-webkit-appearance:none;-moz-appearance:none;-webkit-user-select:none;user-select:none;outline:none;padding:0}#linuxdoscripts .menu-body-item .item input[type=checkbox]:before{content:"";position:absolute;width:12px;height:12px;background-color:#fff;border-radius:50%;left:2px;top:0;bottom:0;margin:auto;transition:.3s}#linuxdoscripts .menu-body-item .item input[type=checkbox]:checked{background-color:var(--tertiary);transition:.6s}#linuxdoscripts .menu-body-item .item input[type=checkbox]:checked:before{left:14px;transition:.3s}#linuxdoscripts textarea{font-family:inherit;width:100%;min-height:100px!important;border:1px solid #999;outline:0;padding:5px;font-size:14px;margin:5px 0 0;resize:none;border-radius:0;color:var(--d-input-text-color);background:var(--d-input-bg-color)}#linuxdoscripts textarea:focus{border-color:var(--tertiary);outline:2px solid var(--tertiary);outline-offset:-2px}#linuxdoscripts #floorlotterloading img{width:50px;height:50px}#linuxdoscripts .floorlotterywrap{display:none;width:400px;height:300px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;z-index:999}#linuxdoscripts .floorlotterywrap{width:400px;height:300px}#linuxdoscripts .el-checkbox__inner{border:1px solid #979797}#linuxdoscripts label{margin:0}.linuxdoscripts-opacity{display:none;position:fixed;left:0;top:0;width:100vw;height:100vh;background:#00000080;z-index:9999}.linuxlevel.four{background:linear-gradient(to right,red,#00f);-webkit-background-clip:text;color:transparent}.topic-post{position:relative}.linuxfloor{display:flex;color:var(--tertiary);width:30px;height:30px;align-items:center;justify-content:center;border-radius:6px;font-size:16px;margin-left:10px}.signature-p{color:#279a36;font-size:14px;word-break:break-word}.topic-list .views{font-weight:400!important;white-space:nowrap!important}.createreply{display:flex;flex-direction:column;max-width:300px}.createreply button{margin-bottom:10px;justify-content:flex-start;text-align:left}.topicpreview-btn{padding:4px 12px!important;font-size:14px!important;opacity:0!important}.topic-list-item:hover .topicpreview-btn{opacity:1!important}.topicpreview{position:fixed;top:0;left:0;z-index:99999;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center;display:none}.topicpreview .topicpreview-container{padding:30px 0;border-radius:5px;width:100%;max-width:800px;overflow-y:auto;height:80vh;z-index:10;background:var(--header_background);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.topicpreview .topicpreview-container .topicpreview-title{font-size:22px;font-weight:600;padding:0 30px}.topicpreview .topicpreview-container .topicpreview-date{padding:0 30px;color:#666}.topicpreview .topicpreview-container .topicpreview-content>.item{display:flex;align-items:flex-start;padding:20px 30px}.topicpreview .topicpreview-container .topicpreview-content>.item .itemfloor{width:50px;text-align:left;font-size:16px;padding-top:15px;color:#25b4cf}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost{flex:1;background:var(--tertiary-low);padding:15px;border-radius:10px;font-size:15px;word-break:break-all}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost pre code{max-width:620px}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost img{max-width:100%;max-height:100%;height:auto}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemname{font-size:16px;color:#8f3a3a;display:flex;justify-content:space-between;align-items:center}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemname span{color:#9e9e9e;margin-left:20px}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemdate{color:#b9b9b9;font-size:16px;margin-left:auto}.topicpreview-opacity{position:absolute;top:0;left:0;width:100%;height:100%;opacity:1;background:#0009;z-index:9}.body-preview .sidebar-wrapper{display:none!important}body.body-preview #main-outlet-wrapper{display:block!important;padding-left:50px!important}.body-preview .d-header-wrap,.body-preview .menu_suspendedball{display:none!important}.post-activity{white-space:nowrap;display:inline-block;width:100%;text-align:left}.d-header img{height:var(--d-logo-height);width:auto;max-width:100%;object-fit:contain}.aicreated-btn,.aireplay-btn{outline:none;border:none;background:var(--tertiary-low);display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:14px;padding:4px 10px;border-radius:3px;margin-bottom:10px;margin-right:10px}.aicreated-btn{display:none}.gpt-summary-wrap{background:var(--tertiary-low);border-radius:5px;padding:10px;font-size:14px;margin:0 0 10px;line-height:1.6}.gpt-summary-wrap .airegenerate{display:none;margin-top:6px;outline:none;border:1px solid #eee;background:#ffe27d;color:#626262;padding:4px 10px;cursor:pointer;border-radius:3px}.aicreatenewtopictitle{margin-left:20px}.aicreatenewtopictitle:hover{text-decoration:underline;cursor:pointer}.aireply-popup{z-index:999999;position:fixed;top:10%;left:50%;transform:translate(-50%);width:500px;padding:20px;background:var(--tertiary-low);color:#333;box-shadow:#0000 0 0,#0000 0 0,#0000001a 0 20px 25px -5px,#0000001a 0 8px 10px -6px;border-radius:10px;display:none}.aireply-popup .aireply-popup-text{width:100%;height:120px}.aireply-popup .aireply-popup-close{outline:0;min-width:80px;height:32px;border:none;background-color:var(--header_background);text-shadow:0 -1px 0 rgba(0,0,0,.12);box-shadow:0 2px #0000000b;border-radius:4px;padding:0 10px;box-sizing:border-box;transition:all .1s linear}#messageToast{z-index:9999999;position:fixed;left:50%;transform:translate(-50%);top:10%;width:100%;display:flex;flex-direction:column;align-items:center}#messageToast .messageToast-text{background:var(--tertiary-low);color:var(--primary);border-radius:6px;width:auto;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-align:center;line-height:1;height:40px;min-width:240px;font-size:16px;padding:0 30px;box-sizing:border-box;margin-bottom:10px;opacity:0;animation:messageToast .2s forwards}@keyframes messageToast{0%{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}.pangutext{cursor:pointer;margin-left:20px}.pangutext:hover{color:#279a36}.navigation-container.is-active{position:fixed;top:65px;background:var(--header_background);z-index:9;box-shadow:1px 3px 7px #0003;margin-left:-30px;padding-left:30px;border-radius:5px;padding-top:10px;padding-right:20px;min-width:1000px;width:auto} '); (function (vue, pangu, marked, $$1) { 'use strict'; const name = "linuxdo-scripts"; - const version = "0.3.32"; + const version = "0.3.33"; const author = "dlzmoe"; const description = "An enhanced script for the linux.do forum"; const type = "module"; @@ -65,7 +65,7 @@ } return target; }; - const _sfc_main$L = { + const _sfc_main$O = { props: ["modelValue", "sort"], emits: ["update:modelValue"], data() { @@ -113,21 +113,21 @@ this.removeEventListeners(); } }; - const _hoisted_1$F = { class: "item" }; - const _hoisted_2$F = { class: "tit" }; - const _hoisted_3$v = ["checked"]; - function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [ - vue.createElementVNode("div", _hoisted_2$F, vue.toDisplayString($props.sort) + ". 是否新标签页打开话题", 1), + const _hoisted_1$I = { class: "item" }; + const _hoisted_2$I = { class: "tit" }; + const _hoisted_3$y = ["checked"]; + function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [ + vue.createElementVNode("div", _hoisted_2$I, vue.toDisplayString($props.sort) + ". 是否新标签页打开话题", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$v) + }, null, 40, _hoisted_3$y) ]); } - const MenuOpenpostblank = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$L]]); - const _sfc_main$K = { + const MenuOpenpostblank = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$O]]); + const _sfc_main$N = { props: ["modelValue", "sort"], emits: ["update:modelValue"], methods: { @@ -145,21 +145,21 @@ } } }; - const _hoisted_1$E = { class: "item" }; - const _hoisted_2$E = { class: "tit" }; - const _hoisted_3$u = ["checked"]; - function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [ - vue.createElementVNode("div", _hoisted_2$E, vue.toDisplayString($props.sort) + ". 是否开启新话题提醒", 1), + const _hoisted_1$H = { class: "item" }; + const _hoisted_2$H = { class: "tit" }; + const _hoisted_3$x = ["checked"]; + function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [ + vue.createElementVNode("div", _hoisted_2$H, vue.toDisplayString($props.sort) + ". 是否开启新话题提醒", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$u) + }, null, 40, _hoisted_3$x) ]); } - const MenuNewtopicreminder = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$K]]); - const _sfc_main$J = { + const MenuNewtopicreminder = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$N]]); + const _sfc_main$M = { props: ["modelValue", "sort"], emits: ["update:modelValue"], methods: { @@ -181,21 +181,21 @@ } } }; - const _hoisted_1$D = { class: "item" }; - const _hoisted_2$D = { class: "tit" }; - const _hoisted_3$t = ["checked"]; - function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [ - vue.createElementVNode("div", _hoisted_2$D, vue.toDisplayString($props.sort) + ". 是否自动展开回复", 1), + const _hoisted_1$G = { class: "item" }; + const _hoisted_2$G = { class: "tit" }; + const _hoisted_3$w = ["checked"]; + function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [ + vue.createElementVNode("div", _hoisted_2$G, vue.toDisplayString($props.sort) + ". 是否自动展开回复", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$t) + }, null, 40, _hoisted_3$w) ]); } - const MenuAutoexpandreply = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$J]]); - const _sfc_main$I = { + const MenuAutoexpandreply = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$M]]); + const _sfc_main$L = { props: ["modelValue", "sort"], emits: ["update:modelValue"], methods: { @@ -302,23 +302,23 @@ } } }; - const _hoisted_1$C = { class: "item" }; - const _hoisted_2$C = { class: "tit" }; - const _hoisted_3$s = ["checked"]; - function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) { + const _hoisted_1$F = { class: "item" }; + const _hoisted_2$F = { class: "tit" }; + const _hoisted_3$v = ["checked"]; + function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("div", null, [ - vue.createElementVNode("div", _hoisted_1$C, [ - vue.createElementVNode("div", _hoisted_2$C, vue.toDisplayString($props.sort) + ". 话题列表显示创建时间", 1), + vue.createElementVNode("div", _hoisted_1$F, [ + vue.createElementVNode("div", _hoisted_2$F, vue.toDisplayString($props.sort) + ". 话题列表显示创建时间", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$s) + }, null, 40, _hoisted_3$v) ]) ]); } - const MenuShowcreatetime = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$I]]); - const _sfc_main$H = { + const MenuShowcreatetime = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$L]]); + const _sfc_main$K = { props: ["modelValue", "sort"], emits: ["update:modelValue"], methods: { @@ -423,21 +423,21 @@ } } }; - const _hoisted_1$B = { class: "item" }; - const _hoisted_2$B = { class: "tit" }; - const _hoisted_3$r = ["checked"]; - function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [ - vue.createElementVNode("div", _hoisted_2$B, vue.toDisplayString($props.sort) + ". 将浏览量替换为创建时间(与 4 互斥,只可选择一个)", 1), + const _hoisted_1$E = { class: "item" }; + const _hoisted_2$E = { class: "tit" }; + const _hoisted_3$u = ["checked"]; + function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [ + vue.createElementVNode("div", _hoisted_2$E, vue.toDisplayString($props.sort) + ". 将浏览量替换为创建时间(与 4 互斥,只可选择一个)", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$r) + }, null, 40, _hoisted_3$u) ]); } - const MenuShowcreatetime1 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$H]]); - const _sfc_main$G = { + const MenuShowcreatetime1 = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$K]]); + const _sfc_main$J = { props: ["modelValue", "sort"], emits: ["update:modelValue"], methods: { @@ -462,21 +462,21 @@ } } }; - const _hoisted_1$A = { class: "item" }; - const _hoisted_2$A = { class: "tit" }; - const _hoisted_3$q = ["checked"]; - function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [ - vue.createElementVNode("div", _hoisted_2$A, vue.toDisplayString($props.sort) + ". 是否显示楼层数", 1), + const _hoisted_1$D = { class: "item" }; + const _hoisted_2$D = { class: "tit" }; + const _hoisted_3$t = ["checked"]; + function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [ + vue.createElementVNode("div", _hoisted_2$D, vue.toDisplayString($props.sort) + ". 是否显示楼层数", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$q) + }, null, 40, _hoisted_3$t) ]); } - const MenuShowfloors = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$G]]); - const _sfc_main$F = { + const MenuShowfloors = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$J]]); + const _sfc_main$I = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -485,21 +485,21 @@ } } }; - const _hoisted_1$z = { class: "item" }; - const _hoisted_2$z = { class: "tit" }; - const _hoisted_3$p = ["checked"]; - function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [ - vue.createElementVNode("div", _hoisted_2$z, vue.toDisplayString($props.sort) + ". 隐藏话题详情顶部大标题", 1), + const _hoisted_1$C = { class: "item" }; + const _hoisted_2$C = { class: "tit" }; + const _hoisted_3$s = ["checked"]; + function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [ + vue.createElementVNode("div", _hoisted_2$C, vue.toDisplayString($props.sort) + ". 隐藏话题详情顶部大标题", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$p) + }, null, 40, _hoisted_3$s) ]); } - const MenuHidetopicdetailtitle = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$F]]); - const _sfc_main$E = { + const MenuHidetopicdetailtitle = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$I]]); + const _sfc_main$H = { props: ["modelValue", "sort"], emits: ["update:modelValue"], methods: { @@ -596,21 +596,21 @@ } } }; - const _hoisted_1$y = { class: "item" }; - const _hoisted_2$y = { class: "tit" }; - const _hoisted_3$o = ["checked"]; - function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [ - vue.createElementVNode("div", _hoisted_2$y, vue.toDisplayString($props.sort) + ". 是否开启话题预览功能", 1), + const _hoisted_1$B = { class: "item" }; + const _hoisted_2$B = { class: "tit" }; + const _hoisted_3$r = ["checked"]; + function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [ + vue.createElementVNode("div", _hoisted_2$B, vue.toDisplayString($props.sort) + ". 是否开启话题预览功能", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$o) + }, null, 40, _hoisted_3$r) ]); } - const MenuTopicpreview = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E]]); - const _sfc_main$D = { + const MenuTopicpreview = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$H]]); + const _sfc_main$G = { props: ["modelValue", "sort"], emits: ["update:modelValue"], computed: { @@ -637,12 +637,12 @@ } } }; - const _hoisted_1$x = { class: "item" }; - const _hoisted_2$x = { class: "tit" }; - const _hoisted_3$n = ["checked"]; - function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [ - vue.createElementVNode("div", _hoisted_2$x, [ + const _hoisted_1$A = { class: "item" }; + const _hoisted_2$A = { class: "tit" }; + const _hoisted_3$q = ["checked"]; + function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [ + vue.createElementVNode("div", _hoisted_2$A, [ vue.createTextVNode(vue.toDisplayString($props.sort) + ". 是否显示自动阅读按钮,可调节速度默认 10 ", 1), vue.withDirectives(vue.createElementVNode("input", { type: "text", @@ -656,29 +656,29 @@ type: "checkbox", checked: $options.value1, onChange: _cache[1] || (_cache[1] = ($event) => $options.updateValue1($event.target.checked)) - }, null, 40, _hoisted_3$n) + }, null, 40, _hoisted_3$q) ]); } - const MenuAutoRead = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$D], ["__scopeId", "data-v-2be3e9ac"]]); - const _sfc_main$C = { + const MenuAutoRead = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$G], ["__scopeId", "data-v-2be3e9ac"]]); + const _sfc_main$F = { props: ["modelValue", "sort"], emits: ["update:modelValue"] }; - const _hoisted_1$w = { class: "item" }; - const _hoisted_2$w = { class: "tit" }; - const _hoisted_3$m = ["checked"]; - function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [ - vue.createElementVNode("div", _hoisted_2$w, vue.toDisplayString($props.sort) + ". 是否开启只看楼主", 1), + const _hoisted_1$z = { class: "item" }; + const _hoisted_2$z = { class: "tit" }; + const _hoisted_3$p = ["checked"]; + function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [ + vue.createElementVNode("div", _hoisted_2$z, vue.toDisplayString($props.sort) + ". 是否开启只看楼主", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$m) + }, null, 40, _hoisted_3$p) ]); } - const MenuLookOP = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C]]); - const _sfc_main$B = { + const MenuLookOP = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$F]]); + const _sfc_main$E = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -689,20 +689,20 @@ } } }; - const _hoisted_1$v = { class: "item" }; - const _hoisted_2$v = { class: "tit" }; - const _hoisted_3$l = ["checked"]; - function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [ - vue.createElementVNode("div", _hoisted_2$v, vue.toDisplayString($props.sort) + ". 智能限制楼层高度", 1), + const _hoisted_1$y = { class: "item" }; + const _hoisted_2$y = { class: "tit" }; + const _hoisted_3$o = ["checked"]; + function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [ + vue.createElementVNode("div", _hoisted_2$y, vue.toDisplayString($props.sort) + ". 智能限制楼层高度", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$l) + }, null, 40, _hoisted_3$o) ]); } - const MenuFloorHeight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$B]]); + const MenuFloorHeight = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E]]); const emojiSet = [ { size: "30x30", @@ -1327,12 +1327,12 @@ }); } }, 100); - const _sfc_main$A = {}; - function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) { + const _sfc_main$D = {}; + function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) { return null; } - const ReplyTBEnjoy = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$A]]); - const _sfc_main$z = { + const ReplyTBEnjoy = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$D]]); + const _sfc_main$C = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -1373,39 +1373,39 @@ } } }; - const _hoisted_1$u = { class: "item" }; - const _hoisted_2$u = { class: "tit" }; - const _hoisted_3$k = ["checked"]; - function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [ - vue.createElementVNode("div", _hoisted_2$u, vue.toDisplayString($props.sort) + ". 是否开启中英文混排优化显示", 1), + const _hoisted_1$x = { class: "item" }; + const _hoisted_2$x = { class: "tit" }; + const _hoisted_3$n = ["checked"]; + function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [ + vue.createElementVNode("div", _hoisted_2$x, vue.toDisplayString($props.sort) + ". 是否开启中英文混排优化显示", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$k) + }, null, 40, _hoisted_3$n) ]); } - const MenuPangu = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z]]); - const _sfc_main$y = { + const MenuPangu = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C]]); + const _sfc_main$B = { props: ["modelValue", "sort"], emits: ["update:modelValue"] }; - const _hoisted_1$t = { class: "item" }; - const _hoisted_2$t = { class: "tit" }; - const _hoisted_3$j = ["checked"]; - function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$t, [ - vue.createElementVNode("div", _hoisted_2$t, vue.toDisplayString($props.sort) + ". 是否显示等级查询按钮", 1), + const _hoisted_1$w = { class: "item" }; + const _hoisted_2$w = { class: "tit" }; + const _hoisted_3$m = ["checked"]; + function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [ + vue.createElementVNode("div", _hoisted_2$w, vue.toDisplayString($props.sort) + ". 是否显示等级查询按钮", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$j) + }, null, 40, _hoisted_3$m) ]); } - const MenuLevelSearch = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y]]); - const _sfc_main$x = { + const MenuLevelSearch = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$B]]); + const _sfc_main$A = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -1417,21 +1417,21 @@ } } }; - const _hoisted_1$s = { class: "item" }; - const _hoisted_2$s = { class: "tit" }; - const _hoisted_3$i = ["checked"]; - function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [ - vue.createElementVNode("div", _hoisted_2$s, vue.toDisplayString($props.sort) + ". 消息通知仅显示未读", 1), + const _hoisted_1$v = { class: "item" }; + const _hoisted_2$v = { class: "tit" }; + const _hoisted_3$l = ["checked"]; + function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [ + vue.createElementVNode("div", _hoisted_2$v, vue.toDisplayString($props.sort) + ". 消息通知仅显示未读", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$i) + }, null, 40, _hoisted_3$l) ]); } - const MenuShowUnread = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$x]]); - const _sfc_main$w = { + const MenuShowUnread = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$A]]); + const _sfc_main$z = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -1440,21 +1440,21 @@ } } }; - const _hoisted_1$r = { class: "item" }; - const _hoisted_2$r = { class: "tit" }; - const _hoisted_3$h = ["checked"]; - function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [ - vue.createElementVNode("div", _hoisted_2$r, vue.toDisplayString($props.sort) + ". 是否屏蔽模糊文字", 1), + const _hoisted_1$u = { class: "item" }; + const _hoisted_2$u = { class: "tit" }; + const _hoisted_3$k = ["checked"]; + function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [ + vue.createElementVNode("div", _hoisted_2$u, vue.toDisplayString($props.sort) + ". 是否屏蔽模糊文字", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$h) + }, null, 40, _hoisted_3$k) ]); } - const MenuFilterText = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$w]]); - const _sfc_main$v = { + const MenuFilterText = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z]]); + const _sfc_main$y = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -1471,21 +1471,21 @@ } } }; - const _hoisted_1$q = { class: "item" }; - const _hoisted_2$q = { class: "tit" }; - const _hoisted_3$g = ["checked"]; - function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [ - vue.createElementVNode("div", _hoisted_2$q, vue.toDisplayString($props.sort) + ". 只看自己签名尾巴", 1), + const _hoisted_1$t = { class: "item" }; + const _hoisted_2$t = { class: "tit" }; + const _hoisted_3$j = ["checked"]; + function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$t, [ + vue.createElementVNode("div", _hoisted_2$t, vue.toDisplayString($props.sort) + ". 只看自己签名尾巴", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$g) + }, null, 40, _hoisted_3$j) ]); } - const MenuLookmeSign = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$v]]); - const _sfc_main$u = { + const MenuLookmeSign = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y]]); + const _sfc_main$x = { props: ["modelValue", "sort"], emits: ["update:modelValue"], methods: { @@ -1532,21 +1532,21 @@ } } }; - const _hoisted_1$p = { class: "item" }; - const _hoisted_2$p = { class: "tit" }; - const _hoisted_3$f = ["checked"]; - function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [ - vue.createElementVNode("div", _hoisted_2$p, vue.toDisplayString($props.sort) + ". 开启左侧快速访问", 1), + const _hoisted_1$s = { class: "item" }; + const _hoisted_2$s = { class: "tit" }; + const _hoisted_3$i = ["checked"]; + function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [ + vue.createElementVNode("div", _hoisted_2$s, vue.toDisplayString($props.sort) + ". 开启左侧快速访问", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$f) + }, null, 40, _hoisted_3$i) ]); } - const MenuQuickAccess = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$u]]); - const _sfc_main$t = { + const MenuQuickAccess = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$x]]); + const _sfc_main$w = { props: ["modelValue", "sort"], emits: ["update:modelValue"], data() { @@ -1635,12 +1635,12 @@ this.observer && this.observer.disconnect(); } }; - const _hoisted_1$o = { class: "item" }; - const _hoisted_2$o = { class: "tit" }; - const _hoisted_3$e = ["value"]; - function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [ - vue.createElementVNode("div", _hoisted_2$o, [ + const _hoisted_1$r = { class: "item" }; + const _hoisted_2$r = { class: "tit" }; + const _hoisted_3$h = ["value"]; + function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [ + vue.createElementVNode("div", _hoisted_2$r, [ vue.createTextVNode(vue.toDisplayString($props.sort) + ". 切换论坛表情风格 ", 1), vue.withDirectives(vue.createElementVNode("select", { "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.value2 = $event) @@ -1649,7 +1649,7 @@ return vue.openBlock(), vue.createElementBlock("option", { value: item.value, key: item.value - }, vue.toDisplayString(item.label), 9, _hoisted_3$e); + }, vue.toDisplayString(item.label), 9, _hoisted_3$h); }), 128)) ], 512), [ [vue.vModelSelect, $options.value2] @@ -1664,26 +1664,26 @@ ]) ]); } - const MenureplaceEmojiStyle = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t], ["__scopeId", "data-v-d780d688"]]); - const _sfc_main$s = { + const MenureplaceEmojiStyle = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$w], ["__scopeId", "data-v-d780d688"]]); + const _sfc_main$v = { props: ["modelValue", "sort"], emits: ["update:modelValue"] }; - const _hoisted_1$n = { class: "item" }; - const _hoisted_2$n = { class: "tit" }; - const _hoisted_3$d = ["checked"]; - function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [ - vue.createElementVNode("div", _hoisted_2$n, vue.toDisplayString($props.sort) + ". 快速打开 Shared(需提前解锁 Shared)", 1), + const _hoisted_1$q = { class: "item" }; + const _hoisted_2$q = { class: "tit" }; + const _hoisted_3$g = ["checked"]; + function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [ + vue.createElementVNode("div", _hoisted_2$q, vue.toDisplayString($props.sort) + ". 快速打开 Shared(需提前解锁 Shared)", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$d) + }, null, 40, _hoisted_3$g) ]); } - const MenuShowAI = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s]]); - const _sfc_main$r = { + const MenuShowAI = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$v]]); + const _sfc_main$u = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -1725,21 +1725,21 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$m = { class: "item" }; - const _hoisted_2$m = { class: "tit" }; - const _hoisted_3$c = ["checked"]; - function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [ - vue.createElementVNode("div", _hoisted_2$m, vue.toDisplayString($props.sort) + ". 编辑器切换 ja 字体", 1), + const _hoisted_1$p = { class: "item" }; + const _hoisted_2$p = { class: "tit" }; + const _hoisted_3$f = ["checked"]; + function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [ + vue.createElementVNode("div", _hoisted_2$p, vue.toDisplayString($props.sort) + ". 编辑器切换 ja 字体", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$c) + }, null, 40, _hoisted_3$f) ]); } - const MenuEditorJa = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]); - const _sfc_main$q = { + const MenuEditorJa = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$u]]); + const _sfc_main$t = { props: { value: { type: Boolean, @@ -1783,11 +1783,11 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$l = { class: "item" }; - const _hoisted_2$l = { class: "tit" }; - function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [ - vue.createElementVNode("div", _hoisted_2$l, vue.toDisplayString($props.sort) + ". 首页新增按创建时间排序", 1), + const _hoisted_1$o = { class: "item" }; + const _hoisted_2$o = { class: "tit" }; + function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [ + vue.createElementVNode("div", _hoisted_2$o, vue.toDisplayString($props.sort) + ". 首页新增按创建时间排序", 1), vue.withDirectives(vue.createElementVNode("input", { type: "checkbox", "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.localChecked = $event), @@ -1797,8 +1797,8 @@ ${$(".d-editor-input").val()} ]) ]); } - const MenuCreatedOrder = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]); - const _sfc_main$p = { + const MenuCreatedOrder = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t]]); + const _sfc_main$s = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -1813,156 +1813,164 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$k = { class: "item" }; - const _hoisted_2$k = { class: "tit" }; - const _hoisted_3$b = ["checked"]; - function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [ - vue.createElementVNode("div", _hoisted_2$k, vue.toDisplayString($props.sort) + ". 开启列表页导航栏浮动", 1), + const _hoisted_1$n = { class: "item" }; + const _hoisted_2$n = { class: "tit" }; + const _hoisted_3$e = ["checked"]; + function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [ + vue.createElementVNode("div", _hoisted_2$n, vue.toDisplayString($props.sort) + ". 开启列表页导航栏浮动", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$b) + }, null, 40, _hoisted_3$e) ]); } - const MenuStickyNav = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p]]); - const _sfc_main$o = { - props: { - value: { - type: Object, - default: { - value1: false, - cate: "搞七捻三", - days: "5" - } - }, - sort: { - type: Number, - required: true - } - }, - data() { - return { - localChecked: this.value - }; - }, - watch: { - value(newValue) { - this.localChecked = newValue; - } - }, + const MenuStickyNav = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s]]); + const _sfc_main$r = { + props: ["modelValue", "sort"], + emits: ["update:modelValue"], methods: { - handleChange() { - this.$emit("update:value", this.localChecked); + messageToast(message) { + const messageElement = $(`
`); + $("#messageToast").append(messageElement); + setTimeout(() => { + messageElement.remove(); + }, 3e3); }, - // 过滤时间格式 - convertToTimestamp(dateStr) { - const cleanedDateStr = dateStr.replace(/\s+/g, ""); - const datePattern = /(\d{4})年(\d{1,2})月(\d{1,2})日(\d{2}):(\d{2})/; - const dateMatch = cleanedDateStr.match(datePattern); - if (dateMatch) { - const year = parseInt(dateMatch[1], 10); - const month = parseInt(dateMatch[2], 10) - 1; - const day = parseInt(dateMatch[3], 10); - const hours = parseInt(dateMatch[4], 10); - const minutes = parseInt(dateMatch[5], 10); - const date = new Date(year, month, day, hours, minutes); - return date.getTime(); + async init() { + const id = $(".post-stream .topic-post:last-child").find("article").attr("data-topic-id"); + let currentId = parseInt(id) + 1; + const maxAttempts = 10; + const checkPageExists = async (idToCheck) => { + const newUrl = `/t/topic/${idToCheck}`; + try { + const response = await fetch(newUrl); + if (response.ok) { + this.messageToast("正在跳转下一个帖子!"); + window.location.href = newUrl; + return true; + } else { + return false; + } + } catch (error) { + console.error("请求出错:", error); + this.messageToast("请求出错,请稍后再试。"); + return false; + } + }; + for (let attempts = 0; attempts < maxAttempts; attempts++) { + const exists = await checkPageExists(currentId); + if (exists) { + break; + } + currentId++; } - return null; - }, - // 屏蔽指定分类、指定时间 - GetTimestamp() { - if (this.localChecked.cate == "") { - $(".topic-list .age").each((index, element) => { - const str = $(element).attr("title"); - const match = str.match(/创建日期:([\s\S]*?)最新:/); - if (match && match[1]) { - const creationDate = match[1].trim(); - const timestamp = this.convertToTimestamp(creationDate); - const days = Number(this.localChecked.days) * 864e5; - if (Date.now() - timestamp > days) { - $(element).parents("tr.topic-list-item").remove(); - } + if (currentId === parseInt(id) + 1 + maxAttempts) { + this.messageToast("已是最新帖子!"); + } + } + }, + created() { + if (this.modelValue) { + let lastKeyTime = 0; + const doubleClickTime = 300; + document.addEventListener("keydown", (event) => { + if (event.key === "ArrowRight") { + const currentTime = Date.now(); + if (currentTime - lastKeyTime <= doubleClickTime) { + this.init(); } - }); - } else { - const cateArray = this.localChecked.cate.split(",").map((item) => item.trim()); - $(".badge-category__wrapper .badge-category__name").each((index, element) => { - let htmlContent = $(element).html(); - htmlContent = htmlContent.replace(/,\s*Lv[1-3]/g, ""); - if (cateArray.includes(htmlContent.trim())) { - $(element).parents("tr.topic-list-item").find(".age").each((index2, element2) => { - const str = $(element2).attr("title"); - const match = str.match(/创建日期:([\s\S]*?)最新:/); - if (match && match[1]) { - const creationDate = match[1].trim(); - const timestamp = this.convertToTimestamp(creationDate); - const days = Number(this.localChecked.days) * 864e5; - if (Date.now() - timestamp > days) { - $(element2).parents("tr.topic-list-item").remove(); - } + lastKeyTime = currentTime; + } + }); + } + } + }; + const _hoisted_1$m = { class: "item" }; + const _hoisted_2$m = { class: "tit" }; + const _hoisted_3$d = /* @__PURE__ */ vue.createElementVNode("kbd", null, "→", -1); + const _hoisted_4$8 = ["checked"]; + function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [ + vue.createElementVNode("div", _hoisted_2$m, [ + vue.createTextVNode(vue.toDisplayString($props.sort) + ". 开启快速打开下一个帖子(快捷键:双击 ", 1), + _hoisted_3$d, + vue.createTextVNode(")") + ]), + vue.createElementVNode("input", { + type: "checkbox", + checked: $props.modelValue, + onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) + }, null, 40, _hoisted_4$8) + ]); + } + const MenuNextPosts = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]); + const _sfc_main$q = { + props: ["modelValue", "sort"], + emits: ["update:modelValue"], + created() { + if (this.modelValue) { + $("head").append(``); + } + } + }; + const _hoisted_1$l = { class: "item" }; + const _hoisted_2$l = { class: "tit" }; + const _hoisted_3$c = ["checked"]; + function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [ + vue.createElementVNode("div", _hoisted_2$l, vue.toDisplayString($props.sort) + ". 禁用选中文字分享功能", 1), + vue.createElementVNode("input", { + type: "checkbox", + checked: $props.modelValue, + onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) + }, null, 40, _hoisted_3$c) + ]); + } + const MenuSelectedShare = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]); + const _sfc_main$p = { + props: ["modelValue", "sort"], + emits: ["update:modelValue"], + created() { + if (this.modelValue) { + setInterval(() => { + $(".cooked iframe, .cooked video").each(function() { + const $element = $(this); + let src = $element.attr("src"); + if (src) { + if (!src.includes("autoplay=false")) { + if (src.includes("autoplay=")) { + src = src.replace(/autoplay=[^&]*/, "autoplay=false"); + } else { + const separator = src.includes("?") ? "&" : "?"; + src += `${separator}autoplay=false`; } - }); + $element.attr("src", src); + } } }); - } - } - }, - created() { - if (this.localChecked.value1) { - let pollinglength1 = 0; - setInterval(() => { - if (pollinglength1 != $(".topic-list-body tr").length) { - pollinglength1 = $(".topic-list-body tr").length; - this.GetTimestamp(); - } }, 1e3); } } }; - const _withScopeId$5 = (n) => (vue.pushScopeId("data-v-5861dcba"), n = n(), vue.popScopeId(), n); - const _hoisted_1$j = { - class: "item", - style: { "border": "none" } - }; - const _hoisted_2$j = { class: "tit" }; - const _hoisted_3$a = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ vue.createElementVNode("p", null, "针对分类:留空对全部分类生效,多个分类用英文逗号【,】进行分隔", -1)); - function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ - vue.createElementVNode("div", _hoisted_1$j, [ - vue.createElementVNode("div", _hoisted_2$j, [ - vue.createTextVNode(vue.toDisplayString($props.sort) + ". 屏蔽指定天数前的帖子 ", 1), - vue.withDirectives(vue.createElementVNode("input", { - type: "text", - "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.localChecked.days = $event), - placeholder: "默认天数 5" - }, null, 512), [ - [vue.vModelText, $data.localChecked.days] - ]) - ]), - vue.withDirectives(vue.createElementVNode("input", { - type: "checkbox", - "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.localChecked.value1 = $event), - onChange: _cache[2] || (_cache[2] = (...args) => $options.handleChange && $options.handleChange(...args)) - }, null, 544), [ - [vue.vModelCheckbox, $data.localChecked.value1] - ]) - ]), - vue.createElementVNode("div", null, [ - _hoisted_3$a, - vue.withDirectives(vue.createElementVNode("textarea", { - "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.localChecked.cate = $event), - placeholder: "搞七捻三" - }, null, 512), [ - [vue.vModelText, $data.localChecked.cate] - ]) - ]) - ], 64); + const _hoisted_1$k = { class: "item" }; + const _hoisted_2$k = { class: "tit" }; + const _hoisted_3$b = ["checked"]; + function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [ + vue.createElementVNode("div", _hoisted_2$k, vue.toDisplayString($props.sort) + ". 禁用视频自动播放", 1), + vue.createElementVNode("input", { + type: "checkbox", + checked: $props.modelValue, + onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) + }, null, 40, _hoisted_3$b) + ]); } - const MenuShieldPosts = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-5861dcba"]]); - const _sfc_main$n = { + const MenuDisableAutoplay = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p]]); + const _sfc_main$o = { props: { value: { type: String, @@ -1994,12 +2002,12 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$i = { class: "item" }; - const _hoisted_2$i = { class: "tit" }; - function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) { + const _hoisted_1$j = { class: "item" }; + const _hoisted_2$j = { class: "tit" }; + function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ - vue.createElementVNode("div", _hoisted_1$i, [ - vue.createElementVNode("div", _hoisted_2$i, vue.toDisplayString($props.sort) + ". 自定义 CSS(支持 import 引入第三方样式文件) ", 1) + vue.createElementVNode("div", _hoisted_1$j, [ + vue.createElementVNode("div", _hoisted_2$j, vue.toDisplayString($props.sort) + ". 自定义 CSS(支持 import 引入第三方样式文件) ", 1) ]), vue.withDirectives(vue.createElementVNode("textarea", { "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.textarea = $event), @@ -2010,8 +2018,8 @@ ${$(".d-editor-input").val()} ]) ], 64); } - const MenuOtherCss = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-e33f1de9"]]); - const _sfc_main$m = { + const MenuOtherCss = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-e33f1de9"]]); + const _sfc_main$n = { props: { value: { type: String, @@ -2046,12 +2054,12 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$h = { class: "item" }; - const _hoisted_2$h = { class: "tit" }; - function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) { + const _hoisted_1$i = { class: "item" }; + const _hoisted_2$i = { class: "tit" }; + function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ - vue.createElementVNode("div", _hoisted_1$h, [ - vue.createElementVNode("div", _hoisted_2$h, vue.toDisplayString($props.sort) + ". 自定义论坛 logo", 1) + vue.createElementVNode("div", _hoisted_1$i, [ + vue.createElementVNode("div", _hoisted_2$i, vue.toDisplayString($props.sort) + ". 自定义论坛 logo", 1) ]), vue.withDirectives(vue.createElementVNode("input", { type: "text", @@ -2063,8 +2071,8 @@ ${$(".d-editor-input").val()} ]) ], 64); } - const MenuLogoUrl = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-cb743585"]]); - const _sfc_main$l = { + const MenuLogoUrl = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-cb743585"]]); + const _sfc_main$m = { props: { value: { type: String, @@ -2144,12 +2152,12 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$g = { class: "item" }; - const _hoisted_2$g = { class: "tit" }; - function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) { + const _hoisted_1$h = { class: "item" }; + const _hoisted_2$h = { class: "tit" }; + function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ - vue.createElementVNode("div", _hoisted_1$g, [ - vue.createElementVNode("div", _hoisted_2$g, vue.toDisplayString($props.sort) + ". 自定义快捷回复(换行分隔)", 1) + vue.createElementVNode("div", _hoisted_1$h, [ + vue.createElementVNode("div", _hoisted_2$h, vue.toDisplayString($props.sort) + ". 自定义快捷回复(换行分隔)", 1) ]), vue.withDirectives(vue.createElementVNode("textarea", { "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.textarea = $event), @@ -2160,8 +2168,8 @@ ${$(".d-editor-input").val()} ]) ], 64); } - const MenuCreatereply = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-86b330f1"]]); - const _sfc_main$k = { + const MenuCreatereply = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-86b330f1"]]); + const _sfc_main$l = { props: { value: { type: String, @@ -2216,12 +2224,12 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$f = { class: "item" }; - const _hoisted_2$f = { class: "tit" }; - function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) { + const _hoisted_1$g = { class: "item" }; + const _hoisted_2$g = { class: "tit" }; + function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ - vue.createElementVNode("div", _hoisted_1$f, [ - vue.createElementVNode("div", _hoisted_2$f, vue.toDisplayString($props.sort) + ". 屏蔽指定用户(使用英文,分隔)", 1) + vue.createElementVNode("div", _hoisted_1$g, [ + vue.createElementVNode("div", _hoisted_2$g, vue.toDisplayString($props.sort) + ". 屏蔽指定用户(使用英文,分隔)", 1) ]), vue.withDirectives(vue.createElementVNode("textarea", { "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.textarea = $event), @@ -2232,8 +2240,8 @@ ${$(".d-editor-input").val()} ]) ], 64); } - const MenuBlockuserlist = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-f84417d4"]]); - const _sfc_main$j = { + const MenuBlockuserlist = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-f84417d4"]]); + const _sfc_main$k = { props: { value: { type: String, @@ -2288,12 +2296,12 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$e = { class: "item" }; - const _hoisted_2$e = { class: "tit" }; - function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) { + const _hoisted_1$f = { class: "item" }; + const _hoisted_2$f = { class: "tit" }; + function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ - vue.createElementVNode("div", _hoisted_1$e, [ - vue.createElementVNode("div", _hoisted_2$e, vue.toDisplayString($props.sort) + ". 关键词屏蔽功能(使用英文,分隔)屏蔽包含关键字的话题和回复 ", 1) + vue.createElementVNode("div", _hoisted_1$f, [ + vue.createElementVNode("div", _hoisted_2$f, vue.toDisplayString($props.sort) + ". 关键词屏蔽功能(使用英文,分隔)屏蔽包含关键字的话题和回复 ", 1) ]), vue.withDirectives(vue.createElementVNode("textarea", { "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.textarea = $event), @@ -2303,7 +2311,142 @@ ${$(".d-editor-input").val()} ]) ], 64); } - const MenuBlockKeyword = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-c99e7560"]]); + const MenuBlockKeyword = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-c99e7560"]]); + const _sfc_main$j = { + props: { + value: { + type: Object, + default: { + value1: false, + cate: "搞七捻三", + days: "5" + } + }, + sort: { + type: Number, + required: true + } + }, + data() { + return { + localChecked: this.value + }; + }, + watch: { + value(newValue) { + this.localChecked = newValue; + } + }, + methods: { + handleChange() { + this.$emit("update:value", this.localChecked); + }, + // 过滤时间格式 + convertToTimestamp(dateStr) { + const cleanedDateStr = dateStr.replace(/\s+/g, ""); + const datePattern = /(\d{4})年(\d{1,2})月(\d{1,2})日(\d{2}):(\d{2})/; + const dateMatch = cleanedDateStr.match(datePattern); + if (dateMatch) { + const year = parseInt(dateMatch[1], 10); + const month = parseInt(dateMatch[2], 10) - 1; + const day = parseInt(dateMatch[3], 10); + const hours = parseInt(dateMatch[4], 10); + const minutes = parseInt(dateMatch[5], 10); + const date = new Date(year, month, day, hours, minutes); + return date.getTime(); + } + return null; + }, + // 屏蔽指定分类、指定时间 + GetTimestamp() { + if (this.localChecked.cate == "") { + $(".topic-list .age").each((index, element) => { + const str = $(element).attr("title"); + const match = str.match(/创建日期:([\s\S]*?)最新:/); + if (match && match[1]) { + const creationDate = match[1].trim(); + const timestamp = this.convertToTimestamp(creationDate); + const days = Number(this.localChecked.days) * 864e5; + if (Date.now() - timestamp > days) { + $(element).parents("tr.topic-list-item").remove(); + } + } + }); + } else { + const cateArray = this.localChecked.cate.split(",").map((item) => item.trim()); + $(".badge-category__wrapper .badge-category__name").each((index, element) => { + let htmlContent = $(element).html(); + htmlContent = htmlContent.replace(/,\s*Lv[1-3]/g, ""); + if (cateArray.includes(htmlContent.trim())) { + $(element).parents("tr.topic-list-item").find(".age").each((index2, element2) => { + const str = $(element2).attr("title"); + const match = str.match(/创建日期:([\s\S]*?)最新:/); + if (match && match[1]) { + const creationDate = match[1].trim(); + const timestamp = this.convertToTimestamp(creationDate); + const days = Number(this.localChecked.days) * 864e5; + if (Date.now() - timestamp > days) { + $(element2).parents("tr.topic-list-item").remove(); + } + } + }); + } + }); + } + } + }, + created() { + if (this.localChecked.value1) { + let pollinglength1 = 0; + setInterval(() => { + if (pollinglength1 != $(".topic-list-body tr").length) { + pollinglength1 = $(".topic-list-body tr").length; + this.GetTimestamp(); + } + }, 1e3); + } + } + }; + const _withScopeId$5 = (n) => (vue.pushScopeId("data-v-5861dcba"), n = n(), vue.popScopeId(), n); + const _hoisted_1$e = { + class: "item", + style: { "border": "none" } + }; + const _hoisted_2$e = { class: "tit" }; + const _hoisted_3$a = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ vue.createElementVNode("p", null, "针对分类:留空对全部分类生效,多个分类用英文逗号【,】进行分隔", -1)); + function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ + vue.createElementVNode("div", _hoisted_1$e, [ + vue.createElementVNode("div", _hoisted_2$e, [ + vue.createTextVNode(vue.toDisplayString($props.sort) + ". 屏蔽指定天数前的帖子 ", 1), + vue.withDirectives(vue.createElementVNode("input", { + type: "text", + "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.localChecked.days = $event), + placeholder: "默认天数 5" + }, null, 512), [ + [vue.vModelText, $data.localChecked.days] + ]) + ]), + vue.withDirectives(vue.createElementVNode("input", { + type: "checkbox", + "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.localChecked.value1 = $event), + onChange: _cache[2] || (_cache[2] = (...args) => $options.handleChange && $options.handleChange(...args)) + }, null, 544), [ + [vue.vModelCheckbox, $data.localChecked.value1] + ]) + ]), + vue.createElementVNode("div", null, [ + _hoisted_3$a, + vue.withDirectives(vue.createElementVNode("textarea", { + "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.localChecked.cate = $event), + placeholder: "搞七捻三" + }, null, 512), [ + [vue.vModelText, $data.localChecked.cate] + ]) + ]) + ], 64); + } + const MenuShieldPosts = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-5861dcba"]]); const _sfc_main$i = { props: { value: { @@ -3890,7 +4033,10 @@ ${topic_contentdata}`; SyncBackup, MenuShieldPosts, Themes, - Signature + Signature, + MenuNextPosts, + MenuSelectedShare, + MenuDisableAutoplay }, data() { return { @@ -3941,6 +4087,9 @@ ${topic_contentdata}`; cate: "搞七捻三", days: "5" }, + checked22: true, + checked23: false, + checked24: true, usertags: [], gptdata: { value1: false, @@ -4161,6 +4310,9 @@ ${topic_contentdata}`; const _component_MenuShowAI = vue.resolveComponent("MenuShowAI"); const _component_MenuEditorJa = vue.resolveComponent("MenuEditorJa"); const _component_MenuStickyNav = vue.resolveComponent("MenuStickyNav"); + const _component_MenuNextPosts = vue.resolveComponent("MenuNextPosts"); + const _component_MenuSelectedShare = vue.resolveComponent("MenuSelectedShare"); + const _component_MenuDisableAutoplay = vue.resolveComponent("MenuDisableAutoplay"); const _component_MenuLogoUrl = vue.resolveComponent("MenuLogoUrl"); const _component_MenuCreatereply = vue.resolveComponent("MenuCreatereply"); const _component_MenuBlockKeyword = vue.resolveComponent("MenuBlockKeyword"); @@ -4343,62 +4495,77 @@ ${topic_contentdata}`; sort: 20, modelValue: $data.settingData.checked20, "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => $data.settingData.checked20 = $event) + }, null, 8, ["modelValue"]), + vue.createVNode(_component_MenuNextPosts, { + sort: 21, + modelValue: $data.settingData.checked22, + "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => $data.settingData.checked22 = $event) + }, null, 8, ["modelValue"]), + vue.createVNode(_component_MenuSelectedShare, { + sort: 22, + modelValue: $data.settingData.checked23, + "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => $data.settingData.checked23 = $event) + }, null, 8, ["modelValue"]), + vue.createVNode(_component_MenuDisableAutoplay, { + sort: 23, + modelValue: $data.settingData.checked24, + "onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => $data.settingData.checked24 = $event) }, null, 8, ["modelValue"]) ]), vue.createElementVNode("div", _hoisted_15, [ vue.createVNode(_component_MenuLogoUrl, { sort: 1, value: $data.settingData.logourl, - "onUpdate:value": _cache[23] || (_cache[23] = ($event) => $data.settingData.logourl = $event) + "onUpdate:value": _cache[26] || (_cache[26] = ($event) => $data.settingData.logourl = $event) }, null, 8, ["value"]), vue.createVNode(_component_MenuCreatereply, { sort: 2, value: $data.settingData.QuickReply, - "onUpdate:value": _cache[24] || (_cache[24] = ($event) => $data.settingData.QuickReply = $event) + "onUpdate:value": _cache[27] || (_cache[27] = ($event) => $data.settingData.QuickReply = $event) }, null, 8, ["value"]), vue.createVNode(_component_MenuBlockKeyword, { sort: 3, value: $data.settingData.blockkeywrod, - "onUpdate:value": _cache[25] || (_cache[25] = ($event) => $data.settingData.blockkeywrod = $event) + "onUpdate:value": _cache[28] || (_cache[28] = ($event) => $data.settingData.blockkeywrod = $event) }, null, 8, ["value"]), vue.createVNode(_component_MenuBlockuserlist, { sort: 4, value: $data.settingData.blockList, - "onUpdate:value": _cache[26] || (_cache[26] = ($event) => $data.settingData.blockList = $event) + "onUpdate:value": _cache[29] || (_cache[29] = ($event) => $data.settingData.blockList = $event) }, null, 8, ["value"]), vue.createVNode(_component_MenuShieldPosts, { sort: 5, value: $data.settingData.checked21, - "onUpdate:value": _cache[27] || (_cache[27] = ($event) => $data.settingData.checked21 = $event) + "onUpdate:value": _cache[30] || (_cache[30] = ($event) => $data.settingData.checked21 = $event) }, null, 8, ["value"]), vue.createVNode(_component_MenuOtherCss, { sort: 6, value: $data.settingData.othercss, - "onUpdate:value": _cache[28] || (_cache[28] = ($event) => $data.settingData.othercss = $event) + "onUpdate:value": _cache[31] || (_cache[31] = ($event) => $data.settingData.othercss = $event) }, null, 8, ["value"]) ]), vue.createElementVNode("div", _hoisted_16, [ vue.createVNode(_component_UserTags, { value: $data.settingData.usertags, - "onUpdate:value": _cache[29] || (_cache[29] = ($event) => $data.settingData.usertags = $event) + "onUpdate:value": _cache[32] || (_cache[32] = ($event) => $data.settingData.usertags = $event) }, null, 8, ["value"]) ]), vue.createElementVNode("div", _hoisted_17, [ vue.createVNode(_component_GPTconfig, { value: $data.settingData.gptdata, - "onUpdate:value": _cache[30] || (_cache[30] = ($event) => $data.settingData.gptdata = $event) + "onUpdate:value": _cache[33] || (_cache[33] = ($event) => $data.settingData.gptdata = $event) }, null, 8, ["value"]) ]), vue.createElementVNode("div", _hoisted_18, [ vue.createVNode(_component_Themes, { modelValue: $data.settingData.themes, - "onUpdate:modelValue": _cache[31] || (_cache[31] = ($event) => $data.settingData.themes = $event) + "onUpdate:modelValue": _cache[34] || (_cache[34] = ($event) => $data.settingData.themes = $event) }, null, 8, ["modelValue"]) ]), vue.createElementVNode("div", _hoisted_19, [ vue.createVNode(_component_SyncBackup, { value: $data.settingData.syncbackup, - "onUpdate:value": _cache[32] || (_cache[32] = ($event) => $data.settingData.syncbackup = $event) + "onUpdate:value": _cache[35] || (_cache[35] = ($event) => $data.settingData.syncbackup = $event) }, null, 8, ["value"]) ]) ]) @@ -4406,15 +4573,15 @@ ${topic_contentdata}`; vue.createElementVNode("div", _hoisted_20, [ vue.createElementVNode("button", { class: "save", - onClick: _cache[33] || (_cache[33] = (...args) => $options.save && $options.save(...args)) + onClick: _cache[36] || (_cache[36] = (...args) => $options.save && $options.save(...args)) }, "保存"), vue.createElementVNode("button", { class: "saveload", - onClick: _cache[34] || (_cache[34] = (...args) => $options.saveload && $options.saveload(...args)) + onClick: _cache[37] || (_cache[37] = (...args) => $options.saveload && $options.saveload(...args)) }, "保存并刷新"), vue.createElementVNode("button", { class: "floorlottery", - onClick: _cache[35] || (_cache[35] = (...args) => $options.openFloorlottery && $options.openFloorlottery(...args)) + onClick: _cache[38] || (_cache[38] = (...args) => $options.openFloorlottery && $options.openFloorlottery(...args)) }, "楼层抽奖"), _hoisted_21 ]) @@ -4424,27 +4591,27 @@ ${topic_contentdata}`; vue.createElementVNode("div", _hoisted_24, [ vue.withDirectives(vue.createElementVNode("input", { type: "text", - "onUpdate:modelValue": _cache[36] || (_cache[36] = ($event) => $data.floorlotteryval1 = $event), + "onUpdate:modelValue": _cache[39] || (_cache[39] = ($event) => $data.floorlotteryval1 = $event), placeholder: "请输入总数" }, null, 512), [ [vue.vModelText, $data.floorlotteryval1] ]), vue.withDirectives(vue.createElementVNode("input", { type: "text", - "onUpdate:modelValue": _cache[37] || (_cache[37] = ($event) => $data.floorlotteryval2 = $event), + "onUpdate:modelValue": _cache[40] || (_cache[40] = ($event) => $data.floorlotteryval2 = $event), placeholder: "请输入抽取的数量" }, null, 512), [ [vue.vModelText, $data.floorlotteryval2] ]), vue.createElementVNode("button", { class: "btn save", - onClick: _cache[38] || (_cache[38] = (...args) => $options.drawRandomNumbers && $options.drawRandomNumbers(...args)) + onClick: _cache[41] || (_cache[41] = (...args) => $options.drawRandomNumbers && $options.drawRandomNumbers(...args)) }, "开始抽奖"), vue.createElementVNode("button", { class: "btn", style: { "background": "#979797" }, plain: "", - onClick: _cache[39] || (_cache[39] = (...args) => $options.closelotter && $options.closelotter(...args)) + onClick: _cache[42] || (_cache[42] = (...args) => $options.closelotter && $options.closelotter(...args)) }, " 关闭弹窗 "), _hoisted_25, $data.floorlotterloading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26, "正在抽奖...")) : vue.createCommentVNode("", true), diff --git a/linuxdo-scripts.user.js b/linuxdo-scripts.user.js index 8f3702c..5415f24 100644 --- a/linuxdo-scripts.user.js +++ b/linuxdo-scripts.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name linuxdo 增强插件 // @namespace https://github.com/dlzmoe/linuxdo-scripts -// @version 0.3.32 +// @version 0.3.33 // @author dlzmoe // @description linux.do 增强插件,功能持续更新,欢迎提出新想法! // @license Apache-2.0 @@ -15,13 +15,13 @@ // @grant GM_xmlhttpRequest // ==/UserScript== -(t=>{if(typeof GM_addStyle=="function"){GM_addStyle(t);return}const i=document.createElement("style");i.textContent=t,document.head.append(i)})(' input[type=text][data-v-2be3e9ac]{width:100px!important;outline:none;height:24px;border:1px solid #b6b6b6;border-radius:4px;margin-left:10px;padding:0 10px;box-sizing:border-box}.emojiPicker{top:0;left:100%;position:absolute;display:grid;grid-template-columns:repeat(12,1fr);gap:10px;height:100%;overflow:auto;background-color:#000c;padding:10px;border-radius:5px;z-index:9}.emojiPicker img{cursor:pointer;width:30px;height:30px}.sidebar-section-header-caret.right{transform:rotate(-90deg)}.item select[data-v-d780d688]{height:28px;border:1px solid #b6b6b6;border-radius:4px;width:180px;margin-left:10px;cursor:pointer}input[type=text][data-v-5861dcba]{width:100px!important;outline:none;height:24px;border:1px solid #b6b6b6;border-radius:4px;margin-left:10px;padding:0 10px;box-sizing:border-box}.item[data-v-e33f1de9]{border:none!important}.item a[data-v-e33f1de9]:hover{text-decoration:underline}.item[data-v-cb743585],.item[data-v-86b330f1],.item[data-v-f84417d4],.item[data-v-c99e7560]{border:none!important}.linxudoscripts-tag{background:#29a6a9;color:#fff;font-size:14px!important;padding:0 10px;height:26px;text-align:center;display:inline-flex!important;align-items:center;justify-content:center;border-radius:5px}.menu-table{width:100%}.menu-table td,.menu-table th{padding:10px;font-size:14px}.menu-table .span{cursor:pointer}.menu-table .span+.span{margin-left:10px}.item[data-v-178c15f8]{border:none}.item[data-v-b5335091]{display:block!important}p[data-v-b5335091]{margin:8px 0!important}ul[data-v-b5335091]{display:flex;flex-wrap:wrap;justify-content:space-between;list-style:none;padding:0}ul li[data-v-b5335091]{width:48%;margin-bottom:30px}input[type=radio][data-v-b5335091]{transform:scale(1.2)}.ls-flex[data-v-b5335091]{display:flex;align-content:center;margin-bottom:10px;cursor:pointer}.ls-flex input[data-v-b5335091]{margin-right:10px}.ls-flex label[data-v-b5335091]{cursor:pointer;font-weight:300}.item[data-v-b6c08155]{border:none!important;padding:0!important;margin-top:15px}.item .tit[data-v-b6c08155]{white-space:nowrap;width:160px}.item input[data-v-b6c08155]{margin:0}.btnwrapper[data-v-b6c08155]{margin-top:20px}.post-stream.lookopwrapactive .topic-post{display:none!important}.post-stream.lookopwrapactive .topic-post.topic-owner{display:block!important}@keyframes breathAnimation-57dbaeb5{0%,to{transform:scale(1);box-shadow:0 0 5px #00000080}50%{transform:scale(1.1);box-shadow:0 0 10px #000000b3}}.breath-animation[data-v-57dbaeb5]{animation:breathAnimation-57dbaeb5 4s ease-in-out infinite}.minimized[data-v-57dbaeb5]{width:50px!important;height:50px!important;border-radius:50%!important;padding:0!important;overflow:hidden;cursor:pointer}#linuxDoLevelPopupContent[data-v-57dbaeb5]{line-height:1.6;position:fixed;bottom:20px;right:90px;width:250px;height:auto;background-color:var(--tertiary-low);padding:15px;z-index:10000;font-size:14px;border-radius:5px}#linuxDoUserSearch[data-v-57dbaeb5]{width:100%;margin-top:10px}.button[data-v-57dbaeb5]{margin-top:10px}.minimize-button[data-v-57dbaeb5]{position:absolute;top:5px;right:5px;z-index:10001;background:transparent;border:none;cursor:pointer;border-radius:50%;text-align:center;line-height:40px;width:40px;height:40px}.linuxdoscripts-aidialog{position:fixed;top:0;left:-100%;width:500px;height:100vh;background:#fff;box-shadow:1px 2px 5px #0000003d;z-index:999;padding-top:60px;transition:all .1s linear;opacity:0;visibility:hidden;overflow:hidden}.linuxdoscripts-aidialog.act{left:0;opacity:1;visibility:inherit;overflow:inherit}a[data-v-45c51ed7]:hover{text-decoration:underline}.item-foot[data-v-45c51ed7]{display:flex;flex-direction:column;align-items:flex-start;position:absolute;bottom:70px;left:22px;line-height:2}.item-foot img[data-v-45c51ed7]{width:auto!important;height:20px!important}.UsageTip{position:static;margin:0;font-size:14px;line-height:1.6;background:var(--d-sidebar-background);color:var(--primary-medium)}.UsageTip>div{margin:10px 0}.UsageTip button{padding:8px 10px;margin-bottom:10px;border:none;outline:none;border-radius:4px}.timeline-container .topic-timeline .timeline-scrollarea{max-width:100px!important}#linuxdoscripts{font-size:14px}#linuxdoscripts input[type=text]{width:100%;background:var(--d-input-bg-color)}#linuxdoscripts input[type=checkbox]{transform:scale(1.2)}#linuxdoscripts #menu_suspendedball{display:none}#linuxdoscripts img{vertical-align:bottom;max-width:100%;height:auto}#linuxdoscripts .close{position:absolute;right:10px;top:45%;cursor:pointer;font-size:34px;color:#999;transform:translateY(-50%) rotate(45deg)}#linuxdoscripts .setting-btn{z-index:999;position:fixed;bottom:20px;right:20px}#linuxdoscripts .setting-btn .el-button{margin:15px 0 0;width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--tertiary-low);font-size:14px;cursor:pointer;transition:all .1s linear;border:none}#linuxdoscripts .setting-btn .el-button svg{margin:0}#linuxdoscripts .setting-btn .el-button:hover{opacity:.9}#linuxdoscripts .hint{margin-top:5px;color:#d94f4f;font-size:14px}#linuxdoscripts dialog{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:700px;background:var(--header_background);color:var(--primary);box-shadow:#0000 0 0,#0000 0 0,#0000001a 0 20px 25px -5px,#0000001a 0 8px 10px -6px;border-radius:16px;padding:15px;z-index:99999;overflow-x:hidden;box-sizing:border-box;margin:0;border:none;outline:none}#linuxdoscripts dialog .menu-about{padding:5px 0;line-height:2}#linuxdoscripts dialog .menu-about .initialization{color:#999;border-bottom:1px dashed #999;cursor:pointer}#linuxdoscripts dialog .menu-about .initialization:hover{color:#333;border-color:#333}#linuxdoscripts dialog p{margin:0;font-size:14px}#linuxdoscripts .menu-header{padding:.5rem .5rem 1rem;border-bottom:1px solid #eee;position:relative}#linuxdoscripts .title{font-size:18px;font-weight:600;display:flex;align-items:center}#linuxdoscripts .title img{margin-left:10px}#linuxdoscripts button{outline:0;min-width:80px;height:32px;border:none;background:var(--tertiary);text-shadow:0 -1px 0 rgba(0,0,0,.12);box-shadow:0 2px #0000000b;border-radius:4px;padding:0 10px;box-sizing:border-box;transition:all .1s linear;color:var(--secondary)}#linuxdoscripts button+button{margin-left:8px}#linuxdoscripts button.saveload{background:#3d9b93}#linuxdoscripts button.detection{background:#810000}#linuxdoscripts button:hover{opacity:.9}#linuxdoscripts .menu-flex{display:flex;justify-content:space-between;align-items:flex-start}#linuxdoscripts .menu-nav{width:140px;display:flex;flex-direction:column;margin:0 20px 0 0;padding-top:15px}#linuxdoscripts .menu-nav li{border-radius:4px;height:32px;width:100%;margin-bottom:5px;box-sizing:border-box;padding:0 10px;display:inline-flex;align-items:center;justify-content:flex-start;font-size:14px;cursor:pointer;line-height:1}#linuxdoscripts .menu-nav li svg{width:16px;margin-right:5px}#linuxdoscripts .menu-nav li.act{background:var(--bbcode-highlight)}#linuxdoscripts .menu-body{flex:1;height:480px;overflow-y:auto;padding-right:10px}#linuxdoscripts .menu-body::-webkit-scrollbar{height:8px;width:8px}#linuxdoscripts .menu-body::-webkit-scrollbar-corner{background:none}#linuxdoscripts .menu-body::-webkit-scrollbar-thumb{background:#dee0e1;border-radius:8px}#linuxdoscripts .menu-body .menu-body-item{display:none}#linuxdoscripts .menu-body .menu-body-item.act{display:block}#linuxdoscripts .menu-footer{display:flex;margin-top:10px;padding-top:6px}#linuxdoscripts .import{margin-left:auto!important}#linuxdoscripts .import,#linuxdoscripts .export{background:#d1f0ff;color:#559095}#linuxdoscripts .floorlottery{background:#ffb003}#linuxdoscripts .menu-body-item{padding-bottom:30px}#linuxdoscripts .menu-body-item .item{border-bottom:1px solid rgba(0,0,0,.05);padding:15px 0;display:flex;align-items:center;justify-content:space-between}#linuxdoscripts .menu-body-item .item input[type=checkbox]{width:30px;height:16px;position:relative;background-color:#dcdfe6;box-shadow:#dfdfdf 0 0 inset;border-radius:20px;background-clip:content-box;display:inline-block;appearance:none;-webkit-appearance:none;-moz-appearance:none;-webkit-user-select:none;user-select:none;outline:none;padding:0}#linuxdoscripts .menu-body-item .item input[type=checkbox]:before{content:"";position:absolute;width:12px;height:12px;background-color:#fff;border-radius:50%;left:2px;top:0;bottom:0;margin:auto;transition:.3s}#linuxdoscripts .menu-body-item .item input[type=checkbox]:checked{background-color:var(--tertiary);transition:.6s}#linuxdoscripts .menu-body-item .item input[type=checkbox]:checked:before{left:14px;transition:.3s}#linuxdoscripts textarea{font-family:inherit;width:100%;min-height:100px!important;border:1px solid #999;outline:0;padding:5px;font-size:14px;margin:5px 0 0;resize:none;border-radius:0;color:var(--d-input-text-color);background:var(--d-input-bg-color)}#linuxdoscripts textarea:focus{border-color:var(--tertiary);outline:2px solid var(--tertiary);outline-offset:-2px}#linuxdoscripts #floorlotterloading img{width:50px;height:50px}#linuxdoscripts .floorlotterywrap{display:none;width:400px;height:300px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;z-index:999}#linuxdoscripts .floorlotterywrap{width:400px;height:300px}#linuxdoscripts .el-checkbox__inner{border:1px solid #979797}#linuxdoscripts label{margin:0}.linuxdoscripts-opacity{display:none;position:fixed;left:0;top:0;width:100vw;height:100vh;background:#00000080;z-index:9999}.linuxlevel.four{background:linear-gradient(to right,red,#00f);-webkit-background-clip:text;color:transparent}.topic-post{position:relative}.linuxfloor{display:flex;color:var(--tertiary);width:30px;height:30px;align-items:center;justify-content:center;border-radius:6px;font-size:16px;margin-left:10px}.signature-p{color:#279a36;font-size:14px;word-break:break-word}.topic-list .views{font-weight:400!important;white-space:nowrap!important}.createreply{display:flex;flex-direction:column;max-width:300px}.createreply button{margin-bottom:10px;justify-content:flex-start;text-align:left}.topicpreview-btn{padding:4px 12px!important;font-size:14px!important;opacity:0!important}.topic-list-item:hover .topicpreview-btn{opacity:1!important}.topicpreview{position:fixed;top:0;left:0;z-index:99999;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center;display:none}.topicpreview .topicpreview-container{padding:30px 0;border-radius:5px;width:100%;max-width:800px;overflow-y:auto;height:80vh;z-index:10;background:var(--header_background);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.topicpreview .topicpreview-container .topicpreview-title{font-size:22px;font-weight:600;padding:0 30px}.topicpreview .topicpreview-container .topicpreview-date{padding:0 30px;color:#666}.topicpreview .topicpreview-container .topicpreview-content>.item{display:flex;align-items:flex-start;padding:20px 30px}.topicpreview .topicpreview-container .topicpreview-content>.item .itemfloor{width:50px;text-align:left;font-size:16px;padding-top:15px;color:#25b4cf}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost{flex:1;background:var(--tertiary-low);padding:15px;border-radius:10px;font-size:15px;word-break:break-all}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost pre code{max-width:620px}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost img{max-width:100%;max-height:100%;height:auto}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemname{font-size:16px;color:#8f3a3a;display:flex;justify-content:space-between;align-items:center}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemname span{color:#9e9e9e;margin-left:20px}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemdate{color:#b9b9b9;font-size:16px;margin-left:auto}.topicpreview-opacity{position:absolute;top:0;left:0;width:100%;height:100%;opacity:1;background:#0009;z-index:9}.body-preview .sidebar-wrapper{display:none!important}body.body-preview #main-outlet-wrapper{display:block!important;padding-left:50px!important}.body-preview .d-header-wrap,.body-preview .menu_suspendedball{display:none!important}.post-activity{white-space:nowrap;display:inline-block;width:100%;text-align:left}.d-header img{height:var(--d-logo-height);width:auto;max-width:100%;object-fit:contain}.aicreated-btn,.aireplay-btn{outline:none;border:none;background:var(--tertiary-low);display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:14px;padding:4px 10px;border-radius:3px;margin-bottom:10px;margin-right:10px}.aicreated-btn{display:none}.gpt-summary-wrap{background:var(--tertiary-low);border-radius:5px;padding:10px;font-size:14px;margin:0 0 10px;line-height:1.6}.gpt-summary-wrap .airegenerate{display:none;margin-top:6px;outline:none;border:1px solid #eee;background:#ffe27d;color:#626262;padding:4px 10px;cursor:pointer;border-radius:3px}.aicreatenewtopictitle{margin-left:20px}.aicreatenewtopictitle:hover{text-decoration:underline;cursor:pointer}.aireply-popup{z-index:999999;position:fixed;top:10%;left:50%;transform:translate(-50%);width:500px;padding:20px;background:var(--tertiary-low);color:#333;box-shadow:#0000 0 0,#0000 0 0,#0000001a 0 20px 25px -5px,#0000001a 0 8px 10px -6px;border-radius:10px;display:none}.aireply-popup .aireply-popup-text{width:100%;height:120px}.aireply-popup .aireply-popup-close{outline:0;min-width:80px;height:32px;border:none;background-color:var(--header_background);text-shadow:0 -1px 0 rgba(0,0,0,.12);box-shadow:0 2px #0000000b;border-radius:4px;padding:0 10px;box-sizing:border-box;transition:all .1s linear}#messageToast{z-index:9999999;position:fixed;left:50%;transform:translate(-50%);top:10%;width:100%;display:flex;flex-direction:column;align-items:center}#messageToast .messageToast-text{background:var(--tertiary-low);color:var(--primary);border-radius:6px;width:auto;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-align:center;line-height:1;height:40px;min-width:240px;font-size:16px;padding:0 30px;box-sizing:border-box;margin-bottom:10px;opacity:0;animation:messageToast .2s forwards}@keyframes messageToast{0%{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}.pangutext{cursor:pointer;margin-left:20px}.pangutext:hover{color:#279a36}.navigation-container.is-active{position:fixed;top:65px;background:var(--header_background);z-index:9;box-shadow:1px 3px 7px #0003;margin-left:-30px;padding-left:30px;border-radius:5px;padding-top:10px;padding-right:20px;min-width:1000px;width:auto} '); +(t=>{if(typeof GM_addStyle=="function"){GM_addStyle(t);return}const i=document.createElement("style");i.textContent=t,document.head.append(i)})(' input[type=text][data-v-2be3e9ac]{width:100px!important;outline:none;height:24px;border:1px solid #b6b6b6;border-radius:4px;margin-left:10px;padding:0 10px;box-sizing:border-box}.emojiPicker{top:0;left:100%;position:absolute;display:grid;grid-template-columns:repeat(12,1fr);gap:10px;height:100%;overflow:auto;background-color:#000c;padding:10px;border-radius:5px;z-index:9}.emojiPicker img{cursor:pointer;width:30px;height:30px}.sidebar-section-header-caret.right{transform:rotate(-90deg)}.item select[data-v-d780d688]{height:28px;border:1px solid #b6b6b6;border-radius:4px;width:180px;margin-left:10px;cursor:pointer}.item[data-v-e33f1de9]{border:none!important}.item a[data-v-e33f1de9]:hover{text-decoration:underline}.item[data-v-cb743585],.item[data-v-86b330f1],.item[data-v-f84417d4],.item[data-v-c99e7560]{border:none!important}input[type=text][data-v-5861dcba]{width:100px!important;outline:none;height:24px;border:1px solid #b6b6b6;border-radius:4px;margin-left:10px;padding:0 10px;box-sizing:border-box}.linxudoscripts-tag{background:#29a6a9;color:#fff;font-size:14px!important;padding:0 10px;height:26px;text-align:center;display:inline-flex!important;align-items:center;justify-content:center;border-radius:5px}.menu-table{width:100%}.menu-table td,.menu-table th{padding:10px;font-size:14px}.menu-table .span{cursor:pointer}.menu-table .span+.span{margin-left:10px}.item[data-v-178c15f8]{border:none}.item[data-v-b5335091]{display:block!important}p[data-v-b5335091]{margin:8px 0!important}ul[data-v-b5335091]{display:flex;flex-wrap:wrap;justify-content:space-between;list-style:none;padding:0}ul li[data-v-b5335091]{width:48%;margin-bottom:30px}input[type=radio][data-v-b5335091]{transform:scale(1.2)}.ls-flex[data-v-b5335091]{display:flex;align-content:center;margin-bottom:10px;cursor:pointer}.ls-flex input[data-v-b5335091]{margin-right:10px}.ls-flex label[data-v-b5335091]{cursor:pointer;font-weight:300}.item[data-v-b6c08155]{border:none!important;padding:0!important;margin-top:15px}.item .tit[data-v-b6c08155]{white-space:nowrap;width:160px}.item input[data-v-b6c08155]{margin:0}.btnwrapper[data-v-b6c08155]{margin-top:20px}.post-stream.lookopwrapactive .topic-post{display:none!important}.post-stream.lookopwrapactive .topic-post.topic-owner{display:block!important}@keyframes breathAnimation-57dbaeb5{0%,to{transform:scale(1);box-shadow:0 0 5px #00000080}50%{transform:scale(1.1);box-shadow:0 0 10px #000000b3}}.breath-animation[data-v-57dbaeb5]{animation:breathAnimation-57dbaeb5 4s ease-in-out infinite}.minimized[data-v-57dbaeb5]{width:50px!important;height:50px!important;border-radius:50%!important;padding:0!important;overflow:hidden;cursor:pointer}#linuxDoLevelPopupContent[data-v-57dbaeb5]{line-height:1.6;position:fixed;bottom:20px;right:90px;width:250px;height:auto;background-color:var(--tertiary-low);padding:15px;z-index:10000;font-size:14px;border-radius:5px}#linuxDoUserSearch[data-v-57dbaeb5]{width:100%;margin-top:10px}.button[data-v-57dbaeb5]{margin-top:10px}.minimize-button[data-v-57dbaeb5]{position:absolute;top:5px;right:5px;z-index:10001;background:transparent;border:none;cursor:pointer;border-radius:50%;text-align:center;line-height:40px;width:40px;height:40px}.linuxdoscripts-aidialog{position:fixed;top:0;left:-100%;width:500px;height:100vh;background:#fff;box-shadow:1px 2px 5px #0000003d;z-index:999;padding-top:60px;transition:all .1s linear;opacity:0;visibility:hidden;overflow:hidden}.linuxdoscripts-aidialog.act{left:0;opacity:1;visibility:inherit;overflow:inherit}a[data-v-45c51ed7]:hover{text-decoration:underline}.item-foot[data-v-45c51ed7]{display:flex;flex-direction:column;align-items:flex-start;position:absolute;bottom:70px;left:22px;line-height:2}.item-foot img[data-v-45c51ed7]{width:auto!important;height:20px!important}.UsageTip{position:static;margin:0;font-size:14px;line-height:1.6;background:var(--d-sidebar-background);color:var(--primary-medium)}.UsageTip>div{margin:10px 0}.UsageTip button{padding:8px 10px;margin-bottom:10px;border:none;outline:none;border-radius:4px}.timeline-container .topic-timeline .timeline-scrollarea{max-width:100px!important}#linuxdoscripts{font-size:14px}#linuxdoscripts input[type=text]{width:100%;background:var(--d-input-bg-color)}#linuxdoscripts input[type=checkbox]{transform:scale(1.2)}#linuxdoscripts #menu_suspendedball{display:none}#linuxdoscripts img{vertical-align:bottom;max-width:100%;height:auto}#linuxdoscripts .close{position:absolute;right:10px;top:45%;cursor:pointer;font-size:34px;color:#999;transform:translateY(-50%) rotate(45deg)}#linuxdoscripts .setting-btn{z-index:999;position:fixed;bottom:20px;right:20px}#linuxdoscripts .setting-btn .el-button{margin:15px 0 0;width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--tertiary-low);font-size:14px;cursor:pointer;transition:all .1s linear;border:none}#linuxdoscripts .setting-btn .el-button svg{margin:0}#linuxdoscripts .setting-btn .el-button:hover{opacity:.9}#linuxdoscripts .hint{margin-top:5px;color:#d94f4f;font-size:14px}#linuxdoscripts dialog{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:700px;background:var(--header_background);color:var(--primary);box-shadow:#0000 0 0,#0000 0 0,#0000001a 0 20px 25px -5px,#0000001a 0 8px 10px -6px;border-radius:16px;padding:15px;z-index:99999;overflow-x:hidden;box-sizing:border-box;margin:0;border:none;outline:none}#linuxdoscripts dialog .menu-about{padding:5px 0;line-height:2}#linuxdoscripts dialog .menu-about .initialization{color:#999;border-bottom:1px dashed #999;cursor:pointer}#linuxdoscripts dialog .menu-about .initialization:hover{color:#333;border-color:#333}#linuxdoscripts dialog p{margin:0;font-size:14px}#linuxdoscripts .menu-header{padding:.5rem .5rem 1rem;border-bottom:1px solid #eee;position:relative}#linuxdoscripts .title{font-size:18px;font-weight:600;display:flex;align-items:center}#linuxdoscripts .title img{margin-left:10px}#linuxdoscripts button{outline:0;min-width:80px;height:32px;border:none;background:var(--tertiary);text-shadow:0 -1px 0 rgba(0,0,0,.12);box-shadow:0 2px #0000000b;border-radius:4px;padding:0 10px;box-sizing:border-box;transition:all .1s linear;color:var(--secondary)}#linuxdoscripts button+button{margin-left:8px}#linuxdoscripts button.saveload{background:#3d9b93}#linuxdoscripts button.detection{background:#810000}#linuxdoscripts button:hover{opacity:.9}#linuxdoscripts .menu-flex{display:flex;justify-content:space-between;align-items:flex-start}#linuxdoscripts .menu-nav{width:140px;display:flex;flex-direction:column;margin:0 20px 0 0;padding-top:15px}#linuxdoscripts .menu-nav li{border-radius:4px;height:32px;width:100%;margin-bottom:5px;box-sizing:border-box;padding:0 10px;display:inline-flex;align-items:center;justify-content:flex-start;font-size:14px;cursor:pointer;line-height:1}#linuxdoscripts .menu-nav li svg{width:16px;margin-right:5px}#linuxdoscripts .menu-nav li.act{background:var(--bbcode-highlight)}#linuxdoscripts .menu-body{flex:1;height:480px;overflow-y:auto;padding-right:10px}#linuxdoscripts .menu-body::-webkit-scrollbar{height:8px;width:8px}#linuxdoscripts .menu-body::-webkit-scrollbar-corner{background:none}#linuxdoscripts .menu-body::-webkit-scrollbar-thumb{background:#dee0e1;border-radius:8px}#linuxdoscripts .menu-body .menu-body-item{display:none}#linuxdoscripts .menu-body .menu-body-item.act{display:block}#linuxdoscripts .menu-footer{display:flex;margin-top:10px;padding-top:6px}#linuxdoscripts .import{margin-left:auto!important}#linuxdoscripts .import,#linuxdoscripts .export{background:#d1f0ff;color:#559095}#linuxdoscripts .floorlottery{background:#ffb003}#linuxdoscripts .menu-body-item{padding-bottom:30px}#linuxdoscripts .menu-body-item .item{border-bottom:1px solid rgba(0,0,0,.05);padding:15px 0;display:flex;align-items:center;justify-content:space-between}#linuxdoscripts .menu-body-item .item input[type=checkbox]{width:30px;height:16px;position:relative;background-color:#dcdfe6;box-shadow:#dfdfdf 0 0 inset;border-radius:20px;background-clip:content-box;display:inline-block;appearance:none;-webkit-appearance:none;-moz-appearance:none;-webkit-user-select:none;user-select:none;outline:none;padding:0}#linuxdoscripts .menu-body-item .item input[type=checkbox]:before{content:"";position:absolute;width:12px;height:12px;background-color:#fff;border-radius:50%;left:2px;top:0;bottom:0;margin:auto;transition:.3s}#linuxdoscripts .menu-body-item .item input[type=checkbox]:checked{background-color:var(--tertiary);transition:.6s}#linuxdoscripts .menu-body-item .item input[type=checkbox]:checked:before{left:14px;transition:.3s}#linuxdoscripts textarea{font-family:inherit;width:100%;min-height:100px!important;border:1px solid #999;outline:0;padding:5px;font-size:14px;margin:5px 0 0;resize:none;border-radius:0;color:var(--d-input-text-color);background:var(--d-input-bg-color)}#linuxdoscripts textarea:focus{border-color:var(--tertiary);outline:2px solid var(--tertiary);outline-offset:-2px}#linuxdoscripts #floorlotterloading img{width:50px;height:50px}#linuxdoscripts .floorlotterywrap{display:none;width:400px;height:300px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;z-index:999}#linuxdoscripts .floorlotterywrap{width:400px;height:300px}#linuxdoscripts .el-checkbox__inner{border:1px solid #979797}#linuxdoscripts label{margin:0}.linuxdoscripts-opacity{display:none;position:fixed;left:0;top:0;width:100vw;height:100vh;background:#00000080;z-index:9999}.linuxlevel.four{background:linear-gradient(to right,red,#00f);-webkit-background-clip:text;color:transparent}.topic-post{position:relative}.linuxfloor{display:flex;color:var(--tertiary);width:30px;height:30px;align-items:center;justify-content:center;border-radius:6px;font-size:16px;margin-left:10px}.signature-p{color:#279a36;font-size:14px;word-break:break-word}.topic-list .views{font-weight:400!important;white-space:nowrap!important}.createreply{display:flex;flex-direction:column;max-width:300px}.createreply button{margin-bottom:10px;justify-content:flex-start;text-align:left}.topicpreview-btn{padding:4px 12px!important;font-size:14px!important;opacity:0!important}.topic-list-item:hover .topicpreview-btn{opacity:1!important}.topicpreview{position:fixed;top:0;left:0;z-index:99999;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center;display:none}.topicpreview .topicpreview-container{padding:30px 0;border-radius:5px;width:100%;max-width:800px;overflow-y:auto;height:80vh;z-index:10;background:var(--header_background);position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.topicpreview .topicpreview-container .topicpreview-title{font-size:22px;font-weight:600;padding:0 30px}.topicpreview .topicpreview-container .topicpreview-date{padding:0 30px;color:#666}.topicpreview .topicpreview-container .topicpreview-content>.item{display:flex;align-items:flex-start;padding:20px 30px}.topicpreview .topicpreview-container .topicpreview-content>.item .itemfloor{width:50px;text-align:left;font-size:16px;padding-top:15px;color:#25b4cf}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost{flex:1;background:var(--tertiary-low);padding:15px;border-radius:10px;font-size:15px;word-break:break-all}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost pre code{max-width:620px}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost img{max-width:100%;max-height:100%;height:auto}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemname{font-size:16px;color:#8f3a3a;display:flex;justify-content:space-between;align-items:center}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemname span{color:#9e9e9e;margin-left:20px}.topicpreview .topicpreview-container .topicpreview-content>.item .itempost .itemdate{color:#b9b9b9;font-size:16px;margin-left:auto}.topicpreview-opacity{position:absolute;top:0;left:0;width:100%;height:100%;opacity:1;background:#0009;z-index:9}.body-preview .sidebar-wrapper{display:none!important}body.body-preview #main-outlet-wrapper{display:block!important;padding-left:50px!important}.body-preview .d-header-wrap,.body-preview .menu_suspendedball{display:none!important}.post-activity{white-space:nowrap;display:inline-block;width:100%;text-align:left}.d-header img{height:var(--d-logo-height);width:auto;max-width:100%;object-fit:contain}.aicreated-btn,.aireplay-btn{outline:none;border:none;background:var(--tertiary-low);display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:14px;padding:4px 10px;border-radius:3px;margin-bottom:10px;margin-right:10px}.aicreated-btn{display:none}.gpt-summary-wrap{background:var(--tertiary-low);border-radius:5px;padding:10px;font-size:14px;margin:0 0 10px;line-height:1.6}.gpt-summary-wrap .airegenerate{display:none;margin-top:6px;outline:none;border:1px solid #eee;background:#ffe27d;color:#626262;padding:4px 10px;cursor:pointer;border-radius:3px}.aicreatenewtopictitle{margin-left:20px}.aicreatenewtopictitle:hover{text-decoration:underline;cursor:pointer}.aireply-popup{z-index:999999;position:fixed;top:10%;left:50%;transform:translate(-50%);width:500px;padding:20px;background:var(--tertiary-low);color:#333;box-shadow:#0000 0 0,#0000 0 0,#0000001a 0 20px 25px -5px,#0000001a 0 8px 10px -6px;border-radius:10px;display:none}.aireply-popup .aireply-popup-text{width:100%;height:120px}.aireply-popup .aireply-popup-close{outline:0;min-width:80px;height:32px;border:none;background-color:var(--header_background);text-shadow:0 -1px 0 rgba(0,0,0,.12);box-shadow:0 2px #0000000b;border-radius:4px;padding:0 10px;box-sizing:border-box;transition:all .1s linear}#messageToast{z-index:9999999;position:fixed;left:50%;transform:translate(-50%);top:10%;width:100%;display:flex;flex-direction:column;align-items:center}#messageToast .messageToast-text{background:var(--tertiary-low);color:var(--primary);border-radius:6px;width:auto;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-align:center;line-height:1;height:40px;min-width:240px;font-size:16px;padding:0 30px;box-sizing:border-box;margin-bottom:10px;opacity:0;animation:messageToast .2s forwards}@keyframes messageToast{0%{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}.pangutext{cursor:pointer;margin-left:20px}.pangutext:hover{color:#279a36}.navigation-container.is-active{position:fixed;top:65px;background:var(--header_background);z-index:9;box-shadow:1px 3px 7px #0003;margin-left:-30px;padding-left:30px;border-radius:5px;padding-top:10px;padding-right:20px;min-width:1000px;width:auto} '); (function (vue, pangu, marked, $$1) { 'use strict'; const name = "linuxdo-scripts"; - const version = "0.3.32"; + const version = "0.3.33"; const author = "dlzmoe"; const description = "An enhanced script for the linux.do forum"; const type = "module"; @@ -65,7 +65,7 @@ } return target; }; - const _sfc_main$L = { + const _sfc_main$O = { props: ["modelValue", "sort"], emits: ["update:modelValue"], data() { @@ -113,21 +113,21 @@ this.removeEventListeners(); } }; - const _hoisted_1$F = { class: "item" }; - const _hoisted_2$F = { class: "tit" }; - const _hoisted_3$v = ["checked"]; - function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [ - vue.createElementVNode("div", _hoisted_2$F, vue.toDisplayString($props.sort) + ". 是否新标签页打开话题", 1), + const _hoisted_1$I = { class: "item" }; + const _hoisted_2$I = { class: "tit" }; + const _hoisted_3$y = ["checked"]; + function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [ + vue.createElementVNode("div", _hoisted_2$I, vue.toDisplayString($props.sort) + ". 是否新标签页打开话题", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$v) + }, null, 40, _hoisted_3$y) ]); } - const MenuOpenpostblank = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$L]]); - const _sfc_main$K = { + const MenuOpenpostblank = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$O]]); + const _sfc_main$N = { props: ["modelValue", "sort"], emits: ["update:modelValue"], methods: { @@ -145,21 +145,21 @@ } } }; - const _hoisted_1$E = { class: "item" }; - const _hoisted_2$E = { class: "tit" }; - const _hoisted_3$u = ["checked"]; - function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [ - vue.createElementVNode("div", _hoisted_2$E, vue.toDisplayString($props.sort) + ". 是否开启新话题提醒", 1), + const _hoisted_1$H = { class: "item" }; + const _hoisted_2$H = { class: "tit" }; + const _hoisted_3$x = ["checked"]; + function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [ + vue.createElementVNode("div", _hoisted_2$H, vue.toDisplayString($props.sort) + ". 是否开启新话题提醒", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$u) + }, null, 40, _hoisted_3$x) ]); } - const MenuNewtopicreminder = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$K]]); - const _sfc_main$J = { + const MenuNewtopicreminder = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$N]]); + const _sfc_main$M = { props: ["modelValue", "sort"], emits: ["update:modelValue"], methods: { @@ -181,21 +181,21 @@ } } }; - const _hoisted_1$D = { class: "item" }; - const _hoisted_2$D = { class: "tit" }; - const _hoisted_3$t = ["checked"]; - function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [ - vue.createElementVNode("div", _hoisted_2$D, vue.toDisplayString($props.sort) + ". 是否自动展开回复", 1), + const _hoisted_1$G = { class: "item" }; + const _hoisted_2$G = { class: "tit" }; + const _hoisted_3$w = ["checked"]; + function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [ + vue.createElementVNode("div", _hoisted_2$G, vue.toDisplayString($props.sort) + ". 是否自动展开回复", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$t) + }, null, 40, _hoisted_3$w) ]); } - const MenuAutoexpandreply = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$J]]); - const _sfc_main$I = { + const MenuAutoexpandreply = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$M]]); + const _sfc_main$L = { props: ["modelValue", "sort"], emits: ["update:modelValue"], methods: { @@ -302,23 +302,23 @@ } } }; - const _hoisted_1$C = { class: "item" }; - const _hoisted_2$C = { class: "tit" }; - const _hoisted_3$s = ["checked"]; - function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) { + const _hoisted_1$F = { class: "item" }; + const _hoisted_2$F = { class: "tit" }; + const _hoisted_3$v = ["checked"]; + function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("div", null, [ - vue.createElementVNode("div", _hoisted_1$C, [ - vue.createElementVNode("div", _hoisted_2$C, vue.toDisplayString($props.sort) + ". 话题列表显示创建时间", 1), + vue.createElementVNode("div", _hoisted_1$F, [ + vue.createElementVNode("div", _hoisted_2$F, vue.toDisplayString($props.sort) + ". 话题列表显示创建时间", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$s) + }, null, 40, _hoisted_3$v) ]) ]); } - const MenuShowcreatetime = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$I]]); - const _sfc_main$H = { + const MenuShowcreatetime = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["render", _sfc_render$L]]); + const _sfc_main$K = { props: ["modelValue", "sort"], emits: ["update:modelValue"], methods: { @@ -423,21 +423,21 @@ } } }; - const _hoisted_1$B = { class: "item" }; - const _hoisted_2$B = { class: "tit" }; - const _hoisted_3$r = ["checked"]; - function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [ - vue.createElementVNode("div", _hoisted_2$B, vue.toDisplayString($props.sort) + ". 将浏览量替换为创建时间(与 4 互斥,只可选择一个)", 1), + const _hoisted_1$E = { class: "item" }; + const _hoisted_2$E = { class: "tit" }; + const _hoisted_3$u = ["checked"]; + function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [ + vue.createElementVNode("div", _hoisted_2$E, vue.toDisplayString($props.sort) + ". 将浏览量替换为创建时间(与 4 互斥,只可选择一个)", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$r) + }, null, 40, _hoisted_3$u) ]); } - const MenuShowcreatetime1 = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$H]]); - const _sfc_main$G = { + const MenuShowcreatetime1 = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$K]]); + const _sfc_main$J = { props: ["modelValue", "sort"], emits: ["update:modelValue"], methods: { @@ -462,21 +462,21 @@ } } }; - const _hoisted_1$A = { class: "item" }; - const _hoisted_2$A = { class: "tit" }; - const _hoisted_3$q = ["checked"]; - function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [ - vue.createElementVNode("div", _hoisted_2$A, vue.toDisplayString($props.sort) + ". 是否显示楼层数", 1), + const _hoisted_1$D = { class: "item" }; + const _hoisted_2$D = { class: "tit" }; + const _hoisted_3$t = ["checked"]; + function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [ + vue.createElementVNode("div", _hoisted_2$D, vue.toDisplayString($props.sort) + ". 是否显示楼层数", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$q) + }, null, 40, _hoisted_3$t) ]); } - const MenuShowfloors = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$G]]); - const _sfc_main$F = { + const MenuShowfloors = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$J]]); + const _sfc_main$I = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -485,21 +485,21 @@ } } }; - const _hoisted_1$z = { class: "item" }; - const _hoisted_2$z = { class: "tit" }; - const _hoisted_3$p = ["checked"]; - function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [ - vue.createElementVNode("div", _hoisted_2$z, vue.toDisplayString($props.sort) + ". 隐藏话题详情顶部大标题", 1), + const _hoisted_1$C = { class: "item" }; + const _hoisted_2$C = { class: "tit" }; + const _hoisted_3$s = ["checked"]; + function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [ + vue.createElementVNode("div", _hoisted_2$C, vue.toDisplayString($props.sort) + ". 隐藏话题详情顶部大标题", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$p) + }, null, 40, _hoisted_3$s) ]); } - const MenuHidetopicdetailtitle = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$F]]); - const _sfc_main$E = { + const MenuHidetopicdetailtitle = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$I]]); + const _sfc_main$H = { props: ["modelValue", "sort"], emits: ["update:modelValue"], methods: { @@ -596,21 +596,21 @@ } } }; - const _hoisted_1$y = { class: "item" }; - const _hoisted_2$y = { class: "tit" }; - const _hoisted_3$o = ["checked"]; - function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [ - vue.createElementVNode("div", _hoisted_2$y, vue.toDisplayString($props.sort) + ". 是否开启话题预览功能", 1), + const _hoisted_1$B = { class: "item" }; + const _hoisted_2$B = { class: "tit" }; + const _hoisted_3$r = ["checked"]; + function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [ + vue.createElementVNode("div", _hoisted_2$B, vue.toDisplayString($props.sort) + ". 是否开启话题预览功能", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$o) + }, null, 40, _hoisted_3$r) ]); } - const MenuTopicpreview = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E]]); - const _sfc_main$D = { + const MenuTopicpreview = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$H]]); + const _sfc_main$G = { props: ["modelValue", "sort"], emits: ["update:modelValue"], computed: { @@ -637,12 +637,12 @@ } } }; - const _hoisted_1$x = { class: "item" }; - const _hoisted_2$x = { class: "tit" }; - const _hoisted_3$n = ["checked"]; - function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [ - vue.createElementVNode("div", _hoisted_2$x, [ + const _hoisted_1$A = { class: "item" }; + const _hoisted_2$A = { class: "tit" }; + const _hoisted_3$q = ["checked"]; + function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [ + vue.createElementVNode("div", _hoisted_2$A, [ vue.createTextVNode(vue.toDisplayString($props.sort) + ". 是否显示自动阅读按钮,可调节速度默认 10 ", 1), vue.withDirectives(vue.createElementVNode("input", { type: "text", @@ -656,29 +656,29 @@ type: "checkbox", checked: $options.value1, onChange: _cache[1] || (_cache[1] = ($event) => $options.updateValue1($event.target.checked)) - }, null, 40, _hoisted_3$n) + }, null, 40, _hoisted_3$q) ]); } - const MenuAutoRead = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$D], ["__scopeId", "data-v-2be3e9ac"]]); - const _sfc_main$C = { + const MenuAutoRead = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$G], ["__scopeId", "data-v-2be3e9ac"]]); + const _sfc_main$F = { props: ["modelValue", "sort"], emits: ["update:modelValue"] }; - const _hoisted_1$w = { class: "item" }; - const _hoisted_2$w = { class: "tit" }; - const _hoisted_3$m = ["checked"]; - function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [ - vue.createElementVNode("div", _hoisted_2$w, vue.toDisplayString($props.sort) + ". 是否开启只看楼主", 1), + const _hoisted_1$z = { class: "item" }; + const _hoisted_2$z = { class: "tit" }; + const _hoisted_3$p = ["checked"]; + function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [ + vue.createElementVNode("div", _hoisted_2$z, vue.toDisplayString($props.sort) + ". 是否开启只看楼主", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$m) + }, null, 40, _hoisted_3$p) ]); } - const MenuLookOP = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C]]); - const _sfc_main$B = { + const MenuLookOP = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$F]]); + const _sfc_main$E = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -689,20 +689,20 @@ } } }; - const _hoisted_1$v = { class: "item" }; - const _hoisted_2$v = { class: "tit" }; - const _hoisted_3$l = ["checked"]; - function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [ - vue.createElementVNode("div", _hoisted_2$v, vue.toDisplayString($props.sort) + ". 智能限制楼层高度", 1), + const _hoisted_1$y = { class: "item" }; + const _hoisted_2$y = { class: "tit" }; + const _hoisted_3$o = ["checked"]; + function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [ + vue.createElementVNode("div", _hoisted_2$y, vue.toDisplayString($props.sort) + ". 智能限制楼层高度", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$l) + }, null, 40, _hoisted_3$o) ]); } - const MenuFloorHeight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$B]]); + const MenuFloorHeight = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$E]]); const emojiSet = [ { size: "30x30", @@ -1327,12 +1327,12 @@ }); } }, 100); - const _sfc_main$A = {}; - function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) { + const _sfc_main$D = {}; + function _sfc_render$D(_ctx, _cache, $props, $setup, $data, $options) { return null; } - const ReplyTBEnjoy = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$A]]); - const _sfc_main$z = { + const ReplyTBEnjoy = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$D]]); + const _sfc_main$C = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -1373,39 +1373,39 @@ } } }; - const _hoisted_1$u = { class: "item" }; - const _hoisted_2$u = { class: "tit" }; - const _hoisted_3$k = ["checked"]; - function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [ - vue.createElementVNode("div", _hoisted_2$u, vue.toDisplayString($props.sort) + ". 是否开启中英文混排优化显示", 1), + const _hoisted_1$x = { class: "item" }; + const _hoisted_2$x = { class: "tit" }; + const _hoisted_3$n = ["checked"]; + function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [ + vue.createElementVNode("div", _hoisted_2$x, vue.toDisplayString($props.sort) + ". 是否开启中英文混排优化显示", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$k) + }, null, 40, _hoisted_3$n) ]); } - const MenuPangu = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z]]); - const _sfc_main$y = { + const MenuPangu = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C]]); + const _sfc_main$B = { props: ["modelValue", "sort"], emits: ["update:modelValue"] }; - const _hoisted_1$t = { class: "item" }; - const _hoisted_2$t = { class: "tit" }; - const _hoisted_3$j = ["checked"]; - function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$t, [ - vue.createElementVNode("div", _hoisted_2$t, vue.toDisplayString($props.sort) + ". 是否显示等级查询按钮", 1), + const _hoisted_1$w = { class: "item" }; + const _hoisted_2$w = { class: "tit" }; + const _hoisted_3$m = ["checked"]; + function _sfc_render$B(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [ + vue.createElementVNode("div", _hoisted_2$w, vue.toDisplayString($props.sort) + ". 是否显示等级查询按钮", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$j) + }, null, 40, _hoisted_3$m) ]); } - const MenuLevelSearch = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y]]); - const _sfc_main$x = { + const MenuLevelSearch = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$B]]); + const _sfc_main$A = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -1417,21 +1417,21 @@ } } }; - const _hoisted_1$s = { class: "item" }; - const _hoisted_2$s = { class: "tit" }; - const _hoisted_3$i = ["checked"]; - function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [ - vue.createElementVNode("div", _hoisted_2$s, vue.toDisplayString($props.sort) + ". 消息通知仅显示未读", 1), + const _hoisted_1$v = { class: "item" }; + const _hoisted_2$v = { class: "tit" }; + const _hoisted_3$l = ["checked"]; + function _sfc_render$A(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [ + vue.createElementVNode("div", _hoisted_2$v, vue.toDisplayString($props.sort) + ". 消息通知仅显示未读", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$i) + }, null, 40, _hoisted_3$l) ]); } - const MenuShowUnread = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$x]]); - const _sfc_main$w = { + const MenuShowUnread = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$A]]); + const _sfc_main$z = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -1440,21 +1440,21 @@ } } }; - const _hoisted_1$r = { class: "item" }; - const _hoisted_2$r = { class: "tit" }; - const _hoisted_3$h = ["checked"]; - function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [ - vue.createElementVNode("div", _hoisted_2$r, vue.toDisplayString($props.sort) + ". 是否屏蔽模糊文字", 1), + const _hoisted_1$u = { class: "item" }; + const _hoisted_2$u = { class: "tit" }; + const _hoisted_3$k = ["checked"]; + function _sfc_render$z(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [ + vue.createElementVNode("div", _hoisted_2$u, vue.toDisplayString($props.sort) + ". 是否屏蔽模糊文字", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$h) + }, null, 40, _hoisted_3$k) ]); } - const MenuFilterText = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$w]]); - const _sfc_main$v = { + const MenuFilterText = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$z]]); + const _sfc_main$y = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -1471,21 +1471,21 @@ } } }; - const _hoisted_1$q = { class: "item" }; - const _hoisted_2$q = { class: "tit" }; - const _hoisted_3$g = ["checked"]; - function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [ - vue.createElementVNode("div", _hoisted_2$q, vue.toDisplayString($props.sort) + ". 只看自己签名尾巴", 1), + const _hoisted_1$t = { class: "item" }; + const _hoisted_2$t = { class: "tit" }; + const _hoisted_3$j = ["checked"]; + function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$t, [ + vue.createElementVNode("div", _hoisted_2$t, vue.toDisplayString($props.sort) + ". 只看自己签名尾巴", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$g) + }, null, 40, _hoisted_3$j) ]); } - const MenuLookmeSign = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$v]]); - const _sfc_main$u = { + const MenuLookmeSign = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$y]]); + const _sfc_main$x = { props: ["modelValue", "sort"], emits: ["update:modelValue"], methods: { @@ -1532,21 +1532,21 @@ } } }; - const _hoisted_1$p = { class: "item" }; - const _hoisted_2$p = { class: "tit" }; - const _hoisted_3$f = ["checked"]; - function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [ - vue.createElementVNode("div", _hoisted_2$p, vue.toDisplayString($props.sort) + ". 开启左侧快速访问", 1), + const _hoisted_1$s = { class: "item" }; + const _hoisted_2$s = { class: "tit" }; + const _hoisted_3$i = ["checked"]; + function _sfc_render$x(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [ + vue.createElementVNode("div", _hoisted_2$s, vue.toDisplayString($props.sort) + ". 开启左侧快速访问", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$f) + }, null, 40, _hoisted_3$i) ]); } - const MenuQuickAccess = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$u]]); - const _sfc_main$t = { + const MenuQuickAccess = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$x]]); + const _sfc_main$w = { props: ["modelValue", "sort"], emits: ["update:modelValue"], data() { @@ -1635,12 +1635,12 @@ this.observer && this.observer.disconnect(); } }; - const _hoisted_1$o = { class: "item" }; - const _hoisted_2$o = { class: "tit" }; - const _hoisted_3$e = ["value"]; - function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [ - vue.createElementVNode("div", _hoisted_2$o, [ + const _hoisted_1$r = { class: "item" }; + const _hoisted_2$r = { class: "tit" }; + const _hoisted_3$h = ["value"]; + function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$r, [ + vue.createElementVNode("div", _hoisted_2$r, [ vue.createTextVNode(vue.toDisplayString($props.sort) + ". 切换论坛表情风格 ", 1), vue.withDirectives(vue.createElementVNode("select", { "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $options.value2 = $event) @@ -1649,7 +1649,7 @@ return vue.openBlock(), vue.createElementBlock("option", { value: item.value, key: item.value - }, vue.toDisplayString(item.label), 9, _hoisted_3$e); + }, vue.toDisplayString(item.label), 9, _hoisted_3$h); }), 128)) ], 512), [ [vue.vModelSelect, $options.value2] @@ -1664,26 +1664,26 @@ ]) ]); } - const MenureplaceEmojiStyle = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t], ["__scopeId", "data-v-d780d688"]]); - const _sfc_main$s = { + const MenureplaceEmojiStyle = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$w], ["__scopeId", "data-v-d780d688"]]); + const _sfc_main$v = { props: ["modelValue", "sort"], emits: ["update:modelValue"] }; - const _hoisted_1$n = { class: "item" }; - const _hoisted_2$n = { class: "tit" }; - const _hoisted_3$d = ["checked"]; - function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [ - vue.createElementVNode("div", _hoisted_2$n, vue.toDisplayString($props.sort) + ". 快速打开 Shared(需提前解锁 Shared)", 1), + const _hoisted_1$q = { class: "item" }; + const _hoisted_2$q = { class: "tit" }; + const _hoisted_3$g = ["checked"]; + function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$q, [ + vue.createElementVNode("div", _hoisted_2$q, vue.toDisplayString($props.sort) + ". 快速打开 Shared(需提前解锁 Shared)", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$d) + }, null, 40, _hoisted_3$g) ]); } - const MenuShowAI = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s]]); - const _sfc_main$r = { + const MenuShowAI = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$v]]); + const _sfc_main$u = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -1725,21 +1725,21 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$m = { class: "item" }; - const _hoisted_2$m = { class: "tit" }; - const _hoisted_3$c = ["checked"]; - function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [ - vue.createElementVNode("div", _hoisted_2$m, vue.toDisplayString($props.sort) + ". 编辑器切换 ja 字体", 1), + const _hoisted_1$p = { class: "item" }; + const _hoisted_2$p = { class: "tit" }; + const _hoisted_3$f = ["checked"]; + function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$p, [ + vue.createElementVNode("div", _hoisted_2$p, vue.toDisplayString($props.sort) + ". 编辑器切换 ja 字体", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$c) + }, null, 40, _hoisted_3$f) ]); } - const MenuEditorJa = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]); - const _sfc_main$q = { + const MenuEditorJa = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$u]]); + const _sfc_main$t = { props: { value: { type: Boolean, @@ -1783,11 +1783,11 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$l = { class: "item" }; - const _hoisted_2$l = { class: "tit" }; - function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [ - vue.createElementVNode("div", _hoisted_2$l, vue.toDisplayString($props.sort) + ". 首页新增按创建时间排序", 1), + const _hoisted_1$o = { class: "item" }; + const _hoisted_2$o = { class: "tit" }; + function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [ + vue.createElementVNode("div", _hoisted_2$o, vue.toDisplayString($props.sort) + ". 首页新增按创建时间排序", 1), vue.withDirectives(vue.createElementVNode("input", { type: "checkbox", "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.localChecked = $event), @@ -1797,8 +1797,8 @@ ${$(".d-editor-input").val()} ]) ]); } - const MenuCreatedOrder = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]); - const _sfc_main$p = { + const MenuCreatedOrder = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$t]]); + const _sfc_main$s = { props: ["modelValue", "sort"], emits: ["update:modelValue"], created() { @@ -1813,156 +1813,164 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$k = { class: "item" }; - const _hoisted_2$k = { class: "tit" }; - const _hoisted_3$b = ["checked"]; - function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [ - vue.createElementVNode("div", _hoisted_2$k, vue.toDisplayString($props.sort) + ". 开启列表页导航栏浮动", 1), + const _hoisted_1$n = { class: "item" }; + const _hoisted_2$n = { class: "tit" }; + const _hoisted_3$e = ["checked"]; + function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [ + vue.createElementVNode("div", _hoisted_2$n, vue.toDisplayString($props.sort) + ". 开启列表页导航栏浮动", 1), vue.createElementVNode("input", { type: "checkbox", checked: $props.modelValue, onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) - }, null, 40, _hoisted_3$b) + }, null, 40, _hoisted_3$e) ]); } - const MenuStickyNav = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p]]); - const _sfc_main$o = { - props: { - value: { - type: Object, - default: { - value1: false, - cate: "搞七捻三", - days: "5" - } - }, - sort: { - type: Number, - required: true - } - }, - data() { - return { - localChecked: this.value - }; - }, - watch: { - value(newValue) { - this.localChecked = newValue; - } - }, + const MenuStickyNav = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s]]); + const _sfc_main$r = { + props: ["modelValue", "sort"], + emits: ["update:modelValue"], methods: { - handleChange() { - this.$emit("update:value", this.localChecked); + messageToast(message) { + const messageElement = $(` `); + $("#messageToast").append(messageElement); + setTimeout(() => { + messageElement.remove(); + }, 3e3); }, - // 过滤时间格式 - convertToTimestamp(dateStr) { - const cleanedDateStr = dateStr.replace(/\s+/g, ""); - const datePattern = /(\d{4})年(\d{1,2})月(\d{1,2})日(\d{2}):(\d{2})/; - const dateMatch = cleanedDateStr.match(datePattern); - if (dateMatch) { - const year = parseInt(dateMatch[1], 10); - const month = parseInt(dateMatch[2], 10) - 1; - const day = parseInt(dateMatch[3], 10); - const hours = parseInt(dateMatch[4], 10); - const minutes = parseInt(dateMatch[5], 10); - const date = new Date(year, month, day, hours, minutes); - return date.getTime(); + async init() { + const id = $(".post-stream .topic-post:last-child").find("article").attr("data-topic-id"); + let currentId = parseInt(id) + 1; + const maxAttempts = 10; + const checkPageExists = async (idToCheck) => { + const newUrl = `/t/topic/${idToCheck}`; + try { + const response = await fetch(newUrl); + if (response.ok) { + this.messageToast("正在跳转下一个帖子!"); + window.location.href = newUrl; + return true; + } else { + return false; + } + } catch (error) { + console.error("请求出错:", error); + this.messageToast("请求出错,请稍后再试。"); + return false; + } + }; + for (let attempts = 0; attempts < maxAttempts; attempts++) { + const exists = await checkPageExists(currentId); + if (exists) { + break; + } + currentId++; } - return null; - }, - // 屏蔽指定分类、指定时间 - GetTimestamp() { - if (this.localChecked.cate == "") { - $(".topic-list .age").each((index, element) => { - const str = $(element).attr("title"); - const match = str.match(/创建日期:([\s\S]*?)最新:/); - if (match && match[1]) { - const creationDate = match[1].trim(); - const timestamp = this.convertToTimestamp(creationDate); - const days = Number(this.localChecked.days) * 864e5; - if (Date.now() - timestamp > days) { - $(element).parents("tr.topic-list-item").remove(); - } + if (currentId === parseInt(id) + 1 + maxAttempts) { + this.messageToast("已是最新帖子!"); + } + } + }, + created() { + if (this.modelValue) { + let lastKeyTime = 0; + const doubleClickTime = 300; + document.addEventListener("keydown", (event) => { + if (event.key === "ArrowRight") { + const currentTime = Date.now(); + if (currentTime - lastKeyTime <= doubleClickTime) { + this.init(); } - }); - } else { - const cateArray = this.localChecked.cate.split(",").map((item) => item.trim()); - $(".badge-category__wrapper .badge-category__name").each((index, element) => { - let htmlContent = $(element).html(); - htmlContent = htmlContent.replace(/,\s*Lv[1-3]/g, ""); - if (cateArray.includes(htmlContent.trim())) { - $(element).parents("tr.topic-list-item").find(".age").each((index2, element2) => { - const str = $(element2).attr("title"); - const match = str.match(/创建日期:([\s\S]*?)最新:/); - if (match && match[1]) { - const creationDate = match[1].trim(); - const timestamp = this.convertToTimestamp(creationDate); - const days = Number(this.localChecked.days) * 864e5; - if (Date.now() - timestamp > days) { - $(element2).parents("tr.topic-list-item").remove(); - } + lastKeyTime = currentTime; + } + }); + } + } + }; + const _hoisted_1$m = { class: "item" }; + const _hoisted_2$m = { class: "tit" }; + const _hoisted_3$d = /* @__PURE__ */ vue.createElementVNode("kbd", null, "→", -1); + const _hoisted_4$8 = ["checked"]; + function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [ + vue.createElementVNode("div", _hoisted_2$m, [ + vue.createTextVNode(vue.toDisplayString($props.sort) + ". 开启快速打开下一个帖子(快捷键:双击 ", 1), + _hoisted_3$d, + vue.createTextVNode(")") + ]), + vue.createElementVNode("input", { + type: "checkbox", + checked: $props.modelValue, + onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) + }, null, 40, _hoisted_4$8) + ]); + } + const MenuNextPosts = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]); + const _sfc_main$q = { + props: ["modelValue", "sort"], + emits: ["update:modelValue"], + created() { + if (this.modelValue) { + $("head").append(``); + } + } + }; + const _hoisted_1$l = { class: "item" }; + const _hoisted_2$l = { class: "tit" }; + const _hoisted_3$c = ["checked"]; + function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [ + vue.createElementVNode("div", _hoisted_2$l, vue.toDisplayString($props.sort) + ". 禁用选中文字分享功能", 1), + vue.createElementVNode("input", { + type: "checkbox", + checked: $props.modelValue, + onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) + }, null, 40, _hoisted_3$c) + ]); + } + const MenuSelectedShare = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]); + const _sfc_main$p = { + props: ["modelValue", "sort"], + emits: ["update:modelValue"], + created() { + if (this.modelValue) { + setInterval(() => { + $(".cooked iframe, .cooked video").each(function() { + const $element = $(this); + let src = $element.attr("src"); + if (src) { + if (!src.includes("autoplay=false")) { + if (src.includes("autoplay=")) { + src = src.replace(/autoplay=[^&]*/, "autoplay=false"); + } else { + const separator = src.includes("?") ? "&" : "?"; + src += `${separator}autoplay=false`; } - }); + $element.attr("src", src); + } } }); - } - } - }, - created() { - if (this.localChecked.value1) { - let pollinglength1 = 0; - setInterval(() => { - if (pollinglength1 != $(".topic-list-body tr").length) { - pollinglength1 = $(".topic-list-body tr").length; - this.GetTimestamp(); - } }, 1e3); } } }; - const _withScopeId$5 = (n) => (vue.pushScopeId("data-v-5861dcba"), n = n(), vue.popScopeId(), n); - const _hoisted_1$j = { - class: "item", - style: { "border": "none" } - }; - const _hoisted_2$j = { class: "tit" }; - const _hoisted_3$a = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ vue.createElementVNode("p", null, "针对分类:留空对全部分类生效,多个分类用英文逗号【,】进行分隔", -1)); - function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) { - return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ - vue.createElementVNode("div", _hoisted_1$j, [ - vue.createElementVNode("div", _hoisted_2$j, [ - vue.createTextVNode(vue.toDisplayString($props.sort) + ". 屏蔽指定天数前的帖子 ", 1), - vue.withDirectives(vue.createElementVNode("input", { - type: "text", - "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.localChecked.days = $event), - placeholder: "默认天数 5" - }, null, 512), [ - [vue.vModelText, $data.localChecked.days] - ]) - ]), - vue.withDirectives(vue.createElementVNode("input", { - type: "checkbox", - "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.localChecked.value1 = $event), - onChange: _cache[2] || (_cache[2] = (...args) => $options.handleChange && $options.handleChange(...args)) - }, null, 544), [ - [vue.vModelCheckbox, $data.localChecked.value1] - ]) - ]), - vue.createElementVNode("div", null, [ - _hoisted_3$a, - vue.withDirectives(vue.createElementVNode("textarea", { - "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.localChecked.cate = $event), - placeholder: "搞七捻三" - }, null, 512), [ - [vue.vModelText, $data.localChecked.cate] - ]) - ]) - ], 64); + const _hoisted_1$k = { class: "item" }; + const _hoisted_2$k = { class: "tit" }; + const _hoisted_3$b = ["checked"]; + function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$k, [ + vue.createElementVNode("div", _hoisted_2$k, vue.toDisplayString($props.sort) + ". 禁用视频自动播放", 1), + vue.createElementVNode("input", { + type: "checkbox", + checked: $props.modelValue, + onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:modelValue", $event.target.checked)) + }, null, 40, _hoisted_3$b) + ]); } - const MenuShieldPosts = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-5861dcba"]]); - const _sfc_main$n = { + const MenuDisableAutoplay = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p]]); + const _sfc_main$o = { props: { value: { type: String, @@ -1994,12 +2002,12 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$i = { class: "item" }; - const _hoisted_2$i = { class: "tit" }; - function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) { + const _hoisted_1$j = { class: "item" }; + const _hoisted_2$j = { class: "tit" }; + function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ - vue.createElementVNode("div", _hoisted_1$i, [ - vue.createElementVNode("div", _hoisted_2$i, vue.toDisplayString($props.sort) + ". 自定义 CSS(支持 import 引入第三方样式文件) ", 1) + vue.createElementVNode("div", _hoisted_1$j, [ + vue.createElementVNode("div", _hoisted_2$j, vue.toDisplayString($props.sort) + ". 自定义 CSS(支持 import 引入第三方样式文件) ", 1) ]), vue.withDirectives(vue.createElementVNode("textarea", { "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.textarea = $event), @@ -2010,8 +2018,8 @@ ${$(".d-editor-input").val()} ]) ], 64); } - const MenuOtherCss = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-e33f1de9"]]); - const _sfc_main$m = { + const MenuOtherCss = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-e33f1de9"]]); + const _sfc_main$n = { props: { value: { type: String, @@ -2046,12 +2054,12 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$h = { class: "item" }; - const _hoisted_2$h = { class: "tit" }; - function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) { + const _hoisted_1$i = { class: "item" }; + const _hoisted_2$i = { class: "tit" }; + function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ - vue.createElementVNode("div", _hoisted_1$h, [ - vue.createElementVNode("div", _hoisted_2$h, vue.toDisplayString($props.sort) + ". 自定义论坛 logo", 1) + vue.createElementVNode("div", _hoisted_1$i, [ + vue.createElementVNode("div", _hoisted_2$i, vue.toDisplayString($props.sort) + ". 自定义论坛 logo", 1) ]), vue.withDirectives(vue.createElementVNode("input", { type: "text", @@ -2063,8 +2071,8 @@ ${$(".d-editor-input").val()} ]) ], 64); } - const MenuLogoUrl = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-cb743585"]]); - const _sfc_main$l = { + const MenuLogoUrl = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-cb743585"]]); + const _sfc_main$m = { props: { value: { type: String, @@ -2144,12 +2152,12 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$g = { class: "item" }; - const _hoisted_2$g = { class: "tit" }; - function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) { + const _hoisted_1$h = { class: "item" }; + const _hoisted_2$h = { class: "tit" }; + function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ - vue.createElementVNode("div", _hoisted_1$g, [ - vue.createElementVNode("div", _hoisted_2$g, vue.toDisplayString($props.sort) + ". 自定义快捷回复(换行分隔)", 1) + vue.createElementVNode("div", _hoisted_1$h, [ + vue.createElementVNode("div", _hoisted_2$h, vue.toDisplayString($props.sort) + ". 自定义快捷回复(换行分隔)", 1) ]), vue.withDirectives(vue.createElementVNode("textarea", { "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.textarea = $event), @@ -2160,8 +2168,8 @@ ${$(".d-editor-input").val()} ]) ], 64); } - const MenuCreatereply = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-86b330f1"]]); - const _sfc_main$k = { + const MenuCreatereply = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-86b330f1"]]); + const _sfc_main$l = { props: { value: { type: String, @@ -2216,12 +2224,12 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$f = { class: "item" }; - const _hoisted_2$f = { class: "tit" }; - function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) { + const _hoisted_1$g = { class: "item" }; + const _hoisted_2$g = { class: "tit" }; + function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ - vue.createElementVNode("div", _hoisted_1$f, [ - vue.createElementVNode("div", _hoisted_2$f, vue.toDisplayString($props.sort) + ". 屏蔽指定用户(使用英文,分隔)", 1) + vue.createElementVNode("div", _hoisted_1$g, [ + vue.createElementVNode("div", _hoisted_2$g, vue.toDisplayString($props.sort) + ". 屏蔽指定用户(使用英文,分隔)", 1) ]), vue.withDirectives(vue.createElementVNode("textarea", { "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.textarea = $event), @@ -2232,8 +2240,8 @@ ${$(".d-editor-input").val()} ]) ], 64); } - const MenuBlockuserlist = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-f84417d4"]]); - const _sfc_main$j = { + const MenuBlockuserlist = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l], ["__scopeId", "data-v-f84417d4"]]); + const _sfc_main$k = { props: { value: { type: String, @@ -2288,12 +2296,12 @@ ${$(".d-editor-input").val()} } } }; - const _hoisted_1$e = { class: "item" }; - const _hoisted_2$e = { class: "tit" }; - function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) { + const _hoisted_1$f = { class: "item" }; + const _hoisted_2$f = { class: "tit" }; + function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ - vue.createElementVNode("div", _hoisted_1$e, [ - vue.createElementVNode("div", _hoisted_2$e, vue.toDisplayString($props.sort) + ". 关键词屏蔽功能(使用英文,分隔)屏蔽包含关键字的话题和回复 ", 1) + vue.createElementVNode("div", _hoisted_1$f, [ + vue.createElementVNode("div", _hoisted_2$f, vue.toDisplayString($props.sort) + ". 关键词屏蔽功能(使用英文,分隔)屏蔽包含关键字的话题和回复 ", 1) ]), vue.withDirectives(vue.createElementVNode("textarea", { "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.textarea = $event), @@ -2303,7 +2311,142 @@ ${$(".d-editor-input").val()} ]) ], 64); } - const MenuBlockKeyword = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-c99e7560"]]); + const MenuBlockKeyword = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k], ["__scopeId", "data-v-c99e7560"]]); + const _sfc_main$j = { + props: { + value: { + type: Object, + default: { + value1: false, + cate: "搞七捻三", + days: "5" + } + }, + sort: { + type: Number, + required: true + } + }, + data() { + return { + localChecked: this.value + }; + }, + watch: { + value(newValue) { + this.localChecked = newValue; + } + }, + methods: { + handleChange() { + this.$emit("update:value", this.localChecked); + }, + // 过滤时间格式 + convertToTimestamp(dateStr) { + const cleanedDateStr = dateStr.replace(/\s+/g, ""); + const datePattern = /(\d{4})年(\d{1,2})月(\d{1,2})日(\d{2}):(\d{2})/; + const dateMatch = cleanedDateStr.match(datePattern); + if (dateMatch) { + const year = parseInt(dateMatch[1], 10); + const month = parseInt(dateMatch[2], 10) - 1; + const day = parseInt(dateMatch[3], 10); + const hours = parseInt(dateMatch[4], 10); + const minutes = parseInt(dateMatch[5], 10); + const date = new Date(year, month, day, hours, minutes); + return date.getTime(); + } + return null; + }, + // 屏蔽指定分类、指定时间 + GetTimestamp() { + if (this.localChecked.cate == "") { + $(".topic-list .age").each((index, element) => { + const str = $(element).attr("title"); + const match = str.match(/创建日期:([\s\S]*?)最新:/); + if (match && match[1]) { + const creationDate = match[1].trim(); + const timestamp = this.convertToTimestamp(creationDate); + const days = Number(this.localChecked.days) * 864e5; + if (Date.now() - timestamp > days) { + $(element).parents("tr.topic-list-item").remove(); + } + } + }); + } else { + const cateArray = this.localChecked.cate.split(",").map((item) => item.trim()); + $(".badge-category__wrapper .badge-category__name").each((index, element) => { + let htmlContent = $(element).html(); + htmlContent = htmlContent.replace(/,\s*Lv[1-3]/g, ""); + if (cateArray.includes(htmlContent.trim())) { + $(element).parents("tr.topic-list-item").find(".age").each((index2, element2) => { + const str = $(element2).attr("title"); + const match = str.match(/创建日期:([\s\S]*?)最新:/); + if (match && match[1]) { + const creationDate = match[1].trim(); + const timestamp = this.convertToTimestamp(creationDate); + const days = Number(this.localChecked.days) * 864e5; + if (Date.now() - timestamp > days) { + $(element2).parents("tr.topic-list-item").remove(); + } + } + }); + } + }); + } + } + }, + created() { + if (this.localChecked.value1) { + let pollinglength1 = 0; + setInterval(() => { + if (pollinglength1 != $(".topic-list-body tr").length) { + pollinglength1 = $(".topic-list-body tr").length; + this.GetTimestamp(); + } + }, 1e3); + } + } + }; + const _withScopeId$5 = (n) => (vue.pushScopeId("data-v-5861dcba"), n = n(), vue.popScopeId(), n); + const _hoisted_1$e = { + class: "item", + style: { "border": "none" } + }; + const _hoisted_2$e = { class: "tit" }; + const _hoisted_3$a = /* @__PURE__ */ _withScopeId$5(() => /* @__PURE__ */ vue.createElementVNode("p", null, "针对分类:留空对全部分类生效,多个分类用英文逗号【,】进行分隔", -1)); + function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) { + return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [ + vue.createElementVNode("div", _hoisted_1$e, [ + vue.createElementVNode("div", _hoisted_2$e, [ + vue.createTextVNode(vue.toDisplayString($props.sort) + ". 屏蔽指定天数前的帖子 ", 1), + vue.withDirectives(vue.createElementVNode("input", { + type: "text", + "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.localChecked.days = $event), + placeholder: "默认天数 5" + }, null, 512), [ + [vue.vModelText, $data.localChecked.days] + ]) + ]), + vue.withDirectives(vue.createElementVNode("input", { + type: "checkbox", + "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.localChecked.value1 = $event), + onChange: _cache[2] || (_cache[2] = (...args) => $options.handleChange && $options.handleChange(...args)) + }, null, 544), [ + [vue.vModelCheckbox, $data.localChecked.value1] + ]) + ]), + vue.createElementVNode("div", null, [ + _hoisted_3$a, + vue.withDirectives(vue.createElementVNode("textarea", { + "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.localChecked.cate = $event), + placeholder: "搞七捻三" + }, null, 512), [ + [vue.vModelText, $data.localChecked.cate] + ]) + ]) + ], 64); + } + const MenuShieldPosts = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-5861dcba"]]); const _sfc_main$i = { props: { value: { @@ -3890,7 +4033,10 @@ ${topic_contentdata}`; SyncBackup, MenuShieldPosts, Themes, - Signature + Signature, + MenuNextPosts, + MenuSelectedShare, + MenuDisableAutoplay }, data() { return { @@ -3941,6 +4087,9 @@ ${topic_contentdata}`; cate: "搞七捻三", days: "5" }, + checked22: true, + checked23: false, + checked24: true, usertags: [], gptdata: { value1: false, @@ -4161,6 +4310,9 @@ ${topic_contentdata}`; const _component_MenuShowAI = vue.resolveComponent("MenuShowAI"); const _component_MenuEditorJa = vue.resolveComponent("MenuEditorJa"); const _component_MenuStickyNav = vue.resolveComponent("MenuStickyNav"); + const _component_MenuNextPosts = vue.resolveComponent("MenuNextPosts"); + const _component_MenuSelectedShare = vue.resolveComponent("MenuSelectedShare"); + const _component_MenuDisableAutoplay = vue.resolveComponent("MenuDisableAutoplay"); const _component_MenuLogoUrl = vue.resolveComponent("MenuLogoUrl"); const _component_MenuCreatereply = vue.resolveComponent("MenuCreatereply"); const _component_MenuBlockKeyword = vue.resolveComponent("MenuBlockKeyword"); @@ -4343,62 +4495,77 @@ ${topic_contentdata}`; sort: 20, modelValue: $data.settingData.checked20, "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => $data.settingData.checked20 = $event) + }, null, 8, ["modelValue"]), + vue.createVNode(_component_MenuNextPosts, { + sort: 21, + modelValue: $data.settingData.checked22, + "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => $data.settingData.checked22 = $event) + }, null, 8, ["modelValue"]), + vue.createVNode(_component_MenuSelectedShare, { + sort: 22, + modelValue: $data.settingData.checked23, + "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => $data.settingData.checked23 = $event) + }, null, 8, ["modelValue"]), + vue.createVNode(_component_MenuDisableAutoplay, { + sort: 23, + modelValue: $data.settingData.checked24, + "onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => $data.settingData.checked24 = $event) }, null, 8, ["modelValue"]) ]), vue.createElementVNode("div", _hoisted_15, [ vue.createVNode(_component_MenuLogoUrl, { sort: 1, value: $data.settingData.logourl, - "onUpdate:value": _cache[23] || (_cache[23] = ($event) => $data.settingData.logourl = $event) + "onUpdate:value": _cache[26] || (_cache[26] = ($event) => $data.settingData.logourl = $event) }, null, 8, ["value"]), vue.createVNode(_component_MenuCreatereply, { sort: 2, value: $data.settingData.QuickReply, - "onUpdate:value": _cache[24] || (_cache[24] = ($event) => $data.settingData.QuickReply = $event) + "onUpdate:value": _cache[27] || (_cache[27] = ($event) => $data.settingData.QuickReply = $event) }, null, 8, ["value"]), vue.createVNode(_component_MenuBlockKeyword, { sort: 3, value: $data.settingData.blockkeywrod, - "onUpdate:value": _cache[25] || (_cache[25] = ($event) => $data.settingData.blockkeywrod = $event) + "onUpdate:value": _cache[28] || (_cache[28] = ($event) => $data.settingData.blockkeywrod = $event) }, null, 8, ["value"]), vue.createVNode(_component_MenuBlockuserlist, { sort: 4, value: $data.settingData.blockList, - "onUpdate:value": _cache[26] || (_cache[26] = ($event) => $data.settingData.blockList = $event) + "onUpdate:value": _cache[29] || (_cache[29] = ($event) => $data.settingData.blockList = $event) }, null, 8, ["value"]), vue.createVNode(_component_MenuShieldPosts, { sort: 5, value: $data.settingData.checked21, - "onUpdate:value": _cache[27] || (_cache[27] = ($event) => $data.settingData.checked21 = $event) + "onUpdate:value": _cache[30] || (_cache[30] = ($event) => $data.settingData.checked21 = $event) }, null, 8, ["value"]), vue.createVNode(_component_MenuOtherCss, { sort: 6, value: $data.settingData.othercss, - "onUpdate:value": _cache[28] || (_cache[28] = ($event) => $data.settingData.othercss = $event) + "onUpdate:value": _cache[31] || (_cache[31] = ($event) => $data.settingData.othercss = $event) }, null, 8, ["value"]) ]), vue.createElementVNode("div", _hoisted_16, [ vue.createVNode(_component_UserTags, { value: $data.settingData.usertags, - "onUpdate:value": _cache[29] || (_cache[29] = ($event) => $data.settingData.usertags = $event) + "onUpdate:value": _cache[32] || (_cache[32] = ($event) => $data.settingData.usertags = $event) }, null, 8, ["value"]) ]), vue.createElementVNode("div", _hoisted_17, [ vue.createVNode(_component_GPTconfig, { value: $data.settingData.gptdata, - "onUpdate:value": _cache[30] || (_cache[30] = ($event) => $data.settingData.gptdata = $event) + "onUpdate:value": _cache[33] || (_cache[33] = ($event) => $data.settingData.gptdata = $event) }, null, 8, ["value"]) ]), vue.createElementVNode("div", _hoisted_18, [ vue.createVNode(_component_Themes, { modelValue: $data.settingData.themes, - "onUpdate:modelValue": _cache[31] || (_cache[31] = ($event) => $data.settingData.themes = $event) + "onUpdate:modelValue": _cache[34] || (_cache[34] = ($event) => $data.settingData.themes = $event) }, null, 8, ["modelValue"]) ]), vue.createElementVNode("div", _hoisted_19, [ vue.createVNode(_component_SyncBackup, { value: $data.settingData.syncbackup, - "onUpdate:value": _cache[32] || (_cache[32] = ($event) => $data.settingData.syncbackup = $event) + "onUpdate:value": _cache[35] || (_cache[35] = ($event) => $data.settingData.syncbackup = $event) }, null, 8, ["value"]) ]) ]) @@ -4406,15 +4573,15 @@ ${topic_contentdata}`; vue.createElementVNode("div", _hoisted_20, [ vue.createElementVNode("button", { class: "save", - onClick: _cache[33] || (_cache[33] = (...args) => $options.save && $options.save(...args)) + onClick: _cache[36] || (_cache[36] = (...args) => $options.save && $options.save(...args)) }, "保存"), vue.createElementVNode("button", { class: "saveload", - onClick: _cache[34] || (_cache[34] = (...args) => $options.saveload && $options.saveload(...args)) + onClick: _cache[37] || (_cache[37] = (...args) => $options.saveload && $options.saveload(...args)) }, "保存并刷新"), vue.createElementVNode("button", { class: "floorlottery", - onClick: _cache[35] || (_cache[35] = (...args) => $options.openFloorlottery && $options.openFloorlottery(...args)) + onClick: _cache[38] || (_cache[38] = (...args) => $options.openFloorlottery && $options.openFloorlottery(...args)) }, "楼层抽奖"), _hoisted_21 ]) @@ -4424,27 +4591,27 @@ ${topic_contentdata}`; vue.createElementVNode("div", _hoisted_24, [ vue.withDirectives(vue.createElementVNode("input", { type: "text", - "onUpdate:modelValue": _cache[36] || (_cache[36] = ($event) => $data.floorlotteryval1 = $event), + "onUpdate:modelValue": _cache[39] || (_cache[39] = ($event) => $data.floorlotteryval1 = $event), placeholder: "请输入总数" }, null, 512), [ [vue.vModelText, $data.floorlotteryval1] ]), vue.withDirectives(vue.createElementVNode("input", { type: "text", - "onUpdate:modelValue": _cache[37] || (_cache[37] = ($event) => $data.floorlotteryval2 = $event), + "onUpdate:modelValue": _cache[40] || (_cache[40] = ($event) => $data.floorlotteryval2 = $event), placeholder: "请输入抽取的数量" }, null, 512), [ [vue.vModelText, $data.floorlotteryval2] ]), vue.createElementVNode("button", { class: "btn save", - onClick: _cache[38] || (_cache[38] = (...args) => $options.drawRandomNumbers && $options.drawRandomNumbers(...args)) + onClick: _cache[41] || (_cache[41] = (...args) => $options.drawRandomNumbers && $options.drawRandomNumbers(...args)) }, "开始抽奖"), vue.createElementVNode("button", { class: "btn", style: { "background": "#979797" }, plain: "", - onClick: _cache[39] || (_cache[39] = (...args) => $options.closelotter && $options.closelotter(...args)) + onClick: _cache[42] || (_cache[42] = (...args) => $options.closelotter && $options.closelotter(...args)) }, " 关闭弹窗 "), _hoisted_25, $data.floorlotterloading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26, "正在抽奖...")) : vue.createCommentVNode("", true), diff --git a/package.json b/package.json index 9a7db0f..1256331 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "linuxdo-scripts", - "version": "0.3.32", + "version": "0.3.33", "author": "dlzmoe", "description": "An enhanced script for the linux.do forum", "type": "module", diff --git a/src/app.vue b/src/app.vue index bec8266..051ea5b 100644 --- a/src/app.vue +++ b/src/app.vue @@ -81,6 +81,12 @@