xuiv's pages

记录页

查看 GitHub

Cloud9 登陆

24 Apr 2018

// ==UserScript==
// @name           c9 auto login
// @namespace      http://xuiv.ga/
// @include        https://c9.io/login
// @description    c9 login
// @version 0.0.1.20180423135900
// ==/UserScript==
(function(_doc) {
    'use strict';

    // user and password
    var opts = {
        id : "user",
        pass: "password",
    };
    var loginForm = _doc.getElementsByTagName("form")[0];
    if(!loginForm) return;
	loginForm.elements.namedItem("username").value = opts.id;
	loginForm.elements.namedItem("password").value = opts.pass;
	loginForm.submit();
})(document);
// ==UserScript==
// @name         c9 auto login
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Cloud9 IDE login!
// @author       You
// @match        https://c9.io/login
// @grant        none
// ==/UserScript==

(function(_doc) {
    'use strict';

    // user and password
    var opts = {
        id : "user",
        pass: "password",
    };
    var loginForm = _doc.getElementsByTagName("form")[0];
    if(!loginForm) return;
    loginForm.elements.namedItem("username").value = opts.id;
    loginForm.elements.namedItem("password").value = opts.pass;
    loginForm.submit();
})(document);
// ==UserScript==
// @name           ca auto login
// @namespace      http://xuiv.ga/
// @include        https://codeanywhere.com/login
// @description    ca login
// @version 0.0.1.20180521
// ==/UserScript==
(function(_doc) {
    // user and password
    var opts = {
        id: "user",
        pass: "password",
    };
    var loginForm = _doc.getElementsByTagName("form")[0];
    if (!loginForm) return;
    loginForm.elements.namedItem("login_email").value = opts.id;
    loginForm.elements.namedItem("login_password").value = opts.pass;
    loginForm.submit();

})(document);