Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

似乎有一些图片挂了,临时解决办法

Open
#48 0 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodingDocs/springboot-guide

All issues in CodingDocs/springboot-guide

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.