<?xml version='1.0' encoding='UTF-8'?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0"><channel><title>无用功</title><link>https://g.weich.ee</link><description>没有用功努力,不做没用的功!
永久真实地址：weich22.github.io
Gmeek群: 308721893</description><copyright>无用功</copyright><docs>http://www.rssboard.org/rss-specification</docs><generator>python-feedgen</generator><image><url>https://cravatar.cn/avatar/07f9694a26b56e006bfd6dc3defef644</url><title>avatar</title><link>https://g.weich.ee</link></image><lastBuildDate>Mon, 06 Apr 2026 19:54:02 +0000</lastBuildDate><managingEditor>无用功</managingEditor><ttl>60</ttl><webMaster>无用功</webMaster><item><title>s100偷梁换柱隐藏后台任务卡片显示</title><link>https://g.weich.ee/post/36.html</link><description>S100（或其他华强北 Android 9 手表）特有的双任务管理器冲突 Bug！
这种“双重锁定”确实是一个非常精妙的逻辑漏洞。</description><guid isPermaLink="true">https://g.weich.ee/post/36.html</guid><pubDate>Sat, 28 Mar 2026 04:55:12 +0000</pubDate></item><item><title>Gmeek的config.json换行/n格式无效</title><link>https://g.weich.ee/post/35.html</link><description>
config.json是Gmeek的配置文件，用的json格式，json格式非常严格，多一个或者少一个标点符号都会报错，然后Actions编译报错红色×。</description><guid isPermaLink="true">https://g.weich.ee/post/35.html</guid><pubDate>Thu, 19 Mar 2026 19:27:54 +0000</pubDate></item><item><title>github的APK无法登陆</title><link>https://g.weich.ee/post/34.html</link><description>### 解决办法
将手机默认浏览器临时改为 Edge ，就这么简单…

### 症状
由于之前我的手机默认浏览器是via浏览器，每次点击github的客户端，然后打开到via浏览器之后登陆，提示外部应用打开再再跳转到github客户端就没有反应了，总之就是跳转的浏览器有问题，实在不行，就换别的大厂浏览器设置为默认浏览器之后再试试。</description><guid isPermaLink="true">https://g.weich.ee/post/34.html</guid><pubDate>Wed, 18 Mar 2026 01:40:43 +0000</pubDate></item><item><title>华强北手表s100更新后蓝牙无媒体声音</title><link>https://g.weich.ee/post/33.html</link><description>更新的版本：
DW_W527_FW13FBAV35_XTQ_S100_J0_GB_CN
ZX_W4.0T_4.4V_256X24B_CN_480X480_V02_20260310_0319_20260310-0321


媒体声音是指播放视频或者音乐蓝牙耳机都没有声音，声音从外放播放出来的…

默认的“硬件卸载”解码逻辑和耳机对不上，打开  `“停用蓝牙 A2DP 硬件卸载”`   强制让系统通过软件解码，路径一下就通了。</description><guid isPermaLink="true">https://g.weich.ee/post/33.html</guid><pubDate>Mon, 16 Mar 2026 04:46:36 +0000</pubDate></item><item><title>Gmeek响应式优化布局主题</title><link>https://g.weich.ee/post/32.html</link><description>### 小屏居中

![Gmeek 响应式居中优化布局](https://weich22.github.io/imagesw/S6031609224196.webp)

版本 A：经典居中限宽版 (Max-Width 1000px)
​特点：保留了 1000px 的最大宽度限制，在大屏上会保持居中长条状，视觉重心更集中，适合文字阅读。</description><guid isPermaLink="true">https://g.weich.ee/post/32.html</guid><pubDate>Sun, 15 Mar 2026 19:27:48 +0000</pubDate></item><item><title>Gmeek顶部适配悬浮毛玻璃自应式黑暗模式</title><link>https://g.weich.ee/post/31.html</link><description>```dos
/* --- A线程：全屏贯穿+自动适配明暗模式的导航栏 --- */
#header {
    /* 1. 基础布局：强制全屏贯穿 */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 65px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 20px !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important; /* 让颜色切换更丝滑 */
    
    /* 2. 默认明亮模式样式 (白色毛玻璃) */
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

/* --- 3. 核心：黑暗模式适配 --- */
/* 当 Gmeek 检测到黑暗模式时，会自动给 html 加上这个属性 */
[data-color-mode='dark'] #header {
    background: rgba(13, 17, 23, 0.8) !important; /* 深黑色半透明 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

/* 黑暗模式下的文字和图标颜色微调 */
[data-color-mode='dark'] .blogTitle, 
[data-color-mode='dark'] .title-right {
    color: #f0f6fc !important;
}

/* --- 4. 解决遮挡问题 --- */
/* 确保文章内容向下移动，不被固定的导航栏挡住 */
#content, .main {
    margin-top: 85px !important;
}

