SHARE
TWEET

Untitled

a guest Aug 17th, 2018 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name           pixiv auto login
  3. // @namespace      http://efcl.info/
  4. // @include        http://www.pixiv.net/*
  5. // @description    pixivautologin
  6. // @version 0.0.1.20140518104301
  7. // ==/UserScript==
  8. new function(_doc){
  9.     var opts = {
  10.         id : "",
  11.         pass: "",
  12.     }
  13.     var loginForm = _doc.getElementsByName("loginForm");
  14.     if(!loginForm) return;
  15.     var user = _doc.getElementsByName("pixiv_id")[0];
  16.     var pass = _doc.getElementsByName("pass")[0];
  17.     var check = _doc.getElementsByName("skip")[0];
  18.     if((user && pass) && (opts.id && opts.pass)){
  19.         user.value = opts.id;
  20.         pass.value = opts.pass;
  21.         check.checked = true;
  22.         loginForm[0].submit();
  23.     }
  24. }(document);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top