From 2049341b70f889ad0078c8e4ec834c50c62929de Mon Sep 17 00:00:00 2001 From: czaks Date: Wed, 1 Jan 2014 18:02:55 +0100 Subject: [PATCH] youtube.js related fixes done by a Finland Anon on /devel/ --- js/hide-threads.js | 4 ++-- js/youtube.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/hide-threads.js b/js/hide-threads.js index 575804b6..a61a4840 100644 --- a/js/hide-threads.js +++ b/js/hide-threads.js @@ -50,7 +50,7 @@ $(document).ready(function(){ hidden_data[board][id] = Math.round(Date.now() / 1000); store_data(); - thread_container.find('div.post,img,p.fileinfo,a.hide-thread-link,br').hide(); + thread_container.find('div.post,div.video-container,img,p.fileinfo,a.hide-thread-link,br').hide(); var hidden_div = thread_container.find('div.post.op > p.intro').clone(); hidden_div.addClass('thread-hidden'); @@ -63,7 +63,7 @@ $(document).ready(function(){ .click(function() { delete hidden_data[board][id]; store_data(); - thread_container.find('div.post,img,p.fileinfo,a.hide-thread-link,br').show(); + thread_container.find('div.post,div.video-container,img,p.fileinfo,a.hide-thread-link,br').show(); $(this).remove(); hidden_div.remove(); }); diff --git a/js/youtube.js b/js/youtube.js index f64d4874..745e1519 100644 --- a/js/youtube.js +++ b/js/youtube.js @@ -15,7 +15,7 @@ * $config['embedding'] = array(); * $config['embedding'][0] = array( * '/^https?:\/\/(\w+\.)?(?:youtube\.com\/watch\?v=|youtu\.be\/)([a-zA-Z0-9\-_]{10,11})(&.+)?$/i', -* '
' +* '
' ); * $config['additional_javascript'][] = 'js/jquery.min.js'; * $config['additional_javascript'][] = 'js/youtube.js';