获取Jetbrainst激活码

自动查询密码;自动确认;生成复制

// ==UserScript==
// @name         获取Jetbrainst激活码
// @version      1.030
// @description  自动查询密码;自动确认;生成复制
// @author       JIEMO
// @namespace    https://greasyfork.org/users/158417
// @icon         https://resources.jetbrains.com/storage/ui/favicons/favicon.ico
// @match        *://vrg123.com
// ==/UserScript==

(function() {
    'use strict';
    function getKey(key){
   //     let url="http://cors.jie02.top/?https://mp.weixin.qq.com/s/gyC8mxuBKpyXYq9vvlSS2g";
    //    var content=fetch(url)
   //     .then(res => res.text())
   //     .then(res => $("input[name='pas']").val(res.split("密钥:")[1].split("</p>")[0]));
        $("input[name='pas']").val(7898);
    }
    var div = document.createElement("div");
    function info(){
        div.innerHTML = "获取秘钥中,请稍等...";
        var css = "position:fixed;top:120px;left:150px;z-index:999999999;width:100px;height:30px;line-height:30px;text-align:center;font-size:24px;font-family:Verdana, Arial, '楷体';font-weight:500;color:red;user-select:none;padding:0px;white-space:nowrap;";
        if($("input[name='pas']").val()!=""){
            div.innerHTML = "获取密码成功get√";
            css = "position:fixed;top:120px;left:150px;z-index:999999999;width:100px;height:30px;line-height:30px;text-align:center;font-size:24px;font-family:Verdana, Arial, '楷体';font-weight:500;color:green;user-select:none;padding:0px;white-space:nowrap;";
        }
        div.style.cssText = css;
        document.body.appendChild(div);
        if($("input[name='pas']").val()!=""){
            $("input[name='sbt']").click();
        }
    }
    var btn = document.createElement("button");
    function copybtn(){
        if($("textarea[name='codecopy']").val()!=""){
            btn.innerText="复制code";
            btn.style.cssText="position:fixed;width:80px;height:30px;line-height:30px;text-align:center;font-size:16px;font-family:Verdana, Arial, '楷体';font-weight:500;color:green;user-select:none;padding:0px;white-space;color:red;position:absolute; z-index:999; top:330px;left:455px;";
            document.body.appendChild(btn);
            btn.onclick = function () {
                $("textarea[name='codecopy']").select();
                document.execCommand('copy');
            }
        }
    }



    setInterval(function() { info(); }, 500);
    getKey();
    setInterval(function() { copybtn(); }, 1000);


})();