Skip to content

Commit 92aee2c

Browse files
author
Azero
committed
修复评论不显示bug
1 parent fcc5ff0 commit 92aee2c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
![预览](https://raw.githubusercontent.com/Azero-NG/csdnRemoveAd/master/preview.png)
1010

1111
## 更新历史
12+
### 1.20
13+
- 修复评论不显示bug
14+
1215
### 1.19
1316
- 伪装登录,解决代码块复制问题深入解决,添加watch功能,监视currentusername,同时由于tampermonkey grant,导致进入sandbox,通过unsafewindow解决,同时疑问:Object变量可以跨沙箱?
1417

csdn.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name CSDN极致去广告
33
// @namespace http://tampermonkey.net/
4-
// @version 1.19
4+
// @version 1.20
55
// @description CSDN去广告(除了文章其他全去)
66
// @author Azero
77
// @match http*://blog.csdn.net/*/article/details/*
@@ -51,9 +51,10 @@
5151
staticValue("currentUserName","azero");
5252

5353
//页面加载完成监听事件
54-
document.addEventListener ("DOMContentLoaded", DOM_ContentReady);
54+
// document.addEventListener ("DOMContentLoaded", DOM_ContentReady);
55+
unsafeWindow.addEventListener ("load", pageFullyLoaded);
5556
//加载完成后运行
56-
function DOM_ContentReady () {
57+
function pageFullyLoaded () {
5758
if (GM_getValue("csdnNotifi",true)==true)
5859
{
5960
window.alert("请点击网页空白处");

0 commit comments

Comments
 (0)