Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,12 @@

## 安装方法

* 方法1:使用 [插件列表查看](https://github.com/ltxhhz/LL-plugin-list-viewer) <br>
搜索 Can Can Need 然后安装选择 `使用仓库代码包`

* 方法2:下载release包,解压到插件目录<br>
### 方法1:下载release包,解压到插件目录
https://github.com/MapleRecall/LiteLoaderQQNT-CCND/releases

* 方法3: 插件目录下直接git clone 本项目<br>
`git clone https://github.com/MapleRecall/LiteLoaderQQNT-CCND.git`

## 字体混淆工具
[Font-Messer](https://github.com/MapleRecall/Font-Messer)(初期预览版)所有预设均可以在这里找到
### 方法2: 插件目录下直接git clone 本项目

`git clone https://github.com/MapleRecall/LiteLoaderQQNT-CCND.git`

## 纯CSS版本
https://github.com/MapleRecall/Transitio-user-css?#2-private-plus
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "CanCanNeed",
"slug": "CanCanNeed",
"description": "担心窥屏和社死?快来试试这个吧!还能方便界面演示和截图,美观实用,混沌有趣。",
"version": "0.3.0",
"version": "0.2.0",
"thumb":"./static/images/icon.svg",
"icon": "./static/images/icon.svg",
"authors": [
Expand All @@ -28,7 +28,7 @@
"repo": "MapleRecall/LiteLoaderQQNT-CCND",
"branch": "main",
"release": {
"tag": "0.3.0"
"tag": "0.2.0"
}
}
}
6 changes: 1 addition & 5 deletions src/scripts/renderer/initStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ async function updateClass(e) {
}
if (hash.includes("/contact")) {
waitForElement(".contact-layout__content-area").then((el) => el?.classList.toggle("ll-ccnd-peekable", config.peekOnContact));
waitForElement(".contact-layout__right-area").then((el) => el?.classList.toggle("ll-ccnd-peekable", config.peekOnAIO));
waitForElement(".contact-profile").then((el) => el?.classList.toggle("ll-ccnd-peekable", true));
}
}

if (hash.includes("#/forward") || hash.includes("#/record") ) {
waitForElement("#app").then((el) => el?.classList.toggle("ll-ccnd-peekable", config.peekOnAIO));
}
}
21 changes: 10 additions & 11 deletions src/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,13 @@
<setting-text data-type="secondary">选择你的喜欢的混淆风格</setting-text>
</div>
<setting-select class="selector" data-config="font">
<setting-option data-value="">✔️ 不混淆</setting-option>
<setting-option data-value="">不混淆</setting-option>
<setting-option data-value="Chaos" title="C H A O S">🌀 乱序映射</setting-option>
<setting-option data-value="KFC" title="🍟麦当劳">🍔 狂亂木曜日</setting-option>
<setting-option data-value="KunJinKao" title="AMD全责">🐞 锟斤拷烫囤</setting-option>
<setting-option data-value="Furry" title="😾小心福瑞控">🐶 ♡喵呜~汪oωo</setting-option>
<setting-option data-value="JP" title="全是片假名谁看得懂啊">🎏 君は日本_が本当に上手</setting-option>
<setting-option data-value="Geek" title="澤野弘之">💥 βios</setting-option>
<setting-option data-value="RUS" title="苏卡不列!">🍺 Сука блядь</setting-option>
<setting-option data-value="KunJinKao" title="AMD全责"> 锟斤拷</setting-option>
<setting-option data-value="Furry" title="😾小心福瑞控">战雷</setting-option>
<setting-option data-value="JP" title="片假名"> 異世界の伝説</setting-option>
<setting-option data-value="Geek" title="澤野弘之">[数据删除]</setting-option>
<setting-option data-value="EN">🌐 ENGILHS</setting-option>
</setting-select>
</setting-item>
Expand All @@ -58,14 +57,14 @@
<setting-text data-type="secondary">选择头像遮罩的样式</setting-text>
</div>
<setting-select class="selector" data-config="avatarStyle">
<setting-option data-value="0">不遮罩</setting-option>
<setting-option data-value="1">主色 - 清晰渐变</setting-option>
<setting-option data-value="2">主色 - 平缓渐变</setting-option>
<setting-option data-value="3">主色 - 清雅</setting-option>
<setting-option data-value="4">主色 - 标准</setting-option>
<setting-option data-value="5">棋盘 - 亮</setting-option>
<setting-option data-value="6">棋盘 - 暗</setting-option>
<setting-option data-value="7">彩虹 - 🌈</setting-option>
<setting-option data-value="8">无变化</setting-option>
</setting-select>
</setting-item>
<setting-item is-disabled>
Expand All @@ -89,21 +88,21 @@
<setting-list data-direction="column">
<setting-item>
<div>
<setting-text>快速概览主内容</setting-text>
<setting-text data-type="secondary">鼠标在右侧主内容区时还原内容,方便聊天和查看通知等</setting-text>
<setting-text>概览聊天框</setting-text>
<setting-text data-type="secondary">鼠标在聊天区内时还原全部消息,方便聊天</setting-text>
</div>
<setting-switch data-config="peekOnAIO"></setting-switch>
</setting-item>
<setting-item>
<div>
<setting-text>快速概览联系人</setting-text>
<setting-text>概览联系人</setting-text>
<setting-text data-type="secondary">鼠标在最近联系列表中时还原全部列表,方便选取</setting-text>
</div>
<setting-switch data-config="peekOnContact"></setting-switch>
</setting-item>
<setting-item>
<div>
<setting-text>快速概览窗口</setting-text>
<setting-text>概览窗口</setting-text>
<setting-text data-type="secondary">鼠标在窗口内时还原整个窗口,会覆盖上面两个的设置</setting-text>
</div>
<setting-switch data-config="peekOnBody"></setting-switch>
Expand Down
53 changes: 19 additions & 34 deletions src/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ body #app {
--avatar-mix-blend-mode: hard-light;

