From 6002d118d6fe6cf21955a1ed16d56d2eaad40471 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 8 May 2014 23:35:03 -0700 Subject: [PATCH] twitch.tv URLs appear to be banned from 4chan, no point in maintaining this code --- src/Linkification/Linkify.coffee | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index b2470ba56..2582108f2 100755 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -365,31 +365,6 @@ Linkify = el: (a) -> $.el 'iframe', src: "http://strawpoll.me/embed_1/#{a.dataset.uid}" - , - key: 'TwitchTV' - regExp: /.*(?:twitch.tv\/)([^#\&\?]*).*/ - style: "border: none; width: 640px; height: 360px;" - el: (a) -> - if result = /(\w+)\/(?:[a-z]\/)?(\d+)/i.exec a.dataset.uid - [_, channel, chapter] = result - - $.el 'object', - data: 'http://www.twitch.tv/widgets/archive_embed_player.swf' - innerHTML: """ - - -""" - - else - channel = (/(\w+)/.exec a.dataset.uid)[0] - - $.el 'object', - data: "http://www.twitch.tv/widgets/live_embed_player.swf?channel=#{channel}" - innerHTML: """ - - - -""" , key: 'Vocaroo' regExp: /.*(?:vocaroo.com\/)([^#\&\?]*).*/