Skip to content

Commit 153422e

Browse files
committed
fix(csdn): 修复新布局中的代码块内容获取问题
1 parent b1340f6 commit 153422e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

csdn-blocker/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# **🛠️ 解除CSDN登录复制 更新日志**
2+
3+
### **📅 2025.8.12.1**
4+
5+
**修复**: 修复新布局中的代码块内容获取问题[#175](https://github.com/ChinaGodMan/UserScripts/pull/175)<br>
6+
7+
---

csdn-blocker/csdn-blocker.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
// @description:zh-TW 去你媽的CSDN登錄複製,無需登錄即可複制
221221
// @description:zu Iya ku-CSDN yakho yokungena ngemvume bese ukopisha, ungakopisha ngaphandle kokungena ngemvume
222222
// @namespace https://github.com/ChinaGodMan/UserScripts
223-
// @version 1.0.0.23
223+
// @version 2025.8.12.1
224224
// @author 人民的勤务员 <[email protected]>
225225
// @match https://blog.csdn.net/*
226226
// @supportURL https://github.com/ChinaGodMan/UserScripts/issues
@@ -250,7 +250,7 @@
250250
if (e.parentNode.innerText.includes('AI写代码')) {
251251
navigator.clipboard.writeText(e.parentNode.previousElementSibling.innerText)
252252
} else {
253-
navigator.clipboard.writeText(e.parentNode.innerText)
253+
navigator.clipboard.writeText(e.parentNode.innerText)
254254
}
255255
e.setAttribute('data-title', '复制成功')
256256
setTimeout(() => e.setAttribute('data-title', '点击复制'), 1200)

0 commit comments

Comments
 (0)