공부
[aws][chrome] chrome-error://chromewebdata/ -> redirect `ip-1-2-3-4.ap-northeast-2.compute.internal`
승가비
2022. 12. 15. 19:23
728x90
location.href = document.querySelector('#reload-button')
.url
.replace(/ip-(\d+)-(\d+)-(\d+)-(\d+)/,"$1.$2.$3.$4")
.replace(".ap-northeast-2.compute.internal", "")
Getting the current domain name in Chrome when the page fails to load
If you try to load with Chrome: http://sdqdsqdqsdsqdsqd.com/ You'll obtain: ERR_NAME_NOT_RESOLVED I would like, with a bookmarklet, to be able to get the current domain name and redirect it to a...
stackoverflow.com
728x90