Last active
November 3, 2023 00:46
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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; | |
} | |
} |
Wyvex
commented
Mar 27, 2022
via email
"you have to repaste it cause of the update."
…On Sat, Mar 26, 2022 at 2:15 PM Rivzer ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
The plugin won't work anymore for me
—
Reply to this email directly, view it on GitHub
<https://gist.github.com/393c90ca7a64cbe5ab213ef12bd3bff8#gistcomment-4111296>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWGLF3RFH4T4Z63YFGV3OSDVB4EYHANCNFSM5J2YD3QQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
it wasnt working for me at all im not sure why
How plss tell
Can you update this, new patch broke it.
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