Skip to content

Instantly share code, notes, and snippets.

@styledev
Created October 16, 2024 18:17
Show Gist options
  • Save styledev/4f6afb1a349087a458890e67b34e3e39 to your computer and use it in GitHub Desktop.
Save styledev/4f6afb1a349087a458890e67b34e3e39 to your computer and use it in GitHub Desktop.
DevTools Snippet: GoDaddy DNS Change Nameservers
var buttonChange = document.querySelector('#dns-content-nameservers button');
buttonChange.click();
setTimeout(function() {
var radioCustom = document.querySelector('#nameserver-type-CUSTOM'),
list = ['new nameserver #1', 'new nameserver #2', 'new nameserver #3', 'new nameserver #4'];
radioCustom.click();
setTimeout(function() {
var buttonAdd = document.querySelector('#addCustomNameserver');
buttonAdd.click();
buttonAdd.click();
}, 550)
list.forEach((l) => {console.log(l)})
}, 750);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment