Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
JS code to Open Contact link of the website (if contact link is available) :
var buttons = document.getElementsByTagName('a');
for (var i = buttons.length - 1; i >= 0; i--) {
var button = buttons[i];
if(button.innerText=='Contact'|button.innerText=='CONTACT'|button.innerText=='CONTACT US'|button.innerText=='Contact Us') {;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment