<commit_before>// ==UserScript==
// @name         Unnotify reports
// @version      3
// @description  because it's annoying
// @namespace    https://volafile.org
// @icon         https://volafile.org/favicon.ico
// @author       topkuk productions
// @match        https://volafile.org/r/*
// @require      https://cdn.rawgit.com/RealDolos/volascripts/1dd689f72763c0e59f567fdf93865837e35964d6/dry.js
// @grant        none
// @run-at       document-start
// ==/UserScript==

dry.once("dom", () => {
    "use strict";
    console.log("running", GM_info.script.name, GM_info.script.version, dry.version);
    const BLACK = /\.(txt|html?|rtf|docx?|xlsx?|exe|rar|zip) |periscopefollower/;

    new class extends dry.MessageFilter {
        showMessage(orig, nick, message, options) {
            if (typeof message !== "string" && ((nick === "Report" && options.staff) || (message && message[0] && message[0].href === "/reports"))) {
                options.notify = options.highlight = false;
                try {
                    let text = message.map(e => e.value || "").join("");
                    if (text.includes("BLACKLIST") && BLACK.test(text)) {
                        console.error(text);
                        return false;
                    }
                    return;
                }<commit_msg>Actually hide BL spam<commit_after>// ==UserScript==
// @name         Unnotify reports
// @version      4
// @description  because it's annoying
// @namespace    https://volafile.org
// @icon         https://volafile.org/favicon.ico
// @author       topkuk productions
// @match        https://volafile.org/r/*
// @require      https://cdn.rawgit.com/RealDolos/volascripts/1dd689f72763c0e59f567fdf93865837e35964d6/dry.js
// @grant        none
// @run-at       document-start
// ==/UserScript==

dry.once("dom", () => {
    "use strict";
    console.log("running", GM_info.script.name, GM_info.script.version, dry.version);
    const BLACK = /\.(txt|html?|rtf|docx?|xlsx?|exe|rar|zip)[ "]|periscopefollower/;

    new class extends dry.MessageFilter {
        showMessage(orig, nick, message, options) {
            if (typeof message !== "string" && ((nick === "Report" && options.staff) || (message && message[0] && message[0].href === "/reports"))) {
                options.notify = options.highlight = false;
                try {
                    let text = message.map(e => e.value || "").join("");
                    if (text.includes("BLACKLIST") && BLACK.test(text)) {
                        console.error(text);
                        return false;
                    }
                    return;
                }
{'fraction_non_alphanumeric': 0.1632114587259706, 'fraction_numerical': 0.02412363362231436, 'mean_word_length': 1.9358407079646018, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1337848', 'n_tokens_mistral': 864, 'n_tokens_neox': 790, 'n_words': 149}