Skip to content

Commit 5d30bc7

Browse files
authored
Merge pull request #181 from ChinaGodMan/Yoobohl/fix-csdn-copy
2 parents 453ec5a + 114daf3 commit 5d30bc7

19 files changed

Lines changed: 142 additions & 92 deletions

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/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
<img src="https://img.shields.io/badge/dynamic/json?&label=%E6%AF%8F%E6%97%A5%E6%A3%80%E6%9F%A5%E6%9B%B4%E6%96%B0%E6%AC%A1%E6%95%B0&query=$.505207&logo=greasyfork&logoColor=white&labelColor=%23670000&color=blue&url=https://github.com/ChinaGodMan/UserScriptsHistory/raw/main/daily_update_checks.json">
6464
<p>Download:<a href="https://github.com/ChinaGodMan/UserScripts/tree/main/csdn-blocker">Github</a> | ⭐<a
6565
href="https://greasyfork.org/scripts/505207">Greasy
66-
Fork</a></p>
66+
Fork</a></p><details><summary style="color:#FFD700">更新记录</summary><div align="right"><a href="https://github.com/ChinaGodMan/UserScripts/tree/main/csdn-blocker/CHANGELOG.md"><img src="https://img.shields.io/badge/-GitHub-3A3A3A?style=flat&logo=GitHub&logoColor=white"></a></div><h1><strong>🛠️ 解除CSDN登录复制 更新日志</strong></h1>
67+
<h3><strong>📅 2025.8.12.1</strong></h3>
68+
<p><strong>修复</strong>: 修复新布局中的代码块内容获取问题<a href="https://github.com/ChinaGodMan/UserScripts/pull/175">#175</a><br></p>
69+
<hr /></details>
6770
<img src="https://raw.githubusercontent.com/ChinaGodMan/UserScriptsHistory/main/stats/505207.png">
6871
</div></center>
6972

csdn-blocker/README_en.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
<img src="https://img.shields.io/badge/dynamic/json?&label=Daily%20check%20updates&query=$.505207&logo=greasyfork&logoColor=white&labelColor=%23670000&color=blue&url=https://github.com/ChinaGodMan/UserScriptsHistory/raw/main/daily_update_checks.json">
6464
<p>Download:<a href="https://github.com/ChinaGodMan/UserScripts/tree/main/csdn-blocker">Github</a> | ⭐<a
6565
href="https://greasyfork.org/scripts/505207">Greasy
66-
Fork</a></p>
66+
Fork</a></p><details><summary style="color:#FFD700">Update records</summary><div align="right"><a href="https://github.com/ChinaGodMan/UserScripts/tree/main/csdn-blocker/CHANGELOG.md"><img src="https://img.shields.io/badge/-GitHub-3A3A3A?style=flat&logo=GitHub&logoColor=white"></a></div><h1><strong>🛠️ ReleaseCSDNLog in to copy Update log</strong></h1>
67+
<h3><strong>📅 2025.8.12.1</strong></h3>
68+
<p><strong>repair</strong>: Fixed the issue of getting code block content in new layout<a href="https://github.com/ChinaGodMan/UserScripts/pull/175">#175</a><br></p>
69+
<hr /></details>
6770
<img src="https://raw.githubusercontent.com/ChinaGodMan/UserScriptsHistory/main/stats/505207.png">
6871
</div></center>
6972

csdn-blocker/README_ko.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
<img src="https://img.shields.io/badge/dynamic/json?&label=%EB%A7%A4%EC%9D%BC%20%ED%99%95%EC%9D%B8%20%EC%97%85%EB%8D%B0%EC%9D%B4%ED%8A%B8&query=$.505207&logo=greasyfork&logoColor=white&labelColor=%23670000&color=blue&url=https://github.com/ChinaGodMan/UserScriptsHistory/raw/main/daily_update_checks.json">
6464
<p>Download:<a href="https://github.com/ChinaGodMan/UserScripts/tree/main/csdn-blocker">Github</a> | ⭐<a
6565
href="https://greasyfork.org/scripts/505207">Greasy
66-
Fork</a></p>
66+
Fork</a></p><details><summary style="color:#FFD700">레코드 업데이트</summary><div align="right"><a href="https://github.com/ChinaGodMan/UserScripts/tree/main/csdn-blocker/CHANGELOG.md"><img src="https://img.shields.io/badge/-GitHub-3A3A3A?style=flat&logo=GitHub&logoColor=white"></a></div><h1><strong>🛠️ 풀어 주다CSDN복사하려면 로그인하십시오 로그 업데이트</strong></h1>
67+
<h3><strong>📅 2025.8.12.1</strong></h3>
68+
<p><strong>수리하다</strong>: 새로운 레이아웃에서 코드 블록 컨텐츠를 얻는 문제를 수정했습니다.<a href="https://github.com/ChinaGodMan/UserScripts/pull/175">#175</a><br></p>
69+
<hr /></details>
6770
<img src="https://raw.githubusercontent.com/ChinaGodMan/UserScriptsHistory/main/stats/505207.png">
6871
</div></center>
6972

csdn-blocker/README_vi.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
<img src="https://img.shields.io/badge/dynamic/json?&label=C%E1%BA%ADp%20nh%E1%BA%ADt%20ki%E1%BB%83m%20tra%20h%C3%A0ng%20ng%C3%A0y&query=$.505207&logo=greasyfork&logoColor=white&labelColor=%23670000&color=blue&url=https://github.com/ChinaGodMan/UserScriptsHistory/raw/main/daily_update_checks.json">
6464
<p>Download:<a href="https://github.com/ChinaGodMan/UserScripts/tree/main/csdn-blocker">Github</a> | ⭐<a
6565
href="https://greasyfork.org/scripts/505207">Greasy
66-
Fork</a></p>
66+
Fork</a></p><details><summary style="color:#FFD700">Cập nhật hồ sơ</summary><div align="right"><a href="https://github.com/ChinaGodMan/UserScripts/tree/main/csdn-blocker/CHANGELOG.md"><img src="https://img.shields.io/badge/-GitHub-3A3A3A?style=flat&logo=GitHub&logoColor=white"></a></div><h1><strong>🛠️ Giải phóngCSDNĐăng nhập để sao chép Cập nhật nhật ký</strong></h1>
67+
<h3><strong>📅 2025.8.12.1</strong></h3>
68+
<p><strong>Sửa chữa</strong>: Đã sửa lỗi vấn đề nhận nội dung khối mã trong bố cục mới<a href="https://github.com/ChinaGodMan/UserScripts/pull/175">#175</a><br></p>
69+
<hr /></details>
6770
<img src="https://raw.githubusercontent.com/ChinaGodMan/UserScriptsHistory/main/stats/505207.png">
6871
</div></center>
6972

csdn-blocker/README_zh-TW.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
<img src="https://img.shields.io/badge/dynamic/json?&label=%E6%AF%8F%E6%97%A5%E6%AA%A2%E6%9F%A5%E6%9B%B4%E6%96%B0%E6%AC%A1%E6%95%B8&query=$.505207&logo=greasyfork&logoColor=white&labelColor=%23670000&color=blue&url=https://github.com/ChinaGodMan/UserScriptsHistory/raw/main/daily_update_checks.json">
6464
<p>Download:<a href="https://github.com/ChinaGodMan/UserScripts/tree/main/csdn-blocker">Github</a> | ⭐<a
6565
href="https://greasyfork.org/scripts/505207">Greasy
66-
Fork</a></p>
66+
Fork</a></p><details><summary style="color:#FFD700">更新記錄</summary><div align="right"><a href="https://github.com/ChinaGodMan/UserScripts/tree/main/csdn-blocker/CHANGELOG.md"><img src="https://img.shields.io/badge/-GitHub-3A3A3A?style=flat&logo=GitHub&logoColor=white"></a></div><h1><strong>🛠️ 解除CSDN登錄複製 更新日誌</strong></h1>
67+
<h3><strong>📅 2025.8.12.1</strong></h3>
68+
<p><strong>修復</strong>: 修復新佈局中的代碼塊內容獲取問題<a href="https://github.com/ChinaGodMan/UserScripts/pull/175">#175</a><br></p>
69+
<hr /></details>
6770
<img src="https://raw.githubusercontent.com/ChinaGodMan/UserScriptsHistory/main/stats/505207.png">
6871
</div></center>
6972

csdn-blocker/csdn-blocker.user.js

Lines changed: 6 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 人民的勤务员 <china.qinwuyuan@gmail.com>
225225
// @match https://blog.csdn.net/*
226226
// @supportURL https://github.com/ChinaGodMan/UserScripts/issues
@@ -247,7 +247,11 @@
247247
e.removeAttribute('onclick')
248248
e.addEventListener('click', () => {
249249
e.setAttribute('data-title', ' ')
250-
navigator.clipboard.writeText(e.parentNode.innerText)
250+
if (e.parentNode.innerText.includes('AI写代码')) {
251+
navigator.clipboard.writeText(e.parentNode.previousElementSibling.innerText)
252+
} else {
253+
navigator.clipboard.writeText(e.parentNode.innerText)
254+
}
251255
e.setAttribute('data-title', '复制成功')
252256
setTimeout(() => e.setAttribute('data-title', '点击复制'), 1200)
253257
})

docs/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2550,7 +2550,9 @@ ChatGPT 让代码字体变小 并且自动折行
25502550
<a href="../csdn-blocker/csdn-blocker.user.js">
25512551
<img hight=16 width=15 src="https://img.icons8.com/color/48/code.png">源码</a> /
25522552
<a href="https://github.com/ChinaGodMan/UserScripts/raw/main/csdn-blocker/csdn-blocker.user.js">
2553-
<img hight=16 width=15 src="https://img.icons8.com/color/48/maintenance.png">安装</a>
2553+
<img hight=16 width=15 src="https://img.icons8.com/color/48/maintenance.png">安装</a> /
2554+
<a href="https://github.com/ChinaGodMan/UserScripts/tree/main/csdn-blocker/CHANGELOG.md">
2555+
<img hight=16 width=15 src="https://img.icons8.com/parakeet/48/renew-subscription.png">更新日志</a>
25542556
</blockquote>
25552557
<h3>
25562558
<a href="../clean-blog-articles">

docs/de/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2550,7 +2550,9 @@ Gehen Sie zu Ihrem verdammten CSDN -Login und kopieren Sie, Sie können kopieren
25502550
<a href="../../csdn-blocker/csdn-blocker.user.js">
25512551
<img hight=16 width=15 src="https://img.icons8.com/color/48/code.png">Quellcode</a> /
25522552
<a href="https://github.com/ChinaGodMan/UserScripts/raw/main/csdn-blocker/csdn-blocker.user.js">
2553-
<img hight=16 width=15 src="https://img.icons8.com/color/48/maintenance.png">Installieren</a>
2553+
<img hight=16 width=15 src="https://img.icons8.com/color/48/maintenance.png">Installieren</a> /
2554+
<a href="https://github.com/ChinaGodMan/UserScripts/tree/main/csdn-blocker/CHANGELOG.md">
2555+
<img hight=16 width=15 src="https://img.icons8.com/parakeet/48/renew-subscription.png">Aktualisieren Sie das Protokoll</a>
25542556
</blockquote>
25552557
<h3>
25562558
<a href="../../clean-blog-articles">

docs/en/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2550,7 +2550,9 @@ Go to your fucking CSDN login and copy, you can copy without logging in
25502550
<a href="../../csdn-blocker/csdn-blocker.user.js">
25512551
<img hight=16 width=15 src="https://img.icons8.com/color/48/code.png">Source code</a> /
25522552
<a href="https://github.com/ChinaGodMan/UserScripts/raw/main/csdn-blocker/csdn-blocker.user.js">
2553-
<img hight=16 width=15 src="https://img.icons8.com/color/48/maintenance.png">Install</a>
2553+
<img hight=16 width=15 src="https://img.icons8.com/color/48/maintenance.png">Install</a> /
2554+
<a href="https://github.com/ChinaGodMan/UserScripts/tree/main/csdn-blocker/CHANGELOG.md">
2555+
<img hight=16 width=15 src="https://img.icons8.com/parakeet/48/renew-subscription.png">Update log</a>
25542556
</blockquote>
25552557
<h3>
25562558
<a href="../../clean-blog-articles">

0 commit comments

Comments
 (0)