diff --git a/chrome_point_plus/_locales/en/messages.json b/chrome_point_plus/_locales/en/messages.json index 21a482c..9aa5015 100644 --- a/chrome_point_plus/_locales/en/messages.json +++ b/chrome_point_plus/_locales/en/messages.json @@ -66,7 +66,7 @@ "message": "Audio from direct links" }, "option_videos_parse_links": { - "message": "Video from direct links" + "message": "Video from direct links ▼" }, "option_videos_parse_webm": { "message": "Only webm" @@ -74,23 +74,14 @@ "option_videos_parse_all_links": { "message": "Parse all links" }, - "option_videos_parse_leave_links": { - "message": "Leave original link" - }, "option_embedding_soundcloud": { - "message": "Soundcloud ▼" - }, - "option_embedding_soundcloud_orig_link": { - "message": "Leave original link" + "message": "Soundcloud" }, "option_embedding_pleercom": { - "message": "Pleer.com ▼" + "message": "Pleer.com" }, "option_embedding_coubcom": { - "message": "Coub.com ▼" - }, - "option_embedding_coubcom_orig_link": { - "message": "Leave original link" + "message": "Coub.com" }, "option_embedding_twitter_tweets": { "message": "Twitter" @@ -98,8 +89,8 @@ "option_embedding_instagram_posts": { "message": "Instagram" }, - "option_embedding_instagram_posts_orig_link": { - "message": "Leave original link" + "option_embedding_remove_original_link": { + "message": "Remove original link" }, "option_nsfw": { "message": "NSFW content filtering" diff --git a/chrome_point_plus/_locales/ru/messages.json b/chrome_point_plus/_locales/ru/messages.json index d7fe463..3cfa8e8 100644 --- a/chrome_point_plus/_locales/ru/messages.json +++ b/chrome_point_plus/_locales/ru/messages.json @@ -66,7 +66,7 @@ "message": "Аудио по прямой ссылке" }, "option_videos_parse_links": { - "message": "Видео по прямой ссылке" + "message": "Видео по прямой ссылке ▼" }, "option_videos_parse_webm": { "message": "Только webm" @@ -74,23 +74,14 @@ "option_videos_parse_all_links": { "message": "Все ссылки на видео" }, - "option_videos_parse_leave_links": { - "message": "Оставлять ссылку на видео" - }, "option_embedding_soundcloud": { - "message": "Soundcloud ▼" - }, - "option_embedding_soundcloud_orig_link": { - "message": "Не убирать ссылку" + "message": "Soundcloud" }, "option_embedding_pleercom": { - "message": "Pleer.com ▼" + "message": "Pleer.com" }, "option_embedding_coubcom": { - "message": "Coub.com ▼" - }, - "option_embedding_coubcom_orig_link": { - "message": "Не убирать ссылку" + "message": "Coub.com" }, "option_embedding_twitter_tweets": { "message": "Twitter" @@ -98,8 +89,8 @@ "option_embedding_instagram_posts": { "message": "Instagram" }, - "option_embedding_instagram_posts_orig_link": { - "message": "Не убирать ссылку" + "option_embedding_remove_original_link": { + "message": "Удалять оригинальную ссылку" }, "option_nsfw": { "message": "Фильтрация NSFW-контента" diff --git a/chrome_point_plus/js/point-plus.js b/chrome_point_plus/js/point-plus.js index 598a9db..de2b23f 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -96,12 +96,10 @@ function PointPlus(ppVersion) { '); // Replace or prepend - if (options.is('option_embedding_soundcloud_orig_link')) { - // Before - $(this).before($player); - } else { - // Replace + if (options.is('option_embedding_remove_original_link')) { $(this).replaceWith($player); + } else { + $(this).before($player); } }); } @@ -846,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(); } } @@ -870,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(); } } @@ -919,7 +917,7 @@ function parse_all_audios(current_options){ obj.parentElement.insertBefore(player, obj); - if (current_options.is('option_audios_parse_leave_links', false)) { + if (current_options.is('option_embedding_remove_original_link')) { $(obj).hide(); } } @@ -984,7 +982,7 @@ function parse_pleercom_links(current_options) { '' + ''); - if ( ! current_options.is('option_embedding_pleercom_orig_link')) { + if (current_options.is('option_embedding_remove_original_link')) { $link.remove(); } } @@ -1171,7 +1169,7 @@ function parse_coub_links(current_options) { obj.parentElement.insertBefore(player, obj); - if (current_options.is('option_embedding_coubcom_orig_link', false)) { + if (current_options.is('option_embedding_remove_original_link')) { $(obj).hide(); } } @@ -1578,7 +1576,7 @@ function instagram_posts_embedding_init(options) { $link.before($imgLink); - if ( ! options.is('option_embedding_instagram_posts_orig_link')) { + if (options.is('option_embedding_remove_original_link')) { $link.remove(); } } diff --git a/chrome_point_plus/options.html b/chrome_point_plus/options.html index 14cd8fa..cac9e6a 100644 --- a/chrome_point_plus/options.html +++ b/chrome_point_plus/options.html @@ -75,67 +75,42 @@ - - -
- - + - -
+ -
- - + - -
- -
- - - - -
- -
- - - - -
+ -
- - + - -
+