Skip to content

Instantly share code, notes, and snippets.

@dumbasPL
Created April 15, 2021 17:04
Show Gist options
  • Save dumbasPL/4941b1ab64637b0d0c6ed9298c6cae79 to your computer and use it in GitHub Desktop.
Save dumbasPL/4941b1ab64637b0d0c6ed9298c6cae79 to your computer and use it in GitHub Desktop.
Allows you to stream on discord in any quality (Doesn't require BetterDiscord)
(() => {
const req = typeof(webpackJsonp) === "function" ? webpackJsonp([], {
'__extra_id__': (module, exports, req) => exports.default = req
}, ['__extra_id__']).default : webpackJsonp.push([[], {
'__extra_id__': (module, exports, req) => module.exports = req
}, [['__extra_id__']]]);
delete req.m['__extra_id__'];
delete req.c['__extra_id__'];
const find = (filter) => {
for (let i in req.c) {
if (req.c.hasOwnProperty(i)) {
let m = req.c[i].exports;
if (m && m.__esModule && m.default && filter(m.default))
return m.default;
if (m && filter(m))
return m;
}
}
return null;
};
const findByUniqueProperties = (propNames) => find(module => propNames.every(prop => module[prop] !== undefined));
findByUniqueProperties(["getCurrentUser"]).getCurrentUser().premiumType = 2;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment