Last active
          June 25, 2020 23:25 
        
      - 
      
- 
        Save johnatandias/127cacae76556f6191a1f6416f7510e9 to your computer and use it in GitHub Desktop. 
    Listen to all events
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | (() => { | |
| Object.keys(window).map(property => { | |
| if (property.startsWith('on')) { | |
| window[property] = event => console.log('=>', event.type, { event }) | |
| } | |
| }) | |
| })() | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment