Created
October 16, 2024 18:17
-
-
Save styledev/4f6afb1a349087a458890e67b34e3e39 to your computer and use it in GitHub Desktop.
DevTools Snippet: GoDaddy DNS Change Nameservers
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
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