From 6fe203bcc9635b720be257343b7014b2d6ac8b29 Mon Sep 17 00:00:00 2001 From: Kabir Sala Date: Wed, 12 Feb 2014 23:43:01 +0100 Subject: [PATCH] Add gfycat.com embedding --- builds/4chan-X.user.js | 9 +++++++++ builds/crx/script.js | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 75d8cfe01..f706c1ce8 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -8163,6 +8163,15 @@ }); } }, + gfycat: { + regExp: /.*gfycat.com\/(?:iframe\/)?(\S*)/, + el: function(a) { + var div; + return div = $.el('iframe', { + src: "http://gfycat.com/iframe/" + a.dataset.uid + }); + } + }, SoundCloud: { regExp: /.*(?:soundcloud.com\/|snd.sc\/)([^#\&\?]*).*/, style: 'height: auto; width: 500px; display: inline-block;', diff --git a/builds/crx/script.js b/builds/crx/script.js index 35cccd420..becefefb1 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -8147,6 +8147,15 @@ }); } }, + gfycat: { + regExp: /.*gfycat.com\/(?:iframe\/)?(\S*)/, + el: function(a) { + var div; + return div = $.el('iframe', { + src: "http://gfycat.com/iframe/" + a.dataset.uid + }); + } + }, SoundCloud: { regExp: /.*(?:soundcloud.com\/|snd.sc\/)([^#\&\?]*).*/, style: 'height: auto; width: 500px; display: inline-block;',