How to prevent phone numbers to be converted into Skype links?

后端 未结 14 703
猫巷女王i
猫巷女王i 2020-12-13 02:08

On those Windows machines with Skype installed, it tends to convert all phone-formatted numbers to Skype links so you can click it in order to make a call on Skype.

14条回答
  •  执笔经年
    2020-12-13 02:36

    Skype has taken to adding a randomly generated string of numbers to the end of their span tag, so the above response from Groo is not entirely accurate anymore. To correctly select all Skype tags on a page, use CSS3 wildcard selectors like such :

    span[class^='skype_pnh_container'] {display:none !important;}
    span[class^='skype_pnh_print_container'] {display:inline !important;}
    

    the ^= operator causes an attribute selector to mach elements that have an class containing a value that STARTS WITH 'skype_pnh_container' and 'skype_pnh_print_container'

提交回复
热议问题