离线的CSDN打开自动跳转到主页的问题

选择网页, 右键另存为,保存网页。

用notepad打开网页文件, 找到类似于下面的这行

搜索替换字段 onerror 为任意 xxxx 即可


只删除下面这部分也是可以的

<img src="https://blog.csdn.net/xxxx/article/details/xxxx" 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);">

把这里的 onerror="setTimeout(xxxx" 删除即可

<img src="https://blog.csdn.net/xxxx/article/details/xxxx">

ref:
https://blog.csdn.net/jiankang66/article/details/120387139

 

 

 

posted @ 2022-11-03 15:30  Kconfig  阅读(41)  评论(0编辑  收藏  举报