Skip to content

Instantly share code, notes, and snippets.

@danzel
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danzel/179ac8eb09fc19090cd2 to your computer and use it in GitHub Desktop.
Save danzel/179ac8eb09fc19090cd2 to your computer and use it in GitHub Desktop.
gfycat support for jabbr
jabbr now supports custom content providers, making it very easy to add gfycat support.
Hit the administration link, scroll to the bottom and enter this:
Name: gfycat
Domains: http://gfycat.com/;http://www.gfycat.com/;https://gfycat.com/;https://www.gfycat.com/
Extract: .*gfycat\.com\/(\w+)
Output:
<video width="425" height="344" autoplay="" loop="" muted="muted" style="display: block;" poster="//thumbs.gfycat.com/{0}-poster.jpg">
<source id="webmsource" src="//zippy.gfycat.com/{0}.webm" type="video/webm">
<source id="mp4source" src="//zippy.gfycat.com/{0}.mp4" type="video/mp4">
Sorry, you don't have HTML5 video and we didn't catch this properly in javascript.
You can try to view the gif directly: <a href="http://fat.gfycat.com/{0}.gif">http://fat.gfycat.com/{0}.gif</a>.
</video>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment