Greasy Fork

Greasy Fork is available in English.

企查查

企查查点击对应的获取按钮就能复制企业地址,法人名称和联系电话至剪切板,方便复制粘贴

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         企查查
// @namespace    http://tampermonkey.net/
// @version      0.7.0
// @description  企查查点击对应的获取按钮就能复制企业地址,法人名称和联系电话至剪切板,方便复制粘贴
// @author       Ying
// @match        https://www.qcc.com/web/*
// @grant        GM_setClipboard
// @license MIT
// ==/UserScript==
 
javascript: (function() {
$('.clearfix').css({"display":"none"});
  $('.pull-right').css({"display":"none"});

var tel = document.createElement("input");
    tel.setAttribute("name","number");
    tel.setAttribute("class","btn btn-primary");
    tel.setAttribute("value","获取地址");
    tel.setAttribute("style","width:130px;height:45px;");
    $('.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("class","btn btn-primary");
    nam.setAttribute("value","获取联系人");
    nam.setAttribute("style","width:130px;height:45px;");
    $('.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("class","btn btn-primary");
    phone.setAttribute("value","获取电话");
    phone.setAttribute("style","width:130px;height:45px;");
    $('.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)
    };
})();