似乎有一些图片挂了,临时解决办法
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- html
- Domain
- documentation
Research direction
The issue names no repository file or test. Start by locating the published guide’s HTML and image-rendering entry point, then reproduce a broken CSDN image; done means the affected images render without the userscript and the relevant checks pass.
Written by the indexing model from the issue text.
Description
看起来是csdn图床加了防盗链处理,解决方法是在img标签上加个referrerPolicy="no-referrer"或者是在html里加个 <meta name="referrer" content="no-referrer" />
这里写了一个油猴脚本
// ==UserScript==
// @name 恢复图片显示
// @namespace http://tampermonkey.net/
// @version 2024-03-26
// @description try to take over the world!
// @author You
// @match https://snailclimb.gitee.io/springboot-guide/
// @icon https://www.google.com/s2/favicons?sz=64&domain=gitee.io
// @grant none
// ==/UserScript==
(function() {
'use strict';
setTimeout(() => {
// 获取页面上的所有img标签
var imgElements = document.getElementsByTagName('img');
// 遍历所有img标签并添加referrerPolicy属性
for (var i = 0; i < imgElements.length; i++) {
imgElements[i].setAttribute('referrerPolicy', 'no-referrer');
}
}, 2000)
// Your code here...
})();
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CodingDocs/springboot-guide
-
错别字 Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
README文件,样式未显现 Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
关于拦截器 Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
@Before使用错误 Open
Difficulty 1/5 1-3 hours Newbie friendliness 45/100
CodingDocs/springboot-guide#43 · 1 reaction ·
-
包名错误 Open
Difficulty 1/5 Under an hour Newbie friendliness 45/100
CodingDocs/springboot-guide#42 · 2 comments ·
All issues in CodingDocs/springboot-guide
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
elastic/gradle-plugins#157 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cryptomator/hub#497 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
johanhaleby/occurrent#1120 ·