如何在洛谷看见别人的主页?

以下默认使用 edge

篡改猴

首先我们需要安装篡改猴,link

Luogu User Content Block Remover

接着,打开篡改猴,点击“添加新脚本…”,然后删除掉初始时的那些代码,然后将下方的代码复制上去,点击“文件”,点击“保存”,这样就有了插件。

// ==UserScript==
// @name         Luogu User Content Block Remover
// @namespace    http://tampermonkey.net/
// @version      2024-01-20
// @match        https://www.luogu.com.cn/user/*
// @grant        none
// ==/UserScript==

// mark 一下,现在有切换 tab 以后没法再加载只能刷新的 bug,也不知道咋修。
// 直接监听 url 似乎不可行

// ↑ Solved by WangBX

(function(){
    'use strict';
    const ob = new MutationObserver(() => {
        const t = document.querySelector(".introduction.marked");
        if (t !== null && t.style.display === "none") {
            t.style.display = 'block';
            for (let i = 0; i < t.parentElement.children.length; i++) {
                if (t.parentElement.children[i].innerText === '系统维护,该内容暂不可见。') {
                    t.parentElement.children[i].remove();
                }
            }
        }
    });
    ob.observe(document.documentElement, {childList: true, subtree: true});
})();

当你点进别人的主页时,你会发现那个限制没有了,这样就可以看到别人的主页了。

posted @ 2024-01-28 22:44  123wwm  阅读(2079)  评论(0)    收藏  举报