Skip to content

Instantly share code, notes, and snippets.

@ryubro
Last active April 26, 2019 23:18
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryubro/230976d10f08439be5b6 to your computer and use it in GitHub Desktop.
Save ryubro/230976d10f08439be5b6 to your computer and use it in GitHub Desktop.
스타벅스 wifi 자동 로그인 북마클릿
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;
}
@ryubro
Copy link
Author

ryubro commented May 21, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment