Disable Lync Click to Call detecting numbers in a web page

后端 未结 5 633
时光说笑
时光说笑 2020-12-24 15:10

Is there a way to stop Microsoft Lync from detecting phone numbers in a web page, and adding its click to call icon to that phone number in Internet Explorer?

Obviou

5条回答
  •  春和景丽
    2020-12-24 15:59

    I was unable to get Option 2 to work. I think this is because the add-on is triggered after the page is loaded. So that got me to thinking... If I trigger this after 5 seconds of the page loading, then hide the elements. This theory proved successfull, but it hid the phone number too.

    I took it a step further and rebuilt the element for the Lync Click to Call class after stripping out the phone number. My steps may be crude, but effective.

        var ie = (document.all) ? true : false;
    
        function hideClass(objClass){
         //  This function will hide Elements by object Class
         //  Works with IE and Mozilla based browsers
    
        var elements = (ie) ? document.all : document.getElementsByTagName('*');
           for (i=0; i"
             }
           }
         }
         function getPhone(thisStr){
            newStr = "";
            for (n=0; n

提交回复
热议问题