Better NFLSOJ

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

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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);
    })();
})();