Greasy Fork

Greasy Fork is available in English.

企查查

企查查获取企业地址,法人名称和联系电话

当前为 2022-06-28 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         企查查
// @namespace    http://tampermonkey.net/
// @version      0.6.1
// @description  企查查获取企业地址,法人名称和联系电话
// @author       Ying
// @match        https://www.qcc.com/web/*
// @grant        GM_setClipboard
// @license MIT
// ==/UserScript==
 
javascript: (function() {
 
var tel = document.createElement("input");
    tel.setAttribute("name","number");
    tel.setAttribute("id","jobs");
    tel.setAttribute("value","获取地址");
    tel.setAttribute("style","width:130px;height:45px;line-height:43px;box-sizing:border-box;vertical-align:middle;font-size:16px;font-weight:500;text-align:center;background:#5dd5c8;color:white;");
    $('.npanel-heading').append(tel);
 
    tel.onclick=function(){
        var nr = document.getElementsByClassName("relate-info")[0];
        var nt = nr.getElementsByClassName("rline")[2];
        var pt = nt.getElementsByTagName("span")[0];
        var pp = pt.getElementsByClassName("copy-value")[0].innerText;
        GM_setClipboard(pp);
        console.log(pp)
    };
 
  var nam = document.createElement("input");
    nam.setAttribute("name","number");
    nam.setAttribute("id","jobs");
    nam.setAttribute("value","获取联系人");
    nam.setAttribute("style","width:130px;height:45px;line-height:43px;box-sizing:border-box;vertical-align:middle;font-size:16px;font-weight:500;text-align:center;background:#5dd5c8;color:white;");
    $('.npanel-heading').append(nam);
 
    nam.onclick=function(){
        var nr = document.getElementsByClassName("relate-info")[0];
        var nt = nr.getElementsByClassName("rline")[0];
        var pt = nt.getElementsByClassName("f")[0];
        var pp = pt.getElementsByClassName("val")[0].innerText;
        GM_setClipboard(pp);
        console.log(pp)
    };
 
var phone = document.createElement("input");
    phone.setAttribute("name","number");
    phone.setAttribute("id","jobs");
    phone.setAttribute("value","获取电话");
    phone.setAttribute("style","width:130px;height:45px;line-height:43px;box-sizing:border-box;vertical-align:middle;font-size:16px;font-weight:500;text-align:center;background:#5dd5c8;color:white;");
    $('.npanel-heading').append(phone);
 
    phone.onclick=function(){
        var nr = document.getElementsByClassName("relate-info")[0];
        var nt = nr.getElementsByClassName("rline")[1];
        var pt = nt.getElementsByClassName("f")[0];
        var pp = pt.getElementsByClassName("val")[0].innerText;
        GM_setClipboard(pp);
        console.log(pp)
    };
})();