forked from GithubBackups/vichan
Merge branch 'youtube-js' of https://github.com/czaks/8chan into czaks-youtube-js
Conflicts: inc/instance-config.php
This commit is contained in:
commit
3874841f36
@ -132,6 +132,7 @@
|
||||
$config['additional_javascript'][] = 'js/thread-watcher.js';
|
||||
$config['additional_javascript'][] = 'js/ajax.js';
|
||||
$config['additional_javascript'][] = 'js/show-own-posts.js';
|
||||
$config['additional_javascript'][] = 'js/youtube.js';
|
||||
|
||||
//$config['font_awesome_css'] = '/netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css';
|
||||
|
||||
@ -160,8 +161,8 @@
|
||||
|
||||
$config['embedding'] = array(
|
||||
array(
|
||||
'/^https?:\/\/(\w+\.)?youtube\.com\/watch\?v=([a-zA-Z0-9\-_]{10,11})(&.+)?$/i',
|
||||
'<iframe style="float: left;margin: 10px 20px;" width="%%tb_width%%" height="%%tb_height%%" frameborder="0" id="ytplayer" type="text/html" src="https://www.youtube.com/embed/$2"></iframe>'
|
||||
'/^https?:\/\/(\w+\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([a-zA-Z0-9\-_]{10,11})(&.+)?$/i',
|
||||
$config['youtube_js_html']
|
||||
),
|
||||
array(
|
||||
'/^https?:\/\/(\w+\.)?vimeo\.com\/(\d{2,10})(\?.+)?$/i',
|
||||
|
Loading…
x
Reference in New Issue
Block a user