Last active
April 26, 2019 23:18
-
-
Save ryubro/230976d10f08439be5b6 to your computer and use it in GitHub Desktop.
스타벅스 wifi 자동 로그인 북마클릿
This file contains hidden or 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 frm=document.pageForm; | |
var firstURL = "http://first.wifi.olleh.com/starbucks/index_en_new.html"; | |
var secondURL = "https://first.wifi.olleh.com/starbucks/starbucks_en.php"; | |
switch(window.location.href) { | |
case firstURL: | |
document.getElementById('stCheck').checked = false; | |
NextPage('0'); | |
break; | |
case secondURL: | |
frm.cust_email_addr.value = Math.random().toString(36).replace(/[0-9\.]/g, "").substring(0,Math.floor(Math.random()*10)+2)+"@"+["yahoo.com","hotmail.com"][Math.floor(Math.random()*2)]; | |
frm.userNm.value = ["John","Steve","Michael","Richard","Brian"][Math.floor(Math.random()*5)]+" "+["Smith","Williams","Brown","Miller","Davis"][Math.floor(Math.random()*5)]; | |
frm.check.checked = true; | |
goAct(); | |
break; | |
default: | |
window.location.href = firstURL; | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
북마클릿 받는 곳: http://tumblog.ryubro.com/bookmarklets#starbucks_wifi