Skype号码识别

发布于 2024-09-24 01:42:38 字数 389 浏览 3 评论 0原文

是否可以使用某些 html 或 javascript 关闭 Skype 号码识别?我不想只为我的机器关闭它,而是为访问我的页面的任何人关闭它。我见过这个

<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />

业务,但它对我来说不适用于 Firefox。我还看到评论说 Skype 4.2 无法识别此元。

这是一个很大的问题,因为 Skype 将表中的数据识别为电话号码。例如,具有两个角度的线

00 23 58 17 45 00

被识别为乍得的电话号码!

我知道我可以在这些数字中添加一些看不见的垃圾,但它们有很多,而且非常丑陋。

Is it possible to turn off skype number recognition with some html or javascript? I'm NOT interested in turning it off only for my machine but for anyone visiting my page. I have seen the

<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />

business but it does not work for me with Firefox. I've also seen comments that this meta is not recognized in skype 4.2.

This is quite a problem since skype is recognizing data in table as phone numbers. For example, the line with two angles

00 23 58 17 45 00

is recognized as a phone number in Chad!

I know I could add some invisible rubbish to these numbers but there are a bunch of them and that's pretty ugly.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

捎一片雪花 2024-10-01 01:42:38

您始终可以添加以下 CSS:

#skype_pnh_container, #skype_plugin_object, #skype_highlighting_settings {
    display: none !important;
}

You could always add the following CSS:

#skype_pnh_container, #skype_plugin_object, #skype_highlighting_settings {
    display: none !important;
}
小傻瓜 2024-10-01 01:42:38

是的,有可能。
你必须在你的html代码中分割数字,这样它就不会被识别为一个整体。
用零宽度跨度或透明图像或其他东西分隔它。
如果您将路由代码和数字包装在单独的跨度标记中甚至就足够了。或者更好的浮动左 div 标签...
我没有安装 Skype,所以你必须尝试一下,但这就是要走的路。

更新:
你也可以看看生成了什么html代码并用javascript代码删除它,但这是致命的低效和不必要的

解决方案:使用软连字符­似乎就足够了

这里有一篇文章关于这一点: http:// /www.ambrosite.com/blog/hide-phone-numbers-from-skype-using-the-html-soft-hyphen

yes its possible.
you have to split the number in your html code, so that it is not recognised as a whole.
seperate it by an zero width span or an transparent image or something.
it could even be enough if you wrap the routing code and the number in seperat span tags. or better floating left div tags...
i have no skype installed so you have to try it out, but thats the way to go.

update:
you could as well see what html code is generaged and remove it with a javascript code but thats deadly inefficient and unnecessary

SOLUTION: it seems to be enough to use the soft hyphen character ­

heres an article on that: http://www.ambrosite.com/blog/hide-phone-numbers-from-skype-using-the-html-soft-hyphen

终遇你 2024-10-01 01:42:38

我在互联网上看到了很多可能的解决方案 javascript 解决方案、元标记、css,也许我发现了一个真正适用于我的网站的 hack,我在一些计算机上进行了测试,它可以工作,我认为它会工作,直到 Skype 不改变某些东西在他们的代码中。

我正在研究 Skype 在我们的页面上到底做了什么,它在电话号码周围创建了一些跨度,正如您已经说过的,但它甚至在页面末尾添加了一个 标签文档,就在正文关闭标签之后。

在这里我看到了窍门!在该对象之前有一个配置标签:

<span id="skype_highlighting_settings" display="none" autoextractnumbers="1"></span>

这是由插件动态添加的!但这里的解决方案变得显而易见,为了最终停止 Skype 扰乱您的设计并避免更改电话号码,解决方案是在文档的早期插入以下标记:

<span id="skype_highlighting_settings" display="none" autoextractnumbers="0"></span>

注意 autoextractnumbers="0",这就是技巧。该文档无论如何都不会使用该标签进行验证,因为没有属性“autoextractnumbers”,但我注意到即使注释它也可以工作:

<!-- <span id="skype_highlighting_settings" display="none" autoextractnumbers="0"></span> -->

就是这样!享受没有杂乱插件的网页!并且您的网页仍将正确验证。希望它也适合你!我已经在几台计算机上测试了 3 个不同的浏览器和 2 个不同的 Skype 版本,现在它对我有用,让我知道它是否也适合你,如果它有效,请分享:)

I saw over the interweb a lot of possible solutions javascript solutions, meta tags, css and maybe I found an hack actually working for my websites, I tested on some computers and it work and I think it will work until skype don't change something in their code.

I was looking what is the skype exactly doing on our pages, and it creates some span around the phone numbers, as you already said, but it even add an <object> tag at the end of the document, just after the body closed tag.

And here I saw the trick! Just before that object there is a configuration tag:

<span id="skype_highlighting_settings" display="none" autoextractnumbers="1"></span>

This is added dynamically by the plugin! but here the solution become obvious, to finally stop skype messing with your design and avoid changing phone number the solution is to insert very early in the document the following tag:

<span id="skype_highlighting_settings" display="none" autoextractnumbers="0"></span>

notice the autoextractnumbers="0", here is the trick. The document will not validate anyway with that tag because there is no attribute "autoextractnumbers" but i noticed that it works even if commented:

<!-- <span id="skype_highlighting_settings" display="none" autoextractnumbers="0"></span> -->

And that's it! Enjoy your webpages free from messy plugins! And your web page will still validate correctly. Hope it works for you too! I have tested on a couple of computer 3 different browsers and 2 different skype versions, for now it works for me, let me know if it works for you too and if it works share it :)

浪漫人生路 2024-10-01 01:42:38

我会尝试添加 CSS:

span.skype_pnh_container {
  display: none !important;
}

不幸的是我无法测试它,因为我无法让工具栏在 Firefox 中工作,而且 IE 的开发人员工具也无法删除它。如果它不起作用,我会尝试在页面加载后通过 JavaScript 添加它。

I would try adding the CSS:

span.skype_pnh_container {
  display: none !important;
}

Unfortunately I can't test it because I can't get the toolbar to work in Firefox, and IE's developer tools aren't cutting it. If it doesn't work, I'd try adding it through javascript after the page loads.

梦幻的心爱 2024-10-01 01:42:38

针对这个问题提供的所有解决方案都不再有效,或者效率不高。以下 CSS 将非常有效地删除 Skype 点击通话按钮。

body span[class ^= "skype_pnh_print_container"] {
    display: inline !important;
}

body span.skype_pnh_container {
    display: none !important;
}

All of the solutions provided to this question are no longer working, or aren't very efficient. The following CSS will remove the Skype Click-to-Call buttons very efficiently.

body span[class ^= "skype_pnh_print_container"] {
    display: inline !important;
}

body span.skype_pnh_container {
    display: none !important;
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文