summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Burwell <bburwell1@gmail.com>2014-06-12 20:36:54 -0400
committerBen Burwell <bburwell1@gmail.com>2014-06-12 20:36:54 -0400
commitd181f51cac8aa191cc6ee568183d205c7b7b148c (patch)
treefda3365f7e2e8cea23c0e4d1cab15d758e4c939a
parent00b936ecdbef55b3182a9def0dd75c5064783ab4 (diff)
Implement Chrome inline installation for ViewTime
-rw-r--r--_layouts/master.html5
-rw-r--r--_posts/2014-06-08-viewtime.markdown11
2 files changed, 12 insertions, 4 deletions
diff --git a/_layouts/master.html b/_layouts/master.html
index 1c8efec..c411dfe 100644
--- a/_layouts/master.html
+++ b/_layouts/master.html
@@ -62,6 +62,11 @@
{% endif %}
<meta name="twitter:domain" content="BenBurwell.com">
+ {% if page.chrome-webstore-item %}
+ <!-- Chrome Extension -->
+ <link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/{{ page.chrome-webstore-item }}">
+ {% endif %}
+
<!-- TypeKit -->
<script type="text/javascript">
(function() {
diff --git a/_posts/2014-06-08-viewtime.markdown b/_posts/2014-06-08-viewtime.markdown
index ce3ae6a..a6628e4 100644
--- a/_posts/2014-06-08-viewtime.markdown
+++ b/_posts/2014-06-08-viewtime.markdown
@@ -5,15 +5,18 @@ description: ViewTime adds the amount of time a YouTube video has been played un
date: 2014-06-08 00:00:00
category: projects
image: http://www.benburwell.com/assets/images/viewtime-icon.png
+chrome-webstore-item: jcplgieacjacdjabiiedcdfcpbgohbpp
---
-It’s rather astonishing to consider the amount of time for which some viral videos have been watched. For example, [Ylvis’ “The Fox”](https://www.youtube.com/watch?v=jofNR_WkoCE) has been watched for nearly 3000 years.
+It’s rather astonishing to consider the amount of time for which some viral videos have been watched. For example, Ylvis’ “The Fox” has been watched for nearly 3000 years.
ViewTime is a plugin for Safari and Google Chrome that adds the duration the video has been played under its view count.
-![ViewTime example](/assets/images/viewtime-example.png)
-
Installation
------------
-Download latest version for [Safari](http://updates.benburwell.com/safari/viewtime/latest.safariextz) and double-click to install, or [install from the Chrome Webstore](https://chrome.google.com/webstore/detail/viewtime/jcplgieacjacdjabiiedcdfcpbgohbpp).
+_Safari:_ [Download latest version](http://updates.benburwell.com/safari/viewtime/latest.safariextz) and double-click to install.
+
+_Chrome:_ <a href="javascript:chrome.webstore.install();" onclick="chrome.webstore.install();return false;">Click to install</a> or [view on the Chrome Webstore](https://chrome.google.com/webstore/detail/viewtime/jcplgieacjacdjabiiedcdfcpbgohbpp).
+
+![ViewTime example](/assets/images/viewtime-example.png)