Skip to content

Instantly share code, notes, and snippets.

@vogler
Last active February 11, 2022 13:02
Show Gist options
  • Save vogler/b0835ed59bbac093c318c28d9af8d9f9 to your computer and use it in GitHub Desktop.
Save vogler/b0835ed59bbac093c318c28d9af8d9f9 to your computer and use it in GitHub Desktop.
ING watchlist news: make escape key close popups
// ==UserScript==
// @name ING watchlist news: make escape key close popups
// @namespace https://gist.github.com/vogler
// @downloadURL https://gist.github.com/vogler/b0835ed59bbac093c318c28d9af8d9f9/raw/esc-to-close.wertpapiere.ing.de.tamper.js
// @version 0.1
// @description ING watchlist news: make escape key close popups
// @author Ralf Vogler
// @match *://wertpapiere.ing.de/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.onkeydown = e => { if(e.key == 'Escape') document.querySelector('a.pw12-close.sh_hideOnSmartphone').click(); }
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment