F95Zone Instant Thread Ignore Button

Makes the "Ignore thread" button instantly ignore threads without pulling up the annoying form. Also redirects back to the ignored thread instead of the Adult Games forum.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

Advertisement:

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

Advertisement:

// ==UserScript==
// @name         F95Zone Instant Thread Ignore Button
// @description  Makes the "Ignore thread" button instantly ignore threads without pulling up the annoying form. Also redirects back to the ignored thread instead of the Adult Games forum.
// @author       equmaq
// @version      1.1
// @license      GPL-2.0
// @match        *://f95zone.to/threads/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=f95zone.to
// @namespace https://greasyfork.org/users/990886
// ==/UserScript==

document.addEventListener('click', function (e) {
    const btn = e.target.closest('a.tic--button');
    if (!btn) return;
    if (btn.textContent.trim() !== 'Ignore thread') return;

    e.preventDefault();

    const url = new URL(btn.href);
    const contentId = url.searchParams.get('content_id');
    const contentType = url.searchParams.get('content_type');

    // grab CSRF token from <html>
    const token = document.documentElement.getAttribute('data-csrf');

    const form = document.createElement('form');
    form.method = 'POST';
    form.action = '/misc/tic-ignore';

    form.innerHTML = `
        <input type="hidden" name="is_confirmed" value="1">
        <input type="hidden" name="content_type" value="${contentType}">
        <input type="hidden" name="redirect" value="/threads/${contentId}">
        <input type="hidden" name="content_id" value="${contentId}">
        <input type="hidden" name="_xfToken" value="${token}">
    `;

    document.body.appendChild(form);
    form.submit();
});