pixiv auto login

pixivに自動ログインする

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name           pixiv auto login
// @namespace      http://efcl.info/
// @include        http://www.pixiv.net/*
// @description    pixivに自動ログインする
// @version 0.0.1.20140518104301
// ==/UserScript==
new function(_doc){
    // 各自のログインIDとPASSを入れる
    var opts = {
        id : "",
        pass: "",
    }
    var loginForm = _doc.getElementsByName("loginForm");
    if(!loginForm) return;
    var user = _doc.getElementsByName("pixiv_id")[0];
    var pass = _doc.getElementsByName("pass")[0];
    var check = _doc.getElementsByName("skip")[0];
    if((user && pass) && (opts.id && opts.pass)){
        user.value = opts.id;
        pass.value = opts.pass;
        check.checked = true;
        loginForm[0].submit();
    }
}(document);