PageSourceSearch

https://www.kosher.com/wp-content/plugins/kosher-comments-ai-moderation/js/moderation.js?ver=1790926649

js kosher.com collected 2026-10-02 07:42:27 UTC 845 bytes, 39 lines download raw bytes

1jQuery(document).ajaxSuccess(function(event, xhr) {
2
3    let response;
4
5    try {
6        response = JSON.parse(xhr.responseText);
7    } catch (e) {
8        return;
9    }
10
11    // Clean wpDiscuz editor
12    jQuery(".ql-editor").html("");
13
14    // Blocked message
15    if (response.type === "ai_banned") {
16        Swal.fire({
17            title: "Account Banned",
18            html: response.errorMessage,
19            icon: "error",
20            confirmButtonText: "OK"
21        }).then(() => {
22            window.location.href = "/";
23        });
24
25        return false;
26    }
27
28    // Warning message
29    if (response.type === "ai_moderation") {
30        Swal.fire({
31            title: "Comment Blocked",
32            html: response.errorMessage,
33            icon: "warning",
34            confirmButtonText: "OK"
35        });
36
37        return false;
38    }
39});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.