Skip to content

Commit

Permalink
#157 first set of example extensions for shorten intent
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKinlan committed Feb 1, 2012
1 parent aad9c7c commit fd00186
Show file tree
Hide file tree
Showing 16 changed files with 55 additions and 92 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ extensions: all
./packcrx.sh tools/chrome/extensions/share-services/linkedin tools/chrome/key.pem
./packcrx.sh tools/chrome/extensions/share tools/chrome/key.pem
./packcrx.sh tools/chrome/extensions/shorten tools/chrome/key.pem
./packcrx.sh tools/chrome/extensions/shorten-services/bit.ly tools/chrome/key.pem
./packcrx.sh tools/chrome/extensions/save-services/instapaper tools/chrome/key.pem
./packcrx.sh tools/chrome/extensions/save-services/box tools/chrome/key.pem
./packcrx.sh tools/chrome/extensions/save tools/chrome/key.pem
Expand Down
Binary file added tools/chrome/extensions/assets/shorten.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/chrome/extensions/assets/shorten.pxm
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
92 changes: 0 additions & 92 deletions tools/chrome/extensions/save-services/instapaper/instapaper.html

This file was deleted.

Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
12 changes: 12 additions & 0 deletions tools/chrome/extensions/shorten-services/bit.ly/launch.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html>
<script>
window.addEventListener("load", function() {
if(window.intent) {
if(window.intent.type == "text/uri-list") {
document.location = "https://bitly.com/?v=3&u="+ encodeURIComponent(window.intent.data);
}
}
});
</script>
</html>
15 changes: 15 additions & 0 deletions tools/chrome/extensions/shorten-services/bit.ly/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Shorten with Bit.ly",
"version": "0.0.0.2",
"icons" : {
"16" : "favicon.ico",
"128" : "128.png"
},
"intents" : {
"http://webintents.org/shorten" : {
"type" : ["text/uri-list"],
"title" : "Shorten with Bit.ly",
"path" : "/launch.html"
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
12 changes: 12 additions & 0 deletions tools/chrome/extensions/shorten-services/goo.gl/launch.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>
<html>
<script>
window.addEventListener("load", function() {
if(window.intent) {
if(window.intent.type == "text/uri-list") {
document.location = "http://digg.com/submit?phase=2&url="+ encodeURIComponent(window.intent.data);
}
}
});
</script>
</html>
15 changes: 15 additions & 0 deletions tools/chrome/extensions/shorten-services/goo.gl/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Shorten with Goo.gl",
"version": "0.0.0.2",
"icons" : {
"16" : "favicon.ico",
"128" : "128.png"
},
"intents" : {
"http://webintents.org/shorten" : {
"type" : ["text/uri-list"],
"title" : "Shorten with Goo.gl",
"path" : "/launch.html"
}
}
}

0 comments on commit fd00186

Please sign in to comment.