Giter Club home page Giter Club logo

open_with_default's Introduction

Open with Default

A tiny extension for Google Chrome on Mac OS X which adds "Open with Default" to context menu of links. We can open the link wifh Safari or Firefox from Chrome.

This extension use native code to run external application like Safari or Firefox from Chrome. The native code are running as NPAPI plugin like Flash Player in background page. See http://code.google.com/chrome/extensions/trunk/npapi.html for more details.

This extension might be good example how to implement native plugin for Google Chrome extension on Mac OS X. Enjoy!

How to Build and Test

Open OpenWithDefault.xcodeproj with Xcode then build. Enable developer mode on Extensions page on Chrome, then load unpacked extension from Extension folder.

Build .crx File

Select "Packaging" target then build it, you'll get OpenWithDefault.crx in project folder.

Run Chrome

This extension uses context menu API which is only enabled in DevChannel. You need to use Chrome from DevChannel.

On XCode, add Google Chrome as a custom executable then use "Build and Run" for debug this extension on "OpenWithDefault" Target, or just select "Google Chrome" Target and build it. You can run Chrome with experimental api.

Open URL with Default Application

Use Launch Service to open URL with the default application which user select for opening URL. See Launch Service Reference.

Security Risk

Use this extension AT YOUR OWN RISK, WE MAKE NO WARRANTY.

open_with_default's People

Contributors

niw avatar

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.