您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This removes the content blocker on Luogu user homepage.
- // ==UserScript==
- // @name Luogu User Content Block Remover
- // @namespace http://tampermonkey.net/
- // @version 2024-01-20
- // @match https://www.luogu.com.cn/user/*
- // @grant none
- // @author Rainbow_qwq
- // @description This removes the content blocker on Luogu user homepage.
- // @license MIT
- // ==/UserScript==
- (function() {
- 'use strict';
- function wait(calb, cond) {
- if (cond()) {
- return calb();
- } else {
- setTimeout(function() {
- wait(calb, cond);
- }, 0);
- }
- }
- wait(function() {
- let t = document.querySelector(".introduction.marked");
- if (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();
- }
- }
- }
- }, function() {
- return document.querySelector(".introduction.marked") !== null;
- });
- })();