Last active
August 16, 2019 09:32
-
-
Save afozbek/fc3fb415a3e9d0cb5d3d17e731f008f6 to your computer and use it in GitHub Desktop.
add _blank element
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
document.querySelectorAll("a").forEach(link=>link.setAttribute("target", "_blank")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment