NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name VSD autoLogin // @namespace http://vnsweetdream.net/ // @version 1.3 // @description AutoLogin in VnSweetDream // @copyright 2015+, K. // @include http://www.vnsweetdream.net/* // @match http://www.vnsweetdream.net/* // @run-at document-end // @grant none // ==/UserScript== var a = "username", b = "password"; $(function() { if ( _userdata.session_logged_in === 0 ) { $('form[name="form_login"]').each(function() { $(this).find('input[name="username"]').val(a); $(this).find('input[name="password"]').val(b); $(this).find('input[name="autologin"]').attr('checked', 'checked'); $(this).find('input[name="login"]').click(); }); } });