OilCan: Grease up your Android browser
Posted 1 year, 2 months ago at 12:13 pm. 0 comments
Jeffrey Sharkey has created OilCan a thin wrapper on top of the WebKit shipping on Android that allows you to install userscripts that allow you to access to Android "Intents".
Intents are very nice abstractions that allow you to access large components and reuse them in different ways. Romain Guy has a nice post on them.
OilCan lets you customize any website by inserting JavaScript to change the website and help it reach into the Android world using intents.
OilCan inserts some powerful buttons into normal websites, and that power comes from Android intents. We didn't write a barcode scanner or the radar app into OilCan, but using intents we can launch those apps with parameters. We can request the Barcode Scanner app to scan something and return the code to us, or launch the Radar app with a specific lat/lon.
Userscripts can do other cool stuff, like hide the navigation columns in Wikipedia to make it easier to view on small screens. This is a proof-of-concept for now, and will probably turn into a binary plugin for the default Browser in the future.
A nice piece from an example shows the intent call out:
Very cool!