Last active
December 9, 2015 06:41
-
-
Save Elevista/e7a0f94af4413dac8940 to your computer and use it in GitHub Desktop.
디시인사이드 자동 로그인 북마클릿
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
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