Skip to content

Commit 8b89a82

Browse files
committed
#153 Adding Digg support
1 parent 9b0a164 commit 8b89a82

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -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>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "Share to Digg",
3+
"version": "0.0.0.1",
4+
"icons" : {
5+
"16" : "favicon.ico"
6+
},
7+
"intents" : {
8+
"http://webintents.org/share" : {
9+
"type" : ["text/uri-list"],
10+
"title" : "Share to Digg",
11+
"path" : "/launch.html"
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)