From cb7cb397c1733375bb175eb71d34c5992e2bca51 Mon Sep 17 00:00:00 2001 From: isqua Date: Sat, 31 Jan 2015 13:34:01 +0300 Subject: [PATCH 1/6] Add single option `Remove original link` --- chrome_point_plus/_locales/en/messages.json | 4 ++-- chrome_point_plus/_locales/ru/messages.json | 4 ++-- chrome_point_plus/options.html | 5 +++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/chrome_point_plus/_locales/en/messages.json b/chrome_point_plus/_locales/en/messages.json index 21a482c..d85c33b 100644 --- a/chrome_point_plus/_locales/en/messages.json +++ b/chrome_point_plus/_locales/en/messages.json @@ -98,8 +98,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..f8f6902 100644 --- a/chrome_point_plus/_locales/ru/messages.json +++ b/chrome_point_plus/_locales/ru/messages.json @@ -98,8 +98,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/options.html b/chrome_point_plus/options.html index 14cd8fa..10a1f6d 100644 --- a/chrome_point_plus/options.html +++ b/chrome_point_plus/options.html @@ -136,6 +136,11 @@ + +
From fad1e5e689b2bd53fefe89f51c0900119a587765 Mon Sep 17 00:00:00 2001 From: isqua Date: Sat, 31 Jan 2015 13:38:06 +0300 Subject: [PATCH 2/6] Remove instagram original link option --- chrome_point_plus/js/point-plus.js | 2 +- chrome_point_plus/options.html | 13 ++++--------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/chrome_point_plus/js/point-plus.js b/chrome_point_plus/js/point-plus.js index 598a9db..30b4e06 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -1578,7 +1578,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 10a1f6d..615ae3f 100644 --- a/chrome_point_plus/options.html +++ b/chrome_point_plus/options.html @@ -127,15 +127,10 @@ -
- - - - -
+
-
- - - - -
+ -
- - + - -
+ -
- - - - -
- -
- - - - -
+ - -