Skip to content

Instantly share code, notes, and snippets.

@Elevista
Last active December 9, 2015 06:41
Show Gist options
  • Save Elevista/e7a0f94af4413dac8940 to your computer and use it in GitHub Desktop.
Save Elevista/e7a0f94af4413dac8940 to your computer and use it in GitHub Desktop.
디시인사이드 자동 로그인 북마클릿
javascript: (function(id, pw, redirect) {
var form = document.createElement('form');
form.setAttribute("action", "https://dcid.dcinside.com/join/member_check.php");
form.setAttribute("method", "POST");
var data =
[{name: "s_url", value: redirect},
{name: "ssl", value: "Y"},
{name: "user_id", value: id},
{name: "password", value: pw}];
for (var i = 0; i < data.length; i++) {
var input = document.createElement('input');
input.setAttribute("type", "hidden");
input.setAttribute("name", data[i].name);
input.value = data[i].value;
form.appendChild(input);
}
form.submit();
})("아이디", "암호", "로그인 후 이동할 주소"); //여기서 원하는 값으로 수정한다.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment