use $api.util.findFuncExports() instead of wc.findFunc()

This commit is contained in:
Astra 2018-04-18 05:51:57 -04:00
parent b1e14663af
commit 1e35d74c8a
1 changed files with 3 additions and 3 deletions

View File

@ -31,12 +31,12 @@
document.addEventListener('ep-ready', () => {
// enable experiments
wc.findFunc('isDeveloper')[1].exports.__defineGetter__('isDeveloper', () => true);
$api.util.findFuncExports('isDeveloper').__defineGetter__('isDeveloper', () => true);
// disable that obnoxious warning about not pasting shit in the console
wc.findFunc("SELF_XSS_HEADER")[1].exports.consoleWarning = e => { };
$api.util.findFuncExports('consoleWarning').consoleWarning = e => { };
// goodies for bootsy and dr1ft
// goodies for important people
$api.util.wrapAfter(
"wc.findCache('getUser')[0].exports.getUser",