QQ强制账户密码登录

try to take over the world!

// ==UserScript==
// @name         QQ强制账户密码登录
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       banxia
// @match        *://*.qq.com/*
// @description       https://code.jquery.com/jquery-1.12.4.min.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    setTimeout(() =>  test(),800);
    document.domain = 'qq.com';
    function test(){
        var childDocument=document.getElementById("ptlogin_iframe");
        console.log(childDocument.contentWindow!==null);
        if(childDocument &&  childDocument.contentWindow) {
            //console.log(a.domain);
            childDocument.contentWindow.document.getElementById('switcher_plogin').click();
        }
    }
})();