企查查

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

目前为 2022-06-28 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name 企查查
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.6
  5. // @description 企查查获取企业地址,法人名称和联系电话
  6. // @author Ying
  7. // @match https://www.qcc.com/web/*
  8. // @grant GM_setClipboard
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. javascript: (function() {
  13.  
  14. var tel = document.createElement("input");
  15. tel.setAttribute("name","number");
  16. tel.setAttribute("id","jobs");
  17. tel.setAttribute("value","获取地址");
  18. 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;");
  19. $('.copy-title').append(tel);
  20.  
  21. tel.onclick=function(){
  22. var nr = document.getElementsByClassName("relate-info")[0];
  23. var nt = nr.getElementsByClassName("rline")[2];
  24. var pt = nt.getElementsByTagName("span")[0];
  25. var pp = pt.getElementsByClassName("copy-value")[0].innerText;
  26. GM_setClipboard(pp);
  27. console.log(pp)
  28. };
  29.  
  30. var nam = document.createElement("input");
  31. nam.setAttribute("name","number");
  32. nam.setAttribute("id","jobs");
  33. nam.setAttribute("value","获取联系人");
  34. 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;");
  35. $('.copy-title').append(nam);
  36.  
  37. nam.onclick=function(){
  38. var nr = document.getElementsByClassName("relate-info")[0];
  39. var nt = nr.getElementsByClassName("rline")[0];
  40. var pt = nt.getElementsByClassName("f")[0];
  41. var pp = pt.getElementsByClassName("val")[0].innerText;
  42. GM_setClipboard(pp);
  43. console.log(pp)
  44. };
  45.  
  46. var phone = document.createElement("input");
  47. phone.setAttribute("name","number");
  48. phone.setAttribute("id","jobs");
  49. phone.setAttribute("value","获取电话");
  50. 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;");
  51. $('.copy-title').append(phone);
  52.  
  53. phone.onclick=function(){
  54. var nr = document.getElementsByClassName("relate-info")[0];
  55. var nt = nr.getElementsByClassName("rline")[1];
  56. var pt = nt.getElementsByClassName("f")[0];
  57. var pp = pt.getElementsByClassName("val")[0].innerText;
  58. GM_setClipboard(pp);
  59. console.log(pp)
  60. };
  61. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址