├── .github └── FUNDING.yml ├── README.md ├── index.js └── manifest.json /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | custom: ['https://paypal.me/eternal404'] 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NSFW Gate Bypass [![CodeFactor](https://www.codefactor.io/repository/github/discord-modifications/nsfw-gate-bypass/badge)](https://www.codefactor.io/repository/github/discord-modifications/nsfw-gate-bypass) [![GitHub issues](https://img.shields.io/github/issues/slow/nsfw-gate-bypass?style=flat)](https://github.com/discord-modifications/nsfw-gate-bypass/issues) [![GitHub stars](https://img.shields.io/github/stars/slow/nsfw-gate-bypass?style=flat)](https://github.com/discord-modifications/nsfw-gate-bypass/stargazers) [![Support](https://img.shields.io/discord/887015827134632057)](https://discord.gg/HQ5N7Rcajc) 2 | Bypasses Discord's NSFW age gate. 3 | 4 | # Requirements 5 | - Powercord 6 | 7 | # Installation 8 | 9 | - `git clone https://github.com/discord-modifications/nsfw-gate-bypass` 10 | 11 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const { Plugin } = require('powercord/entities'); 2 | const { waitFor } = require('powercord/util'); 3 | const { getModule } = require('powercord/webpack'); 4 | const { inject, uninject } = require('powercord/injector'); 5 | 6 | const { container = null } = getModule(['container', 'customStatus'], false) || {}; 7 | const Users = getModule(['getCurrentUser', 'getUser'], false); 8 | 9 | module.exports = class NSFWBypass extends Plugin { 10 | async startPlugin() { 11 | await waitFor(`.${container}`); 12 | inject('nsfw-gate-bypass', Users, 'getCurrentUser', (_, res) => { 13 | if (res?.hasOwnProperty('nsfwAllowed')) { 14 | res.nsfwAllowed = true; 15 | } 16 | 17 | return res; 18 | }); 19 | } 20 | 21 | pluginWillUnload() { 22 | uninject('nsfw-gate-bypass'); 23 | } 24 | }; 25 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "NSFW Gate Bypass", 3 | "version": "1.0.0", 4 | "description": "Bypasses NSFW age gate.", 5 | "author": "eternal", 6 | "discord": "HQ5N7Rcajc", 7 | "license": "Unlicensed" 8 | } --------------------------------------------------------------------------------