twitch.tv URLs appear to be banned from 4chan, no point in maintaining this code
This commit is contained in:
parent
ba9f2c65a3
commit
6002d118d6
@ -365,31 +365,6 @@ Linkify =
|
|||||||
el: (a) ->
|
el: (a) ->
|
||||||
$.el 'iframe',
|
$.el 'iframe',
|
||||||
src: "http://strawpoll.me/embed_1/#{a.dataset.uid}"
|
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: """
|
|
||||||
<param name='allowFullScreen' value='true' />
|
|
||||||
<param name='flashvars' value='channel=#{channel}&start_volume=25&auto_play=false#{if chapter then "&chapter_id=" + chapter else ""}' />
|
|
||||||
"""
|
|
||||||
|
|
||||||
else
|
|
||||||
channel = (/(\w+)/.exec a.dataset.uid)[0]
|
|
||||||
|
|
||||||
$.el 'object',
|
|
||||||
data: "http://www.twitch.tv/widgets/live_embed_player.swf?channel=#{channel}"
|
|
||||||
innerHTML: """
|
|
||||||
<param name="allowFullScreen" value="true" />
|
|
||||||
<param name="movie" value="http://www.twitch.tv/widgets/live_embed_player.swf" />
|
|
||||||
<param name="flashvars" value="hostname=www.twitch.tv&channel=#{channel}&auto_play=true&start_volume=25" />
|
|
||||||
"""
|
|
||||||
,
|
,
|
||||||
key: 'Vocaroo'
|
key: 'Vocaroo'
|
||||||
regExp: /.*(?:vocaroo.com\/)([^#\&\?]*).*/
|
regExp: /.*(?:vocaroo.com\/)([^#\&\?]*).*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user