| 1 | #about-container |
| 2 | section.top-section |
| 3 | .top-content |
| 4 | .float-texts |
| 5 | each text, index in site.data.about.top_info.float_text.slice(0, 4) |
| 6 | .float-text(class=`float-text-${index + 1}`) #{text} |
| 7 | .avatar-container |
| 8 | img.no-lightbox.avatar(src=url_for(site.data.about.top_info.avatar) onerror=`this.onerror=null;this.src='` + url_for(theme.error_img.flink) + `'` alt="") |
| 9 | .float-texts |
| 10 | each text, index in site.data.about.top_info.float_text.slice(4, 8) |
| 1 | const goComment = (e) => { |
| 2 | const n = document.querySelector(".el-textarea__inner"); |
| 3 | n.value = `> ${e}\n\n`; |
| 4 | n.focus(); |
| 5 | btf.snackbarShow("已为您引用该说说,不删除空格效果更佳"); |
| 6 | }; |
| 7 | |
| 8 | // 如果是twikoo评论区,请自行替换goComment函数,注意,如果评论区开了懒加载可能导致无法找到元素。 |
LiuShen / Mihomo Party 覆写整理脚本
0 likes
0 forks
1 files
Last active 1 month ago
Mihomo Party 覆写整理脚本,整合资源,实现更完整的分组,多订阅共享
| 1 | // Define the `main` function |
| 2 | |
| 3 | const proxyName = "代理模式"; |
| 4 | |
| 5 | function main (params) { |
| 6 | if (!params.proxies) return params; |
| 7 | overwriteRules (params); |
| 8 | overwriteProxyGroups (params); |
| 9 | overwriteDns (params); |
| 10 | return params; |