mirror of
https://github.com/EndPwnArchive/endpwn3.git
synced 2024-08-15 00:23:30 +00:00
add window.reload() for convenience
This commit is contained in:
parent
f9605f993f
commit
3a7015adaa
1 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,8 @@
|
||||||
|
|
||||||
// EndPwn3 specific features
|
// EndPwn3 specific features
|
||||||
document.addEventListener('ep-ready', () => {
|
document.addEventListener('ep-ready', () => {
|
||||||
|
|
||||||
|
window.reload = () => { app.relaunch(); app.exit(); };
|
||||||
|
|
||||||
// enable experiments
|
// enable experiments
|
||||||
$api.util.findFuncExports('isDeveloper').__defineGetter__('isDeveloper', () => true);
|
$api.util.findFuncExports('isDeveloper').__defineGetter__('isDeveloper', () => true);
|
||||||
|
@ -38,7 +40,7 @@
|
||||||
// disable that obnoxious warning about not pasting shit in the console
|
// disable that obnoxious warning about not pasting shit in the console
|
||||||
$api.util.findFuncExports('consoleWarning').consoleWarning = e => { };
|
$api.util.findFuncExports('consoleWarning').consoleWarning = e => { };
|
||||||
|
|
||||||
// goodies for contributors, and also kat bc shes my girlfriend
|
// goodies for people directly associated with the endpwn project, and also kat bc shes my girlfriend
|
||||||
$api.util.wrapAfter(
|
$api.util.wrapAfter(
|
||||||
"wc.findCache('getUser')[0].exports.getUser",
|
"wc.findCache('getUser')[0].exports.getUser",
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue