Skip to content

Instantly share code, notes, and snippets.

@David-Lor
Last active January 21, 2019 09:48
Show Gist options
  • Save David-Lor/bf1d55ea0372d032c9e657da3bd474df to your computer and use it in GitHub Desktop.
Save David-Lor/bf1d55ea0372d032c9e657da3bd474df to your computer and use it in GitHub Desktop.
Quitar popup cupones Aliexpress (Greasemonkey/Tampermoney)
// ==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