```

### 更新修复长标题溢出

替换全部css

```dos
/* --- A 线程：全屏毛玻璃悬浮 (由 B 线程布局优化) --- */
#header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-height: 65px !important;
    height: auto !important;
    /* 核心视觉：A 线程的毛玻璃 */
    background: rgba(255,255,255,0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
    /* 核心布局：B 线程的 Flex 避让，彻底甩掉 JS */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
}

/* 黑暗模式：保持 A 线程的通透感 */
[data-color-mode='dark'] #header {
    background: rgba(13,17,23,0.7) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

/* 标题逻辑：支持换行且不挤压按钮 */
.blogTitle, .postTitle {
    display: block !important;
    font-size: clamp(18px, 5vw, 24px) !important;
    font-weight: bold !important;
    color: #24292f !important;
    text-decoration: none !important;
    word-break: break-all !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    flex: 1 !important;
    padding-right: 15px !important;
}

[data-color-mode='dark'] .blogTitle, [data-color-mode='dark'] .postTitle {
    color: #adbac7 !important;
}

/* 按钮组：靠 CSS 守住右侧，不位移 */
.title-right {
    display: flex !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
    z-index: 10000 !important;
}

/* 内容区：移除所有 B 线程的边框窗口效果，回归纯净布局 */
#content, .main {
    margin: 85px auto 0 auto !important;
    padding: 0 20px !important;
    width: auto !important;
    max-width: 900px !important;
    background: transparent !important; /* 移除 B 的白背景 */
    border: none !important; /* 彻底移除 B 的边框线 */
}

.subTitle, .SideNav-icon { display: none !important; }

```


第二个版本css要用的话也是全部替换，差不多的，最大区别就是去除了多余宽度限制大小。</description><guid isPermaLink="true">https://g.weich.ee/post/31.html</guid><pubDate>Sun, 15 Mar 2026 16:30:04 +0000</pubDate></item><item><title>Gmeek根据标签背景颜色更改标签字体颜色</title><link>https://g.weich.ee/post/30.html</link><description> ### 全局引用js

```+js
(function() {

function getAdaptiveColor(bg) {

const rgb = bg.match(/\d+/g);

if (!rgb || rgb.length &lt; 3) return '#ffffff';

const [r, g, b] = rgb.map(Number);

const l = (0.299 * r + 0.587 * g + 0.114 * b) / 255;

return l &gt; 0.6 ? '#000000' : '#ffffff';

}


function syncLabelColorsOnly() {

// 仅抓取标签相关的类名

const selectors = '.Label, .LabelName, .post-tag, .listLabels span';

document.querySelectorAll(selectors).forEach(el =&gt; {

try {

// 读取背景

let bg = window.getComputedStyle(el).backgroundColor;

if (bg === 'rgba(0, 0, 0, 0)' || bg === 'transparent') {

bg = window.getComputedStyle(el.parentElement).backgroundColor;

}


if (bg &amp;&amp; bg !== 'transparent' &amp;&amp; bg !== 'rgba(0, 0, 0, 0)') {

const fg = getAdaptiveColor(bg);

// 精准定位文字容器

const target = (el.tagName === 'A') ? el : (el.querySelector('a') || el);

// 只修改颜色和阴影，不修改任何布局相关的 style 属性

if (target &amp;&amp; target.style) {

target.style.setProperty('color', fg, 'important');

target.style.setProperty('text-shadow', 'none', 'important');

}

}

} catch (e) {}

});

}


// 初始与定时执行（定时是为了兼容搜索页动态生成的标签）

syncLabelColorsOnly();

setInterval(syncLabelColorsOnly, 1500);


// 监听暗黑模式切换

const observer = new MutationObserver(syncLabelColorsOnly);

observer.observe(document.documentElement, { attributes: true, attributeFilter: ['data-color-mode'] });

})();
```


1.这个JS对哪些页面生效?
由于在 Gmeek 中将其作为'全局引用JS'添加,它理论上会对全站生效。</description><guid isPermaLink="true">https://g.weich.ee/post/30.html</guid><pubDate>Fri, 13 Mar 2026 21:16:02 +0000</pubDate></item><item><title>80后时代火爆歌单</title><link>https://g.weich.ee/post/29.html</link><description>1.一场游戏一场梦 王杰
2.我只在乎你 邓丽君
3. 大约在冬季 齐秦
4. 粉红色的回忆 韩宝仪
5. 让一切随风 钟镇涛
6. 倩女幽魂 张国荣
9. 大地  beyond
10. 忘了你忘了我 王杰
11. 恋曲1990 罗大佑
12.沉默是金 张国荣
13.祝福 叶倩文
14. 再回到从前 张镐哲
15.千千阙歌 陈慧娴
16.梦醒时分 陈淑桦
17.谁明浪子心 王杰
18.再回首 姜育恒
19.一生不变 李克勤
20.让我一次爱个够 庾澄庆
21.难得有情人 关淑怡
22.真的爱你 beyond
23.特别的爱给特别的你 伍思凯
24.追梦人 凤飞飞
25.相思风雨中 张学友
26.半点心 草蜢
27.光辉岁月 beyond
28.最远的你是我最近的爱 车继铃
29.沧海一声笑 许冠杰
30.潇洒走一回 叶倩文
31.男儿当自强 林子祥
32.不再犹豫 beyond
33.今夜你会不会来 黎明
34.似是故人来 梅艳芳
35.初恋情人 刘小慧
36.一起走过的日子 刘德华
37.爱 小虎队
38.千年等一回 高胜美
39.大海 张雨生
40.水手 郑智化
41.容易受伤的女人 王靖雯
42.选择 林子祥 叶倩文
43.红日 李克勤
44.当爱已成往事 林忆莲
45.新鸳鸯蝴蝶梦 黄安
46.爱如潮水 张信哲
47.最爱 周慧敏
48.你的柔情我永远不懂 陈琳
49.风中有朵雨做的云 孟庭苇
50.小芳 李春波 四大村花。</description><guid isPermaLink="true">https://g.weich.ee/post/29.html</guid><pubDate>Fri, 13 Mar 2026 19:02:42 +0000</pubDate></item><item><title>90后时代火爆全网的歌单</title><link>https://g.weich.ee/post/28.html</link><description>天下～张杰
丁香花
秋天不回来
老鼠爱大米
两只蝴蝶
老人与海
等一分钟
一万个理由
生日礼物
该死的温柔
天使的翅膀
求佛
放生
让泪化作相思雨
香水有毒
孤单北半球
I miss you
QQ爱
寂寞才说爱
愚爱
那一夜
爱情码头
三国恋
放开
客官不可以
有一种爱叫做放手
等你等了那么久
分手在那个秋天
回心转意
被伤过的心还可以爱谁
断点
想太多
我爱他
曾经最美
下辈子如果还记得你
你把爱情给了谁
你到底爱谁
爱情买卖
心痛2009
飞舞
犯错
别说我的眼泪无所谓
爱死了昨天
擦肩而过
感动天感动地
哥只是个传说
那女孩对我说
亲爱的你怎么不在我身边
最后一次的温柔
不是因为寂寞才想你
有点甜
素颜
不要用我的爱来伤害我
一个人的寂寞两个人的错
痛彻心扉
爱上你是一个错
外滩十八号
有没有人告诉你
错错错
2002年的第一场雪。</description><guid isPermaLink="true">https://g.weich.ee/post/28.html</guid><pubDate>Fri, 13 Mar 2026 18:52:42 +0000</pubDate></item><item><title>华强北s100手表关闭解/锁屏声音指纹/解锁屏输入密码振动</title><link>https://g.weich.ee/post/27.html</link><description>

因为华强北s100手表就是安卓9的，差不多通用的，就一些什么魔改太多的系统那些可能用不了这些命令。</description><guid isPermaLink="true">https://g.weich.ee/post/27.html</guid><pubDate>Fri, 13 Mar 2026 14:18:10 +0000</pubDate></item><item><title>Gmeek文章页面显示上下文章链接和日期</title><link>https://g.weich.ee/post/26.html</link><description>### 1.代码的核心作用
这段代码的主要任务是为你的每一篇文章自动生成'页脚组件”,包含两个功能:
·发布日期:从系统数据中提取精准的发布时间。</description><guid isPermaLink="true">https://g.weich.ee/post/26.html</guid><pubDate>Fri, 13 Mar 2026 01:46:08 +0000</pubDate></item><item><title>华强北s100手表关闭正在应用上层显示通知</title><link>https://g.weich.ee/post/25.html</link><description>
noEmie os手表（糯米系统），w527处理器。</description><guid isPermaLink="true">https://g.weich.ee/post/25.html</guid><pubDate>Thu, 12 Mar 2026 22:24:21 +0000</pubDate></item><item><title>华强北s100手表桌面图标拖动排序</title><link>https://g.weich.ee/post/24.html</link><description>打开 ～设置，～个性设置，～桌面切换，选择：～`经典桌面` 就可以回到桌面拖动图标了，然后你已经拖动的图标排序，再次 ～设置桌面 切换 到 ～手机桌面 你拖动调整的图标还是你设置好的布局。</description><guid isPermaLink="true">https://g.weich.ee/post/24.html</guid><pubDate>Thu, 12 Mar 2026 22:22:59 +0000</pubDate></item><item><title>华强北s100手表悬浮呼出应用快捷方式</title><link>https://g.weich.ee/post/23.html</link><description>w527处理器，安卓，noEmie os手表（糯米os）理论上这些是通用。</description><guid isPermaLink="true">https://g.weich.ee/post/23.html</guid><pubDate>Thu, 12 Mar 2026 15:17:04 +0000</pubDate></item><item><title>华强北手表s100无法连接蓝牙耳机</title><link>https://g.weich.ee/post/22.html</link><description>华强北手表s100无法连接蓝牙耳机（从手表里面看蓝牙耳机里面只有 共享联系人），但是可以连接手机（从手表里面查看链接的手机里面共享类和蓝牙耳机一样有 共享媒体 那些），即使手表用新设备方式链接蓝牙耳机，也是和蓝牙耳机秒断开的，死活链接不上蓝牙耳机，去手表设置里面恢复重置网络和蓝牙出厂设置都没用，重启也是没用。</description><guid isPermaLink="true">https://g.weich.ee/post/22.html</guid><pubDate>Thu, 12 Mar 2026 11:54:24 +0000</pubDate></item><item><title>魅族22的EnergyRing配置文件</title><link>https://g.weich.ee/post/21.html</link><description>energyring电量指示环是一款非常火的电量显示类软件，相较于同类型的软件来说更加的智能，在全屏的时候能够主动的为你进行隐藏，在显示之时能够替换掉你手机当中的电量显示图标。</description><guid isPermaLink="true">https://g.weich.ee/post/21.html</guid><pubDate>Thu, 12 Mar 2026 00:16:03 +0000</pubDate></item><item><title>全平台编程语言全生态汇总 (2026 完整版)</title><link>https://g.weich.ee/post/20.html</link><description>### 全平台编程/标记语言全生态汇总 (2026 完整版)

### 一、移动端开发（安卓 / iOS / 跨平台）

#### Java
* **特点**：安卓开发的“常青树”。</description><guid isPermaLink="true">https://g.weich.ee/post/20.html</guid><pubDate>Wed, 11 Mar 2026 22:44:37 +0000</pubDate></item><item><title>中文编程语言全生态汇总（2026 完整版）</title><link>https://g.weich.ee/post/19.html</link><description>
中文编程语言全生态汇总（2026 完整版）
本汇总涵盖了目前活跃在移动端、桌面端、物联网及教育领域的中文编程工具，旨在为开发者提供全方位的参考。</description><guid isPermaLink="true">https://g.weich.ee/post/19.html</guid><pubDate>Wed, 11 Mar 2026 22:06:05 +0000</pubDate></item><item><title>闪念微语之关键词</title><link>https://g.weich.ee/post/18.html</link><description>### 编程开发
蓝鸟 微鸟 易安卓 E4A Gmeek iApp AIDE Fusion app ALua 结绳 Kotlin GDScript  VcnStudio scrcpy

### 电影
铁罗汉 海王的游戏。</description><guid isPermaLink="true">https://g.weich.ee/post/18.html</guid><pubDate>Wed, 11 Mar 2026 21:27:36 +0000</pubDate></item><item><title>华强北s100手表各种代码和打开开发者选项</title><link>https://g.weich.ee/post/17.html</link><description>鑫泰奇S100华强北插卡阔屏手表处理器是紫光展锐w527。</description><guid isPermaLink="true">https://g.weich.ee/post/17.html</guid><pubDate>Wed, 11 Mar 2026 18:39:01 +0000</pubDate></item><item><title>华强北带红外遥控智能手表s100</title><link>https://g.weich.ee/post/16.html</link><description>### 配置功能：

以下实测系统版本是V35版本，我都后悔更新了。</description><guid isPermaLink="true">https://g.weich.ee/post/16.html</guid><pubDate>Wed, 11 Mar 2026 17:54:19 +0000</pubDate></item><item><title>给Gmeek文章列表添加悬停(Hover)特效</title><link>https://g.weich.ee/post/15.html</link><description>```+css
/* 1. 设置文章条目的基础样式，准备过渡 */
.SideNav-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-left: 3px solid transparent !important; /* 预留左侧边框位 */
    background-color: transparent !important;
    border-radius: 6px !important;
    margin-bottom: 4px !important;
}

/* 2. 悬停时的浮起效果 */
.SideNav-item:hover {
    background-color: rgba(2, 122, 255, 0.05) !important; /* 极淡的蓝色背景 */
    transform: translateX(5px); /* 向右轻微平移，产生“被点中”的动感 */
    border-left: 3px solid #027aff !important; /* 左侧亮起主题蓝 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* 淡淡的投影，产生浮起感 */
}
```


·非对称动效:通过translatex(5px)而不是简单的放大,视觉上会有一种'列表项向你招手'的感觉,非常符合阅读习惯。</description><guid isPermaLink="true">https://g.weich.ee/post/15.html</guid><pubDate>Fri, 06 Mar 2026 12:59:55 +0000</pubDate></item><item><title>Github Pages查看已用存储空间</title><link>https://g.weich.ee/post/14.html</link><description>因为每个Github Pages给的空间好像是1g的，拿来写博客难免会有可能满的时候。</description><guid isPermaLink="true">https://g.weich.ee/post/14.html</guid><pubDate>Thu, 05 Mar 2026 05:38:09 +0000</pubDate></item><item><title>壹号本3安装linux之Winux</title><link>https://g.weich.ee/post/13.html</link><description>
 ### Ventoy启动盘制作

下载Ventoy的win版本
[Ventoy官网](https:// 'https://www.ventoy.net/cn/download.html')

 u盘用Ventoy 在win系统上面刻录启动，把Winux的系统包放在 Ventoy 的文件夹内。</description><guid isPermaLink="true">https://g.weich.ee/post/13.html</guid><pubDate>Wed, 04 Mar 2026 18:08:01 +0000</pubDate></item><item><title>移植prismjs代码高亮后修改右上角的copy为中文复制</title><link>https://g.weich.ee/post/12.html</link><description>
### 简约版本

简约版本会生效，但是样式效果不太好而已，比如鼠标划过文字不会变色，文字不居中而已。</description><guid isPermaLink="true">https://g.weich.ee/post/12.html</guid><pubDate>Thu, 26 Feb 2026 14:14:17 +0000</pubDate></item><item><title>给Gmmek标签页面添加选中标签效果</title><link>https://g.weich.ee/post/11.html</link><description>### 标签带有空格无效

```+js
document.addEventListener('DOMContentLoaded', function() {
  const tagButtons = document.querySelectorAll('button.Label');

  tagButtons.forEach(button =&gt; {
    button.addEventListener('click', function() {
      // 先恢复所有标签的 padding
      tagButtons.forEach(btn =&gt; {
        btn.style.padding = '4px';
      });
      // 再移除当前点击标签的 padding
      this.style.padding = '0';
    });
  });
});

```
### 空格无效版带调试信息

包含f12控制台调试信息输出，因为我发现标签有空格的会没有效果，和上面的差不多，多了调试脚本，未到匹配的…

```+js
// 页面加载完成后执行
document.addEventListener('DOMContentLoaded', function() {
  console.log('脚本已加载');

  // 保存原始函数
  if (window.updateShowTag) {
    const originalUpdateShowTag = window.updateShowTag;

    // 重写函数
    window.updateShowTag = function(tag) {
      console.log('updateShowTag 被调用，参数：', tag);
      
      // 先执行原来的逻辑
      originalUpdateShowTag(tag);

      // 选择所有标签按钮
      const tagButtons = document.querySelectorAll('button.Label');
      console.log('找到的标签数量：', tagButtons.length);

      // 恢复所有标签的 padding
      tagButtons.forEach(btn =&gt; {
        btn.style.padding = '4px';
        console.log('恢复 padding: ', btn.textContent.trim());
      });

      // 找到当前点击的标签
      const activeTag = Array.from(tagButtons).find(btn =&gt; {
        const btnText = btn.textContent.trim().split(/\s+/)[0];
        return btnText === tag;
      });

      if (activeTag) {
        activeTag.style.padding = '0';
        console.log('设置 padding: 0 给：', activeTag.textContent.trim());
      } else {
        console.log('未找到匹配的标签：', tag);
      }
    }

    // 页面加载时，根据 URL hash 自动激活对应标签
    const currentHash = window.location.hash.substring(1);
    if (currentHash) {
      console.log('检测到 hash：', currentHash);
      window.updateShowTag(currentHash);
    }
  } else {
    console.error('未找到 updateShowTag 函数！');
  }
});

```

### 全部有效版，空格也有效

这个版本所有页面监听点击事件，就是说你从别的页面点击过来也是有效果的，但是我感觉会不会浪费性能…

```+js
(function() {
  'use strict';

  setTimeout(function() {
    const tagButtons = document.querySelectorAll('button.Label');

    if (tagButtons.length === 0) return;

    tagButtons.forEach(button =&gt; {
      button.addEventListener('click', function() {
        tagButtons.forEach(btn =&gt; {
          btn.style.setProperty('padding', '4px', 'important');
        });
        this.style.setProperty('padding', '0', 'important');
      });
    });

    const currentHash = decodeURIComponent(window.location.hash.substring(1));
    if (currentHash) {
      const activeTag = Array.from(tagButtons).find(btn =&gt; 
        btn.textContent.trim().includes(currentHash.trim())
      );
      if (activeTag) {
        activeTag.style.setProperty('padding', '0', 'important');
      }
    }
  }, 1000);
})();

```



### 全部有效包含调试脚本版

```+js
// 调试版：带详细日志，用于定位问题
(function() {
  'use strict';

  // 延迟执行，确保 DOM 加载完成
  setTimeout(function() {
    console.log('=== 标签选中调试脚本开始 ===');

    // 1. 查找所有标签按钮
    const tagButtons = document.querySelectorAll('button.Label');
    console.log('找到的标签按钮数量:', tagButtons.length);

    if (tagButtons.length === 0) {
      console.error('未找到任何 button.Label 元素！');
      console.log('页面中所有 button 元素:', document.querySelectorAll('button'));
      return;
    }

    // 2. 为每个按钮绑定点击事件
    tagButtons.forEach((button, index) =&gt; {
      button.addEventListener('click', function() {
        console.log(`按钮 #${index} 被点击:`, this.textContent.trim());

        // 先恢复所有按钮的 padding
        tagButtons.forEach((btn, i) =&gt; {
          btn.style.setProperty('padding', '4px', 'important');
          console.log(`恢复按钮 #${i} 的 padding`);
        });

        // 再移除当前按钮的 padding
        this.style.setProperty('padding', '0', 'important');
        console.log(`移除按钮 #${index} 的 padding`);
      });
    });

    // 3. 页面加载时，根据 URL hash 自动激活对应标签
    const currentHash = decodeURIComponent(window.location.hash.substring(1));
    console.log('当前 URL hash:', currentHash);

    if (currentHash) {
      const activeTag = Array.from(tagButtons).find((btn, i) =&gt; {
        const btnText = btn.textContent.trim();
        const match = btnText.includes(currentHash.trim());
        console.log(`匹配按钮 #${i}: '${btnText}' 包含 '${currentHash}'?`, match);
        return match;
      });

      if (activeTag) {
        activeTag.style.setProperty('padding', '0', 'important');
        console.log('自动激活标签:', activeTag.textContent.trim());
      } else {
        console.warn('未找到与 hash 匹配的标签');
      }
    }

    console.log('=== 标签选中调试脚本加载完成 ===');
  }, 1000); // 延迟1秒，确保所有DOM都加载好
})();

