Skip to content

Instantly share code, notes, and snippets.

@chirag-droid
Last active March 21, 2022 14:58
Show Gist options
  • Save chirag-droid/ad2a56324a0d0f98b8aba95f73e1327e to your computer and use it in GitHub Desktop.
Save chirag-droid/ad2a56324a0d0f98b8aba95f73e1327e to your computer and use it in GitHub Desktop.
Discord Raw userscript to bypass nsfw
// ==UserScript==
// @name discord bypass nsfw
// @namespace Violentmonkey Scripts
// @match https://discord.com/*
// @require https://cdn.jsdelivr.net/npm/@violentmonkey/dom@1
// @grant none
// @version 1.0.0
// @author chirag-droid<[email protected]>
// @description 3/20/2022, 4:02:41 AM
// @run-at document-start
// @homepageURL https://github.com/chirag-droid
// @downloadURL https://gist.githubusercontent.com/chirag-droid/ad2a56324a0d0f98b8aba95f73e1327e/raw/DiscordNSFWBypass.js
// @updateURL https://gist.githubusercontent.com/chirag-droid/ad2a56324a0d0f98b8aba95f73e1327e/raw/DiscordNSFWBypass.js
// ==/UserScript==
VM.observe(document.body, () => {
if (window.webpackChunkdiscord_app) {
var findModule=(item)=>window.webpackChunkdiscord_app.push([[Math.random()],{},(req)=>{for(const m of Object.keys(req.c).map((x)=>req.c[x].exports).filter((x)=>x)){if(m.default&&m.default[item]!==undefined)return m.default}}])
findModule('getCurrentUser').getCurrentUser().nsfwAllowed = true
return true;
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment