Last active
February 11, 2022 13:02
-
-
Save vogler/b0835ed59bbac093c318c28d9af8d9f9 to your computer and use it in GitHub Desktop.
ING watchlist news: make escape key close popups
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 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