Created
June 24, 2020 17:55
-
-
Save alejandrocoding/f6f242ed115774c1458d88f544ebb790 to your computer and use it in GitHub Desktop.
Content Script adding button to GitHub UI with link to Google
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
const anchorMyBtn = document.createElement('a'); | |
anchorMyBtn.innerText = 'MY BUTTON'; | |
anchorMyBtn.classList.add('btn', 'ml-2'); | |
anchorMyBtn.href = 'https://google.es/'; | |
anchorMyBtn.target = '_blank'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment