From 18e75842f8d07f996e9d99d1b8b18906f2517565 Mon Sep 17 00:00:00 2001 From: isqua Date: Sat, 31 Jan 2015 14:11:29 +0300 Subject: [PATCH] Remove video original link option --- chrome_point_plus/_locales/en/messages.json | 3 --- chrome_point_plus/_locales/ru/messages.json | 3 --- chrome_point_plus/js/point-plus.js | 4 ++-- chrome_point_plus/options.html | 5 ----- 4 files changed, 2 insertions(+), 13 deletions(-) diff --git a/chrome_point_plus/_locales/en/messages.json b/chrome_point_plus/_locales/en/messages.json index 74942bc..f347c64 100644 --- a/chrome_point_plus/_locales/en/messages.json +++ b/chrome_point_plus/_locales/en/messages.json @@ -74,9 +74,6 @@ "option_videos_parse_all_links": { "message": "Parse all links" }, - "option_videos_parse_leave_links": { - "message": "Leave original link" - }, "option_embedding_soundcloud": { "message": "Soundcloud" }, diff --git a/chrome_point_plus/_locales/ru/messages.json b/chrome_point_plus/_locales/ru/messages.json index 3ecbf23..a102ec8 100644 --- a/chrome_point_plus/_locales/ru/messages.json +++ b/chrome_point_plus/_locales/ru/messages.json @@ -74,9 +74,6 @@ "option_videos_parse_all_links": { "message": "Все ссылки на видео" }, - "option_videos_parse_leave_links": { - "message": "Оставлять ссылку на видео" - }, "option_embedding_soundcloud": { "message": "Soundcloud" }, diff --git a/chrome_point_plus/js/point-plus.js b/chrome_point_plus/js/point-plus.js index 70b2cec..de2b23f 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -844,7 +844,7 @@ function parse_webm(current_options) { obj.parentElement.insertBefore(player, obj); - if (current_options.is('option_videos_parse_leave_links', false)) { + if (current_options.is('option_embedding_remove_original_link')) { $(obj).hide(); } } @@ -868,7 +868,7 @@ function parse_all_videos(current_options) { obj.parentElement.insertBefore(player, obj); - if (current_options.is('option_videos_parse_leave_links', false)) { + if (current_options.is('option_embedding_remove_original_link')) { $(obj).hide(); } } diff --git a/chrome_point_plus/options.html b/chrome_point_plus/options.html index b5377b0..cac9e6a 100644 --- a/chrome_point_plus/options.html +++ b/chrome_point_plus/options.html @@ -75,11 +75,6 @@ - -