News for hackers. Stuff that matters.
Re:Chrome Extension Development, By Practical Example by bsimpson on Friday January 20, 2012 @08:07PM (#3492129)
The problem with extension development is that each browser does it differently.

If you abstract away the browser-specific API, it's not too hard to write a cross-browser extension. Here's one that runs on both Chrome and Safari:

http://code.google.com/p/marking-menu-js/source/browse/#svn%...

Notice how it implements the important bits of Chrome's extension API in terms of Safari's:

http://code.google.com/p/marking-menu-js/source/browse/trunk...

That allows you to easily port Chrome extensions over.

Re:Chrome Extension Development, By Practical Example by candeira on Saturday January 21, 2012 @04:47AM (#3493169)
It seems to me there is a need for a browser extension framework/polyfill that allows you to write code once, deploy to any browser. Would that even be possible?
Re:Chrome Extension Development, By Practical Example by atdt on Friday January 20, 2012 @06:57PM (#3491873)
Hey, cool! The source code for my Chrome extension is also on GitHub:

https://github.com/atdt/chrome-force-media-type/blob/master/...

The Makefile might be interesting to you. It's very simple, but it automates an annoying part of the development cycle.

Re:Chrome Extension Development, By Practical Example by zakj on Friday January 20, 2012 @07:23PM (#3491996)
Thank you for the pack target! I should have known Chrome would have a command-line flag for this, but never thought to check.

My extension is also on GitHub: https://github.com/cabin/linkhunter

Re:Chrome Extension Development, By Practical Example by jugglinmike on Friday January 20, 2012 @09:50PM (#3492403)
Throwing mine out there, too--for spoofing your user-agent string:

https://github.com/jugglinmike/chrome-user-agent

Re:Chrome Extension Development, By Practical Example by paulirish on Saturday January 21, 2012 @12:20PM (#3493991)
Hey Mike, just FYI this is now available in DevTools: http://cache.gyazo.com/1c4bc26914b409a85884147d6f9fec03.png
Re:Chrome Extension Development, By Practical Example by BenjaminCoe on Friday January 20, 2012 @07:04PM (#3491901)
Cool thanks :) I was trying to consolidate some of the stuff I'd learned building the extension for http://attachments.me into a simple example.
Re:Chrome Extension Development, By Practical Example by tkahn6 on Friday January 20, 2012 @07:44PM (#3492061)
Similarly y'all might find my Chrome extension for HN interesting.

https://github.com/tkahn6/hn-newcomments-chrome

And if you're interested in using it:

https://chrome.google.com/webstore/detail/kikfikaiccdaabdilg...

Re:Chrome Extension Development, By Practical Example by zobzu on Friday January 20, 2012 @07:05PM (#3491906)
"Why Create a Chrome Extension?

    It's a great way to integrate seamlessly with a third-party site like Gmail.
        It in turn solves the "other site" problem, i.e., your customers don't want to go to yet another website.
    The Chrome Web Store is a wonderful source of traffic.
    All your friends are doing it.
"

i find the readme scary. it encourages closing the web.

the rest's good - but - the intention's bad.

Re:Chrome Extension Development, By Practical Example by BenjaminCoe on Friday January 20, 2012 @07:13PM (#3491942)
I agree in principal -- I'm not advocating that the whole internet be centralized to a few major websites. Having said that, integrating with a site like Gmail can be a good way for a small fish to get some traction.