Skip to content

Instantly share code, notes, and snippets.

@Joshix-1
Last active November 3, 2023 00:46
Show Gist options
  • Save Joshix-1/393c90ca7a64cbe5ab213ef12bd3bff8 to your computer and use it in GitHub Desktop.
Save Joshix-1/393c90ca7a64cbe5ab213ef12bd3bff8 to your computer and use it in GitHub Desktop.
With this better discord plugin you can see NSFW channels if you are to dumb to tell discord you are over 18.
//META{"name":"AllowNSFW","authorId":"564843886434975745","website":"https://github.com/joshix-1", "source":"https://gist.github.com/Joshix-1/393c90ca7a64cbe5ab213ef12bd3bff8"}*//
module.exports = class AllowNSFW {
getName() {return "AllowNSFW";}
getDescription() {return "With this plugin you can see NSFW channels if you are to dumb to tell discord you are over 18.";}
getVersion() {return "0.0.1";}
getAuthor() {return "Joshix";}
load() {}
start() {
this.update();
}
stop() {}
onSwitch() {
this.update();
}
update () {
var v = BdApi.findModuleByProps("getCurrentUser").getCurrentUser();
if (typeof v === "undefined") return;
v.nsfwAllowed = true;
}
}
@Joshix-1
Copy link
Author

Joshix-1 commented Feb 3, 2022

Just download it and use it as normal BetterDiscord plugin lol

@Wyvex
Copy link

Wyvex commented Feb 8, 2022 via email

@Wyvex
Copy link

Wyvex commented Mar 27, 2022 via email

@oOkanekiOo
Copy link

it wasnt working for me at all im not sure why

@RonnWolfer
Copy link

How plss tell

@Kxsumi
Copy link

Kxsumi commented Oct 2, 2022

Can you update this, new patch broke it.

@akamezstuff
Copy link

you could use this script in console or bookmarklet: 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment