Code Monkey home page Code Monkey logo

skype-for-chrome's Introduction

Fund this project!
Flattr this

This plugin will link phone numbers in web pages you visit, so that when you click them a call will be place with Skype, or any other application you configure to respond to a callto: URL.

Installation

  1. Clone the git repository
  2. Open the Chrome extensions window (Menu -> Tools -> Extensions)
  3. Click the + next to "Developer Mode" if it's not already expanded
  4. Click "Load unpacked extension...", and choose the extension's directory on your drive

Using The Plugin

This plugin simply turns phone numbers into links like "callto:+18005551212". Chrome will then hand that off to the OS to figure out what to do with it. Skype on Windows should register a handler for this type of URL. I'm not sure about Mac.

Linux

In Linux, Chrome uses the xdg-open command to open links like this. Skype doesn't automatically register a URL handler though, so that must be done manually.

  1. Download the latest version of action_handler.py by Philipp Kilmann, from http://www.kolmann.at/philipp/linux/skype_action_handler/

  2. Place that somewhere on your PATH (/usr/local/bin, for example).

  3. Open a terminal and issue the following commands:

    gconftool-2 -s -t string /desktop/gnome/url-handlers/callto/command '/usr/local/bin/action_handler.py "%s"' gconftool-2 -s -t bool /desktop/gnome/url-handlers/callto/enabled true

  4. You may need to edit the action_handler.py script to account for the fact that Chrome URL encodes the phone number. So +18005551212 becomes %2B18005551212. Change the correct lines to look like the following:

    import dbus import sys import re import string import urllib

    ...

    user = "" cmd = "" multiuser = 0 arg1 = urllib.unquote(sys.argv[1]);

    re1 = re.match('^(skype|callto|tel):/?/?([+]?[.\w-]+[;[.\w-]+]?)/?$', arg1); re2 = re.match('^(skype|callto|tel):/?/?([+]?[.\w-]+[;[.\w-]+]?)?(\w+)/?$', arg1); re3 = re.match('^(skype):/?/??(chat)&(blob)=([.\w-]+)/?$', arg1);

You may also be interested in the other scripts that Philipp Kolmann has put together for Skype on Linux. Check them out at http://www.kolmann.at/philipp/linux/.

To Do

Modification

Please do feel free to modify this plugin at will. The basic functionality is in the file contentscript.js. It is very simple at the moment. If you make additions that you would like to see included, just send me a Github pull request.

skype-for-chrome's People

Contributors

jacksenechal avatar scharrels avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

skype-for-chrome's Issues

Phone number regex

I am using this regex for a modified version of the Google Talk plugin:

/(^|\s)(+(9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7)[0-9-. ]{1,14}|(?:+?1[-. ]?)?(?([0-9]{3}))?[-. ]?([0-9]{3})[-. ]?([0-9]{4}))(\s|$)/m

I matches valid international numbers up to 14 digits long separated by spaces, dashes (-) or periods (.) and in the case of US numbers it matches only 10 digit numbers in pretty much any valid format, with or without the country code.

Hope this is useful.

Would be great to add more specific validation for other countries as needed...

Causes Chrome to render .txt extensions

Enabling the Skype Links 0.3 extension causes chrome to render code (including javascript - window.location) in files with .txt extension. I would have thought chrome wouldn't pass a .txt file to be rendered.

Disabling the extension returns viewing these files as plain text.

It would be nice to have both functionality.

David

Opens Skype, but doesn't open user(s) or dial the number

I clicked a link for a US number, and it opened Skype (running in background already), and brought up the skype window, but didn't queue up the number to be dialed, nor did it dial the number, as I expected. I expected it start Skype (if not started), bring Skype window to foreground, and dial the number.

Is there something I've done wrong? I've installed the app, and tried changing to "tel" and "callto", but no difference.

What am I missing?

Win7-32
Skype 6.30.107

Thanks,

Mark
markfj(at)gmail(dot)com
Skype: markfj
334-714-4723

configure callto in Windows registry

I have been using Skype Links for Chrome. Thanks for the tool.

If it is possible I would like to configure the callto key in the windows registry to call a website with a get. For example: http://www.mywebsite.com?callto="555123456". Do you know how I would do that?

Currently my callto key is configured to Skype as below but I would like to change that to a website.

TIA

Current configuration:
[HKEY_CLASSES_ROOT\callto]
@="URL:Callto Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\callto\DefaultIcon]
@=""C:\Program Files\Skype\Phone\Skype.exe",0"

[HKEY_CLASSES_ROOT\callto\shell]

Stopped working

I had this plugin working great after I reworked the Regex a bit. The other day, I notice my regex had been reset to default, and it doesn't pick up any numbers. It is actually behaving like it is not even enabled.

I made a test page with

Phone: 111-555-1212

.

I changed the regext to /\d/ and it still doesn't pick anything up?

The extension is enabled.

Opens new Chrome window instead of Skype

Not sure if I've messed something up, but I just installed the extension in Win 7 (from Google's Chrome Extensions site) and when I first clicked on a callto link, I got a lengthy message basically asking if I wanted it to launch Skype. I said yes, also checking the "make this the default behavior" box. But instead of a skype call starting, it just opens up a blank Chrome window. Not sure what to do. Skype has been installed all along and working fine. I'm also not sure how to un-set this as the default function for callto links now (which is really a "how do I use Chrome" question).

how do i use the skype link?

I have friends in Mexico who i like skyping with, ive never had a chromebook..and do not know how to use the skype on here. if it even has one!!!!

PLEASE tell how to get it and how to use it on the chromebook.

Microsoft Lync Compatibility

This is an awesome extension for Chrome, but unfortunately I don't use Skype. This application almost works with Microsoft Lync though which is the app that I do use for voice calls (along with many other businesses). It would be great if there would be a way of producing a second version of this extension or adding the option in this extension to create the links in a way that MS Lync can interpret. This could be done very simply in two different ways.

  1. MS Lync prefers links to be in the form of "tel:+11231231234"
  2. but it can also read them in the form of "callto:tel:+11231231234"

You can read more about Lync links here: http://technet.microsoft.com/en-us/library/gg398376.aspx

I almost though that the "callto:tel:" method would work since you already support "callto:" links, but unfortunately the links weren't normalized from the regex. I think that it is discarding the "tel:" part when I add it in. I guess the simplest way to make this all work would be to allow for someone to add "tel:" in the first part of the normalization.

Please feel free to message me if there is anything I can do to help as far as testing goes.

Thank you!
-Aaron

Causes some page text with angle brackets to be hidden

I just found that when this extension is enabled, I was unable to view some text on certain webpages. I narrowed it down to a quick repro:

  1. enable extension
  2. visit http://docs.splunk.com/Documentation/Splunk/latest/admin/Propsconf
  3. search for "for a given".

The sentence near the search result should display (I've replaced angle brackets with square brackets): "This stanza enables properties for a given [spec].". What is happening is that the portion including [spec] is hidden, but only when this extension is enabled.

To validate that this is a display issue, and not server-side:

  1. View source of same webpage
  2. search for "for a given"
  3. Note that the HTML source includes: "This stanza enables properties for a given <spec>."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.