mirror of
				https://github.com/EndPwnArchive/endpwn3.git
				synced 2024-08-15 00:23:30 +00:00 
			
		
		
		
	restore more native stuff
This commit is contained in:
		
							parent
							
								
									b212f64595
								
							
						
					
					
						commit
						b1f92360f6
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -37,9 +37,10 @@
 | 
			
		|||
    // early init payload
 | 
			
		||||
    document.addEventListener('ep-prepared', () => {
 | 
			
		||||
 | 
			
		||||
        // restore the original console methods
 | 
			
		||||
        var origConsole = wc.findCache('_originalConsoleMethods')[0].exports._originalConsoleMethods;
 | 
			
		||||
        Object.keys(origConsole).forEach(x => global.console[x] = origConsole[x]);
 | 
			
		||||
        // restore original native methods
 | 
			
		||||
        var sentry = wc.findCache('_originalConsoleMethods')[0].exports;
 | 
			
		||||
        window.console = Object.assign(window.console, sentry._originalConsoleMethods); // console
 | 
			
		||||
        sentry._wrappedBuiltIns.forEach(x => x[0][x[1]] = x[2]); // other stuff
 | 
			
		||||
 | 
			
		||||
        // fetch the changelog
 | 
			
		||||
        fetch('https://endpwn.github.io/changelog.md?_=' + Date.now()).then(r => r.text()).then(l => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue