Last active
          January 21, 2019 09:48 
        
      - 
      
 - 
        
Save David-Lor/bf1d55ea0372d032c9e657da3bd474df to your computer and use it in GitHub Desktop.  
    Quitar popup cupones Aliexpress (Greasemonkey/Tampermoney)
  
        
  
    
      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
    
  
  
    
  | // ==UserScript== | |
| // @name Quitar popup cupones Aliexpress | |
| // @version 1 | |
| // @grant none | |
| // @match https://*.aliexpress.com/* | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| document.onreadystatechange = function() { | |
| let btnCerrar = document.querySelector("html body div.ui-window.ui-window-normal.ui-window-transition.ui-newuser-layer-dialog div.ui-window-bd div.ui-window-content a.close-layer"); | |
| if (btnCerrar != null) { | |
| btnCerrar.click() | |
| } | |
| }; | |
| })(); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment