tags:

views:

119

answers:

3

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.

+1  A: 

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 &shy;

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

Joe Hopfgartner
spans have no effect. divs cause new lines.
Mike D
i said floating divs --- and check out that link i added
Joe Hopfgartner
A: 

Try this JavaScript:

http://www.codeblog.co.uk/2010/04/07/web-development/how-to-stop-skype-toolbar-from-changing-numbers-to-skype-buttons-ruining-your-website-design-update/

TimS
This is better. any idea why the first two numbers get killed while the third and fourth do not? I'd prefer to turn all recognition off.
Mike D
A: 

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.

Tom Smilack
I added this css script and enclosed the entire body with a <span class=skype_pnh_container> ... </span>. The onlt effect was to turn off line feeds between paragraphs.
Mike D
span.skype_pnh_container is the formatting for the Skype link. You shouldn't have to add one.
Tom Smilack
Do you mean I should not add a span around the body? Also, I have used JS but I am really a novice. How would I add the definition to my <head> using JS?
Mike D
Do not add any spans. Just put these in the head tag: <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script><script type="text/javascript">$(document).ready(function() { $('.skype_pnh_container').css('display', 'none !important'); })</script>
Tom Smilack
@smialck: ok, I put these lines between the <head> and </head> but the skype stuff is still displayed. Does the body have to call the function or is ready equivalent to <body onload....>?
Mike D