Skip to content

Commit aed218d

Browse files
committed
20260606-2307
1 parent 617adab commit aed218d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

CCW-Code-Injection-Risk-Warning.user.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @name CCW-Code-Injection-Risk-Warning
33
// @description CCW代码注入风险警告,让你的账号更安全。
44
// @author bddjr
5-
// @version 20260523-1242
5+
// @version 20260606-2307
66
// @match https://www.ccw.site/*
77
// @match https://learn.ccw.site/*
88
// @match https://m.ccw.site/*
@@ -21,7 +21,10 @@ if (location.hostname == 'm.ccw.site') {
2121
// 基于新标签页访问 svg 网址的代码注入攻击
2222
// 脚本无法防御该攻击,因为攻击者的代码先执行。
2323
// 参考 https://github.com/bddjr/CCW-Code-Injection-Risk-Warning/issues/3
24-
if (document.contentType == 'image/svg+xml') {
24+
if (
25+
location.pathname != '/user_projects_assets/e8095c8b2efbc421b974bf9ec3dd5844.svg' &&
26+
document.contentType == 'image/svg+xml'
27+
) {
2528
try {
2629
window.stop()
2730
} catch (e) { }

0 commit comments

Comments
 (0)