Greasy Fork

Greasy Fork is available in English.

拒绝二维码登录(淘宝、京东等网站默认出现账号密码登录界面)

淘宝、京东、阿里云等网站默认使用账号密码登录,不出现二维码登录界面

当前为 2017-02-09 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         拒绝二维码登录(淘宝、京东等网站默认出现账号密码登录界面)
// @namespace    undefined
// @version      0.1.3
// @description  淘宝、京东、阿里云等网站默认使用账号密码登录,不出现二维码登录界面
// @author       Vizards
// @match        *://login.taobao.com/*
// @match        *://login.1688.com/*
// @match        *://account.aliyun.com/*
// @match        *://passport.jd.com/*
// @match        *://weibo.com/*
// @match        *://login.tmall.com/*
// @match        *://pan.baidu.com/*
// @match        *://graph.qq.com/*
// @match        *://xui.ptlogin2.qq.com/*
// @grant        none
// ==/UserScript==

/**
 * login.taobao.com/*
 * login.1688.com/*
 * login.tmall.com/*
 */

if (location.hostname === 'login.taobao.com' || location.hostname === 'login.1688.com') {
   var auto = setInterval(function() {
       if (document.defaultView.getComputedStyle(document.getElementsByClassName('static-form')[0]).display === 'none') {
           document.getElementById('J_Quick2Static').click();
           clearInterval(auto);
       }
   }, 50);
}

// passport.jd.com/*
if (location.hostname === 'passport.jd.com') {
   var auto = setInterval(function() {
       if (document.getElementsByClassName('login-box')[0].style.display === 'none') {
           document.getElementsByClassName('login-tab-r')[0].click();
           clearInterval(auto);
       }
   }, 50);
}

// account.aliyun.com/*
if (location.hostname === 'account.aliyun.com') {
	miniLoginEmbedder.init({
	    targetId: 'alibaba-login-iframe',
	    appName: 'aliyun',
	    appEntrance: 'aliyun',
	    iframeUrl: 'https://passport.alibaba.com/mini_login.htm',
	    lang: 'zh_CN',
	    notLoadSsoView: '',
	    notKeepLogin: 'true',
	    loginId: '',
	    iframeHeight: '305px',
	    queryStr: '&regUrl=https%3A%2F%2Faccount.aliyun.com%2Fregister%2Fregister.htm%3Foauth_callback%3Dhttps%253A%252F%252Fcn.aliyun.com%252F&qrCodeFirst=false'
	});

	window.onload = function () {
	    document.getElementById('alibaba-login-iframe').getElementsByTagName('iframe')[0].style.display = 'none';
	    document.getElementById('alibaba-login-iframe').getElementsByTagName('iframe')[1].height = '320';
	    document.getElementsByClassName('agreement')[0].style.bottom = '-25px';
	};
}

// weibo.com/*
// pan.baidu.com/*
window.onload = function() {
    if (location.hostname === 'weibo.com') {
        if (document.getElementsByClassName('W_login_form')[0].style.display === 'none') {
            document.getElementsByClassName('W_fb')[0].click();
        }
    }
    if (location.hostname === 'pan.baidu.com') {
        if (document.getElementsByClassName('qcode-title')[0].getAttribute("class") === "qcode-title active") {
            document.getElementsByClassName("account-title")[0].getElementsByTagName('a')[0].click();
        }
    }
};

// graph.qq.com/*
// xui.ptlogin2.qq.com/*
window.onload = function () {
	if (location.hostname === 'xui.ptlogin2.qq.com') {
		var auto = setInterval(function() {
            if (document.getElementsByClassName('face').length <= 1) {
                document.getElementById('switcher_plogin').click();
                clearInterval(auto);
            }
        }, 50);
	}

	if (location.hostname === 'graph.qq.com') {
		document.getElementById('select_all').click();
	}
};