离线CSDN网页打开跳转首页的解决

保存的离线csdn网页(后缀为.html),重新打开跳转主页,是因为保存下面的.html格式文件里面多了一条语句,类似如下:

(注:用记事本打开,ctrl + f 键入onerror,查找下一个,到最后会看到该语句)

<img src="https://blog.csdn.net/qq_28877125/article/details/108662427" onerror="setTimeout(function(){if(!/(csdn.net|iteye.com|baiducontent.com|googleusercontent.com|360webcache.com|sogoucdn.com|bingj.com|baidu.com)$/.test(window.location.hostname))
{window.location.href=&quot;\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77\x77\x2e\x63\x73\x64\x6e\x2e\x6e\x65\x74&quot;}},3000);">

解决办法:删除该语句所在的行即可,亲测有效

posted @ 2023-07-26 15:37  海_纳百川  阅读(225)  评论(0编辑  收藏  举报
本站总访问量