```

### 最终版本仅tag.html页面
这个版本从别的页面点击过来也是有效果的，刷新也是有效果的，具体还有什么BUG的话，麻烦提交评论给我。</description><guid isPermaLink="true">https://g.weich.ee/post/11.html</guid><pubDate>Wed, 25 Feb 2026 20:32:12 +0000</pubDate></item><item><title>给win10桌面创建网络连接中心创建桌面快捷方式</title><link>https://g.weich.ee/post/10.html</link><description>其实就是win系统的 `更改适配器选项` 这个选项打开就是 `网络连接` 。</description><guid isPermaLink="true">https://g.weich.ee/post/10.html</guid><pubDate>Wed, 25 Feb 2026 17:04:40 +0000</pubDate></item><item><title>Gmeek友情链接显示备注标题</title><link>https://g.weich.ee/post/9.html</link><description>也就是Markdown超链接的title标题拿来当备注显示…
链接title是当鼠标悬停在链接上时会出现的文字，这个title是可选的，它放在圆括号中链接地址后面，跟链接地址之间以空格分隔，如下：

```+Markdown
[无用功](https://weich22.github.io '没有用功努力，不做没用的功')。</description><guid isPermaLink="true">https://g.weich.ee/post/9.html</guid><pubDate>Tue, 24 Feb 2026 14:05:11 +0000</pubDate></item><item><title>Gmeek移植基于prismjs代码语法高亮</title><link>https://g.weich.ee/post/8.html</link><description>Typecho的CodeHighlighter基于 prismjs 的代码语法高亮插件如何移植到基于github用Gmeek做的博客用。</description><guid isPermaLink="true">https://g.weich.ee/post/8.html</guid><pubDate>Sun, 22 Feb 2026 06:43:44 +0000</pubDate></item><item><title>Gmeek图片缓存</title><link>https://g.weich.ee/post/7.html</link><description>原因是Gmeek在Issues里面写文章底部有个可以上传图片的，直接上传的话，文章图片链接是github.com开头的，容易抽风。</description><guid isPermaLink="true">https://g.weich.ee/post/7.html</guid><pubDate>Sat, 21 Feb 2026 18:35:10 +0000</pubDate></item><item><title>Gmeek文章页和友情页外部链接新窗口打开</title><link>https://g.weich.ee/post/6.html</link><description>### 没有排除链接
```+js
// ======================================================
// 外部链接新窗口打开（文章页 post/ + 友情页 link.html）
// ======================================================
document.addEventListener('DOMContentLoaded', function () {
  const currentHost = window.location.host;
  const path = window.location.pathname;
  const needPage = path.startsWith('/post/') || path === '/link.html';

  if (needPage) {
    document.querySelectorAll('a').forEach(link =&gt; {
      if (!link.href || link.href.startsWith('javascript:')) return;
      try {
        const url = new URL(link.href);
        if (url.host !== currentHost) {
          link.target = '_blank';
          link.rel = 'noopener noreferrer';
        }
      } catch (e) {}
    });
  }
});
// ====================== 结束 ==========================

```

### 带排除链接

```+js
// ======================================================
// 文章页+友情页：外部链接新窗口打开（排除自己主页）
// ======================================================
document.addEventListener('DOMContentLoaded', function () {
  const currentHost = window.location.host;
  const path = window.location.pathname;
  const needPage = path.startsWith('/post/') || path === '/link.html';

  // 只排除【旧GitHub域名】，其他都正常判断
  const excludeHosts = [
    'xxxx.github.io'  // 这里只写你原来的 github 域名
  ];

  if (needPage) {
    document.querySelectorAll('a').forEach(link =&gt; {
      if (!link.href || link.href.startsWith('javascript:')) return;
      try {
        const url = new URL(link.href);
        const isExternal = url.host !== currentHost;
        const isExcluded = excludeHosts.some(h =&gt; url.host.includes(h));

        if (isExternal &amp;&amp; !isExcluded) {
          link.target = '_blank';
          link.rel = 'noopener noreferrer';
        }
      } catch (e) {}
    });
  }
});
// ====================== 结束 ==========================

```
直接放到你的博客已经引用的一个js文件里面去，打开js文件编写，放到最后面去，js文件不用script标签，多个js放到一个js文件里面去会少请求一个链接，网站性能会优化好一点，你可以单独另外创建一个JS文件直接放进去，然后引用链接到Gmeek的config.json配置文件里面去，比如：[Gmeek博客资源文件引用](https://g.weich.ee/post/1.html#资源链接引用方式推荐)。</description><guid isPermaLink="true">https://g.weich.ee/post/6.html</guid><pubDate>Fri, 20 Feb 2026 21:45:57 +0000</pubDate></item><item><title>p40显卡在win系统用amd核显输出游戏卡屏</title><link>https://g.weich.ee/post/5.html</link><description>p40显卡在win系统用amd核显输出游戏卡屏，比如玩LOL一半突然卡屏切换出去别的软件或者桌面，马上切换回来又好了，通过cmd命令限制功耗到160w改善不明显，最后去设置amd显卡面板里面的输入延时关闭后好了很多，但还是没有完全好，LOL游戏无边框模式我也开了。</description><guid isPermaLink="true">https://g.weich.ee/post/5.html</guid><pubDate>Tue, 17 Feb 2026 21:42:47 +0000</pubDate></item><item><title>notepad++如何更改光标模式</title><link>https://g.weich.ee/post/4.html</link><description>Notepad++有两种光标模式,切换和自定义都很简单

快速切换插入/改写模式(最常用)
键盘Insert键(Ins)：一键切换

### 光标是竖线
插入模式(INS)：光标是竖线 | 输入文字会向后挤，不覆盖原有内容。</description><guid isPermaLink="true">https://g.weich.ee/post/4.html</guid><pubDate>Thu, 12 Feb 2026 16:17:17 +0000</pubDate></item><item><title>GitHub Pages 绑定自定义域名</title><link>https://g.weich.ee/post/3.html</link><description>### 域名CNAME解析
在你购买域名的地方（运营商），子域名或者主域名（你用哪个就解析那个）解析做CNAME记录到你原来的Github Pages域名（一般都是你github用户名加.github.io，比如：xxx.github.io，xxx是你的github用户，除非你之前申请的是后面有仓库名，是哪个就绑定那个）。</description><guid isPermaLink="true">https://g.weich.ee/post/3.html</guid><pubDate>Mon, 09 Feb 2026 20:46:06 +0000</pubDate></item><item><title>Gmeek记录篇</title><link>https://g.weich.ee/post/1.html</link><description>
### Gmeek预览图：

![Gmeek首页预览图](https://weich22.github.io/imagesw/Image1772784593563.jpg)

### 自定义优化首页CSS
添加代码到config.json，请删除我写的中文和括号

```+css
'indexStyle':'&lt;style&gt;a.blogTitle {display: inline-block !important;}【优化手机端不显示博客顶部LOGO文字】.d-flex {display: inline-block !important;}【调节文章标签到文章下】.Label, .label {line-height: 12px !important;}【文章标签背景颜色框缩小一点】.LabelTime {display: inline-block !important;}【调节文章标签到手机显示不全或者不显示后面的日期】&lt;/style&gt;',
```


不限制博客首页最大宽度，直接添加在上面的&lt;/style&gt;标签内

```css
body {max-width: initial !important;}
```



不限制文章页面最大宽度
```css
'style':'&lt;style&gt;body {max-width: initial !important;}&lt;/style&gt;',
```

更新：后面我发现我需要是全局修改，于是我直接把代码统一整合写的到一个css文件里面去

```+css
body {max-width: initial !important;}
a.blogTitle {display: inline-block !important;}/*优化手机端不显示博客顶部LOGO文字*/
.d-flex {display: inline-block !important;}/*调节文章标签到文章下*/
.Label, .label {line-height: 12px !important;}/*文章标签背景颜色框缩小一点*/
.LabelTime {display: inline-block !important;}/*调节文章标签到手机显示不全或者不显示后面的日期*/
```



然后上传到`static/assets/`文件夹内再添加代码到config.json引用就好了。</description><guid isPermaLink="true">https://g.weich.ee/post/1.html</guid><pubDate>Fri, 06 Feb 2026 13:42:55 +0000</pubDate></item><item><title>网址</title><link>https://g.weich.ee/link.html</link><description>### 网站集合：
🔗[极客日志](http://weich.ee)  🔗[stripchat](http://stripchat.ee) 🔗[萤火虫资源站](https://www.yhcres.top '安卓刷机等资源') 🔗[Mozilla](https://developer.mozilla.org/zh-CN/docs/Web) 🔗[小众软件](https://www.appinn.com) 🔗[gitblog](https://blog.yihong0618.me '在github写博客') 🔗[Loot Drop](https://www.loot-drop.io '创业墓地失败案例') 🔗[凹凸工坊](https://www.autohanding.com '在线生成手写') 🔗[Mathigon](https://mathigon.org '数学互动') 👨‍🍳[食用手册](https://cook.yunyoujun.cn '选一个食材做菜') 👨‍💻[freelancer](https://www.freelancer.cn '全球线上威客工作') 🔗[Wayback Machine](https://web.archive.org '建站历史镜像档案') 🔗[auto catalog archive](https://autocatalogarchive.com '汽车手册') 🔗[BIODIGITAL](https://www.biodigital.com '免费的3D看清全身器官')

### 在线工具：
🕸️[二维码解码器](https://cli.im/deqr)  🕸️[三合一收款码生成](https://www.rocschool.com/tool/qr/) 🐳[DeepSeek网页版](https://chat.deepseek.com/) 🔗[Neumorphism](https://neumorphism.io/ '拟态css在线生成') 🦞[ ClawX](https://claw-x.com '龙虾AI助手')

### git项目：
🕸️[五合一收款码](https://github.com/insoxin/qrpay?tab=readme-ov-file) 🕸️[多合一收款码](https://github.com/jiusanzhou/payone) 🔗[fluentui-system-icons](https://github.com/microsoft/fluentui-system-icons '微软开源的Icons图标库') 🔗[腾飞WebOS](https://github.com/soitun/tenfell-webos '腾飞Webos专注在浏览器端体验Win11的效果') 🔗[CameraFileCopy](https://github.com/sz3/libcimbar '不用联网传输文件') 🔗[TXQR](https://github.com/divan/txqr '不用联网传文件') 🔗[Ggwave](https://github.com/ggerganov/ggwave '用声音传文件')

### Gmeek：
🔗[Gmeek](https://blog.meekdai.com/tag.html#Gmeek 'Gmeek作者主页')  🔗[LIYIFAN](https://blog.154451.xyz/)

### 开发语言：
 🔗[Markdown](https://markdown.com.cn/basic-syntax/links.html '最好的markdown教程') 🔗[Rust](https://rust-lang.org/zh-CN/ '强调安全性、高性能和并发性的系统编程语言') 🔗[JavaScript](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript) 🔗[HTML](https://developer.mozilla.org/zh-CN/docs/Web/HTML) 🔗[CSS](https://developer.mozilla.org/zh-CN/docs/Web/CSS) 🔗[E4A](https://e4asoft.com '中文开发语言可开发安卓软件') 🔗[易语言](https://www.dywt.com.cn/pdown.htm '中文开发语言开发win或linux') 🎗[结绳编程](http://qiplat.com '在安卓端中文开发')

### 网页3D：
🔗[Messenger](https://messenger.abeto.co/ 'abeto作品，卡通送信员在地球小镇上奔跑，联机在线，可换装') 🔗[Summer Afternoon](https://summer-afternoon.vlucendo.com '夏日午后，小男孩在乡村公路上上游玩')

### 前端开发：
🔗[Ionicons](https://ionic.io/ionicons '免费开源Icons图标库')

### 系统OS：

🔗[腾飞WebOS](https://os.tenfell.cn 'nas系统win系统效果') 🔗[Winux](https://winuxos.org '直接对标复刻win系统的linux') 🔗[ZorinOS](https://zorin.com 'win和Mac样式直接切换的linux')

### 好用软件：

🥰[LocalSend](https://localsend.org/zh-CN '跨平台区域网传输可传文字') 🔒[KeePassDX](https://www.keepassdx.com '密码管理软件自定义同步') 📘[纯记账](https://www.chunjizhang.com '无广告绿色记账软件')。</description><guid isPermaLink="true">https://g.weich.ee/link.html</guid><pubDate>Fri, 06 Feb 2026 16:02:13 +0000</pubDate></item></channel></rss>