用户分析页面自定义功能

用户分析页面增加拨号功能。。。

目前為 2023-01-17 提交的版本,檢視 最新版本

// ==UserScript==
// @name         用户分析页面自定义功能
// @namespace    用户分析页面自定义功能:拨号、加微信
// @version      0.2
// @description  用户分析页面增加拨号功能。。。
// @author       You
// @match        https://www.wjx.cn/customerservices/userdatasearch.aspx
// @icon         https://icons.duckduckgo.com/ip2/wjx.cn.ico
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    document.querySelectorAll("#divTable .wjx_alink.mobile").forEach(function(item){
            var telnumber = item.innerText
            var pos = item.parentNode;
            var a1 = document.createElement("a");
            var a2 = document.createElement("a");
            pos.appendChild(a1);
            pos.appendChild(a2);
            a1.href = "wjxpyauto://intelunison/"+telnumber;
            a1.innerText = " 拨号";
            a1.target="_blank";
            a2.href = "wjxpyauto://addwxfriend/"+telnumber;
            a2.innerText = " 加微信";
            a2.target="_blank";
})
})();