Skip to content

Instantly share code, notes, and snippets.

@daniely
Created April 23, 2016 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daniely/c2311aa65d85c918488146a9c9c7aeb8 to your computer and use it in GitHub Desktop.
Save daniely/c2311aa65d85c918488146a9c9c7aeb8 to your computer and use it in GitHub Desktop.
var run=function(n){var l={input:n,output:null,error:null};try{l.output=stringify(runHidden(n))}catch(e){l.error=e.message}"undefined"===l.output&&(l.output=""),application.remote.output(l)},runHidden=function(code){var indexedDB=null,location=null,navigator=null,onerror=null,onmessage=null,performance=null,self=null,webkitIndexedDB=null,postMessage=null,close=null,openDatabase=null,openDatabaseSync=null,webkitRequestFileSystem=null,webkitRequestFileSystemSync=null,webkitResolveLocalFileSystemSyncURL=null,webkitResolveLocalFileSystemURL=null,addEventListener=null,dispatchEvent=null,removeEventListener=null,dump=null,onoffline=null,ononline=null,importScripts=null,application=null;return eval(code)},stringify=function(n){var l;return l="undefined"==typeof n?"undefined":null===n?"null":JSON.stringify(n)||n.toString()};application.setInterface({run:run});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment