Created
April 19, 2024 13:15
-
-
Save iamandrewluca/e3a0287ccf92d8c2ee018908eea034ba to your computer and use it in GitHub Desktop.
open links in same tab
This file contains 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
(async () => { | |
const { default: delegate } = await import('https://esm.sh/delegate-it') | |
delegate('a', 'click', (event) => { | |
if (event.metaKey && event.shiftKey) { | |
event.target.target = '_self' | |
}; | |
}) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment