From 817ef68473ff291b338db60b805cf65a287bd1fb Mon Sep 17 00:00:00 2001 From: Nokita Kaze Date: Tue, 25 Nov 2014 16:10:38 +0300 Subject: [PATCH] =?UTF-8?q?*=20=D0=A2=D0=B0=D0=BA,=20=D0=B2=D0=BE=D1=82=20?= =?UTF-8?q?=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D0=B0=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chrome_point_plus/js/point-plus.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chrome_point_plus/js/point-plus.js b/chrome_point_plus/js/point-plus.js index 3e2c7cf..8cc841c 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -721,7 +721,6 @@ function video_extension_to_mime(extension) { case 'mpg' :return 'video/mp4;'; case 'mpeg':return 'video/mp4;'; } - } // Аудио @@ -734,11 +733,14 @@ function parse_all_audios(){ var href = obj.href; var n = null; - if (n = href.match(new RegExp('^https?:\\/\\/([a-z0-9.-]+)/[a-z0-9/.%-]+\\.(mp3|ogg|wav)(\\?.+)?$', 'i'))) { + if (n = href.match(new RegExp('^https?:\\/\\/([a-z0-9.-]+)\\/[a-z0-9_\\/.%-]+\\.(mp3|ogg|wav)(\\?.+)?$', 'i'))) { var domain = n[1]; // Проверяем откуда мы грузимся if (domain.match(new RegExp('\\.vk\\.me$', 'i'))){ // Так то ж Контакт! + if (typeof(n[3])=='undefined'){ + return; + } if (!n[3].match('extra\\=', 'i')){ return; }