We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b0a164 commit 8b89a82Copy full SHA for 8b89a82
tools/chrome/extensions/share-services/digg/favicon.ico
1.12 KB
tools/chrome/extensions/share-services/digg/launch.html
@@ -0,0 +1,15 @@
1
+<!doctype html>
2
+<html>
3
+ <script>
4
+ window.addEventListener("load", function() {
5
+ if(window.intent) {
6
+ if(window.intent.type == "text/uri-list") {
7
+ document.location = "http://digg.com/submit?phase=2&url="+ encodeURIComponent(window.intent.data);
8
+ }
9
10
+ });
11
+ </script>
12
+ <body>
13
+ Test
14
+ </body>
15
+</html>
tools/chrome/extensions/share-services/digg/manifest.json
@@ -0,0 +1,14 @@
+{
+ "name": "Share to Digg",
+ "version": "0.0.0.1",
+ "icons" : {
+ "16" : "favicon.ico"
+ },
+ "intents" : {
+ "http://webintents.org/share" : {
+ "type" : ["text/uri-list"],
+ "title" : "Share to Digg",
+ "path" : "/launch.html"
+}
0 commit comments