From 3a7015adaa0eeff809c6782396f7718511b5bd4f Mon Sep 17 00:00:00 2001 From: Astra Date: Thu, 19 Apr 2018 00:35:23 -0400 Subject: [PATCH] add window.reload() for convenience --- stage2.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stage2.js b/stage2.js index 21279c8..2de1adb 100644 --- a/stage2.js +++ b/stage2.js @@ -31,6 +31,8 @@ // EndPwn3 specific features document.addEventListener('ep-ready', () => { + + window.reload = () => { app.relaunch(); app.exit(); }; // enable experiments $api.util.findFuncExports('isDeveloper').__defineGetter__('isDeveloper', () => true); @@ -38,7 +40,7 @@ // disable that obnoxious warning about not pasting shit in the console $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( "wc.findCache('getUser')[0].exports.getUser",