Skip to content

Commit 599b239

Browse files
author
Azero
committed
1.08添加更新提示
1 parent bf409d4 commit 599b239

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

csdn.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,11 @@
7474
$('iframe').remove();
7575
//更新提示
7676
if (GM_getValue("csdnNotifi",true)==true)
77-
if(!confirm("CSDN极致去广告脚本已更新\n为解决csdn反广告问题\n请查看项目主页获取解决办法\n是否再次提示(取消即不再提示,确认将打开项目主页)"))
77+
if(!confirm("CSDN极致去广告脚本已更新\n为解决csdn反广告问题\n请查看项目主页获取解决办法\n是否再次提示(取消即不再提示,确认将打开项目主页,请允许弹窗)"))
7878
GM_setValue("csdnNotifi",false);
7979
else
8080
{
81-
var form = document.createElement('form');
82-
form.action = 'https://github.com/Azero-NG/csdnRemoveAd';
83-
form.target = '_blank';
84-
form.method = 'GET';
85-
document.body.appendChild(form);
86-
form.submit();
81+
window.open('https://github.com/Azero-NG/csdnRemoveAd');
8782
}
8883
}
8984
$(".blog-content-box ~ div").remove();//todo:streamline my code

0 commit comments

Comments
 (0)