Better NFLSOJ

在 nflsoi.cc:20035 中自动去除 ban_copy,添加回复功能

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Better NFLSOJ
// @namespace    http://tampermonkey.net/
// @version      2025-12-20
// @description  在 nflsoi.cc:20035 中自动去除 ban_copy,添加回复功能
// @author       You
// @match        http://nflsoi.cc:20035/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=nflsoi.cc
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    if(window.location.pathname.includes("article")) {
       var number = window.location.pathname.slice(9);
       document.querySelector('div.padding').innerHTML += '<form class="ui reply form" method="post" action="/article/' + number + '/comment"><div class="field"><textarea name="comment" class="markdown-edit"></textarea></div><div style="text-align: center; "><button id="submit_button" type="submit" class="ui labeled submit icon button"><i class="icon edit"></i> 回复</button></div></form>';
    }
    (function changeCode() {
        var codes = document.querySelectorAll('div.ban_copy');
        for(var code of codes) {
            code.setAttribute('class', '');
        }
        // setInterval(changeCode, 5000);
    })();
})();