Skip to content

Instantly share code, notes, and snippets.

@alejandrocoding
Created June 24, 2020 17:55
Show Gist options
  • Save alejandrocoding/f6f242ed115774c1458d88f544ebb790 to your computer and use it in GitHub Desktop.
Save alejandrocoding/f6f242ed115774c1458d88f544ebb790 to your computer and use it in GitHub Desktop.
Content Script adding button to GitHub UI with link to Google
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