Reddit NSFW Media Unlocker (April 2026)

Stable Reddit NSFW unblocker (auto-updating DOM changes)

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey, Greasemonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Violentmonkey.

Voor het installeren van scripts heb je een extensie nodig, zoals Tampermonkey of Userscripts.

Voor het installeren van scripts heb je een extensie nodig, zoals {tampermonkey_link:Tampermonkey}.

Voor het installeren van scripts heb je een gebruikersscriptbeheerder nodig.

(Ik heb al een user script manager, laat me het downloaden!)

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een extensie nodig, zoals {stylus_link:Stylus}.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

Voor het installeren van gebruikersstijlen heb je een gebruikersstijlbeheerder nodig.

(Ik heb al een beheerder - laat me doorgaan met de installatie!)

// ==UserScript==
// @name         Reddit NSFW Media Unlocker (April 2026)
// @match        https://www.reddit.com/*
// @grant        none
// @run-at       document-start
// @version 0.0.1.20260417144048
// @namespace https://greasyfork.org/users/aakash-yadav
// @description Stable Reddit NSFW unblocker (auto-updating DOM changes)
// ==/UserScript==

(function() {
    'use strict';

    function fixReddit() {
        // 1. Force Scroll (Unfreezes the page)
        document.documentElement.style.overflow = 'auto';
        document.body.style.overflow = 'auto';

        // 2. Clear the full-screen app walls
        document.querySelectorAll('shreddit-experience-tree, shreddit-async-loader, #blocking-modal').forEach(el => el.remove());

        // 3. PIERCE SHADOW DOM (Fixes the text & black screen in your screenshots)
        document.querySelectorAll('shreddit-blurred-container, xpromo-nsfw-blocking-container').forEach(container => {
            container.removeAttribute('reason'); // Strip the lock
            
            if (container.shadowRoot) {
                // Find the hidden 'Verify' button and CLICK it to fetch media metadata
                const btn = container.shadowRoot.querySelector('button, [role="button"], a');
                if (btn) btn.click();

                // Inject CSS into the Shadow DOM to hide the blur and show the content
                if (!container.shadowRoot.querySelector('style#bypass')) {
                    const style = document.createElement('style');
                    style.id = 'bypass';
                    style.textContent = `
                        [slot="blurred"], .prompt, xpromo-nsfw-blocking-modal-v2 { display: none !important; }
                        [slot="content"] { display: block !important; filter: none !important; }
                    `;
                    container.shadowRoot.appendChild(style);
                }
            }
        });
    }

    // Run every 500ms to catch lazy-loaded content
    setInterval(fixReddit, 500);
})();