Luogu Diff Modify

做题别看难度了哥

Від 22.12.2023. Дивіться остання версія.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Luogu Diff Modify
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  做题别看难度了哥
// @author       You
// @match        https://www.luogu.com.cn/problem/*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    window.onload = function () {
        var num=document.getElementsByClassName("info-rows")[0].childElementCount;
        document.getElementsByClassName("info-rows")[0].children[num-2].children[1].remove();
        var Diff=document.createElement("span");
        Diff.innerHTML='<span data-v-8b7f80ba=""><a data-v-0640126c="" data-v-263e39b8="" data-v-ea4425c6="" href="/problem/list?difficulty=7" class="color-none">🤣<span data-v-263e39b8="" style="color: red;background: linear-gradient(to right, rgb(254, 76, 97),rgb(243, 156, 17),rgb(255, 193, 22),rgb(82, 196, 26), rgb(52, 152, 219),rgb(157, 61, 207),rgb(14, 29, 105));-webkit-background-clip: text;-webkit-text-fill-color: transparent;">不是哥们你做题看难度啊</span>🤣</a></span>';
        document.getElementsByClassName("info-rows")[0].children[num-2].appendChild(Diff);
    }
})();