--image-opacity: 0.8;
--image-filter: blur(16px) saturate(1.25);
--image-filter: blur(10px) saturate(1.25);

&.ll-ccnd-perfmode {
--avatar-mask-opacity: 1;
Expand All @@ -31,16 +31,7 @@ body #app {
}
}

:is(
.text-ellipsis:not(.secondary-info),
.text-normal,
.msg-content-container,
.group-notice .content,
.gray-tip-action,
.card-extra__postscript,
.title-bar__content,
.group-profile
) {
:is(.text-ellipsis:not(.secondary-info), .text-normal, .msg-content-container, .group-notice .content, .gray-tip-action, .card-extra__postscript) {
font-family: "Messed Sans Pro", sans-serif;
animation: text-in-1 0.5s;

Expand All @@ -54,39 +45,25 @@ body #app {
.list-item,
.group-user,
.ml-item,
.recent-contact-item,
.sys-notify-card,
.record-msg-detail {
.sys-notify-card {
&:hover {
.text-ellipsis:not(.secondary-info),
.text-normal,
.msg-content-container,
.group-notice .content,
.gray-tip-action,
.card-extra__postscript,
.title-bar__content,
.group-profile {
.card-extra__postscript {
font-family: inherit;
animation: text-in-2 0.5s;
}
}
}

--avatar-mask-bg: none;

&[data-ccnd-avatar="0"] {
--avatar-mask-opacity: 0;
--avatar-filter: none;
--avatar-mix-blend-mode: normal;
}

&[data-ccnd-avatar="1"] {
--avatar-mask-bg: linear-gradient(
30deg,
hsl(from var(--brand_standard) h 40% 50% / var(--avatar-mask-opacity)) 48%,
hsl(from var(--brand_standard) h 30% 65% / var(--avatar-mask-opacity)) 52%
);
}
--avatar-mask-bg: linear-gradient(
30deg,
hsl(from var(--brand_standard) h 40% 50% / var(--avatar-mask-opacity)) 48%,
hsl(from var(--brand_standard) h 30% 65% / var(--avatar-mask-opacity)) 52%
);

&[data-ccnd-avatar="2"] {
--avatar-mask-bg: linear-gradient(
Expand Down Expand Up @@ -134,6 +111,14 @@ body #app {
filter: blur(2px);
}

&[data-ccnd-avatar="8"] .avatar::after {
--avatar-mask-bg: linear-gradient(30deg,
hsl(from var(--brand_standard) h 0% 0% / 0) 100%,
hsl(from var(--brand_standard) h 0% 0% / 0) 100%);
--avatar-mix-blend-mode: none;
--avatar-filter: blur(0px) saturate(1);
}

.avatar {
overflow: hidden;

Expand All @@ -150,15 +135,15 @@ body #app {
transition: 0.2s;
}

:is(.ll-ccnd-peekable, .list-item, .group-user, .ml-item, .recent-contact-item, .record-msg-detail):hover &,
:is(.ll-ccnd-peekable, .list-item, .group-user, .ml-item):hover &,
&:hover {
&::after {
opacity: 0;
}
}
}

&:not([data-ccnd-avatar="0"]) :is(.list-item, .group-user, .ml-item, .recent-contact-item, .record-msg-detail) {
:is(.list-item, .group-user, .ml-item, .recent-contact-item) {
&:nth-child(n) {
.avatar {
filter: hue-rotate(-30deg);
Expand Down
Binary file modified static/fonts/Chaos.woff2
Binary file not shown.
Binary file modified static/fonts/EN.woff2
Binary file not shown.
Binary file added static/fonts/Furry - 副本.woff2
Binary file not shown.
Binary file modified static/fonts/Furry.woff2
Binary file not shown.
Binary file added static/fonts/Geek - 副本.woff2
Binary file not shown.
Binary file modified static/fonts/Geek.woff2
Binary file not shown.
Binary file modified static/fonts/JP.woff2
Binary file not shown.
Binary file modified static/fonts/KFC.woff2
Binary file not shown.
Binary file modified static/fonts/KunJinKao.woff2
Binary file not shown.
Binary file modified static/fonts/RUS.woff2
Binary file not shown.
Binary file added static/fonts/ipag.ttf
Binary file not shown.