From 429c432dc599adbbc19fd341ec8936f9f040dcc1 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Tue, 27 Jan 2015 02:55:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=81=D1=82=D1=80=D0=B0=D0=B8=D0=B2?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=B5=20Instagram=20=D0=B8=D0=B7=20pull=20re?= =?UTF-8?q?quest=20#25.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chrome_point_plus/_locales/en/messages.json | 6 +++ chrome_point_plus/_locales/ru/messages.json | 6 +++ chrome_point_plus/css/point-plus.css | 4 +- chrome_point_plus/js/bquery_ajax.js | 18 +++++++ chrome_point_plus/js/point-plus.js | 52 +++++++++++++++++++++ chrome_point_plus/manifest.json | 1 + chrome_point_plus/options.html | 10 ++++ 7 files changed, 95 insertions(+), 2 deletions(-) diff --git a/chrome_point_plus/_locales/en/messages.json b/chrome_point_plus/_locales/en/messages.json index 4871642..28ec701 100644 --- a/chrome_point_plus/_locales/en/messages.json +++ b/chrome_point_plus/_locales/en/messages.json @@ -95,6 +95,12 @@ "option_embedding_twitter_tweets": { "message": "Twitter" }, + "option_embedding_instagram_posts": { + "message": "Instagram" + }, + "option_embedding_instagram_posts_orig_link": { + "message": "Leave 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 8d6b14d..deab3f5 100644 --- a/chrome_point_plus/_locales/ru/messages.json +++ b/chrome_point_plus/_locales/ru/messages.json @@ -95,6 +95,12 @@ "option_embedding_twitter_tweets": { "message": "Twitter" }, + "option_embedding_instagram_posts": { + "message": "Instagram" + }, + "option_embedding_instagram_posts_orig_link": { + "message": "Не убирать ссылку" + }, "option_nsfw": { "message": "Фильтрация NSFW-контента" }, diff --git a/chrome_point_plus/css/point-plus.css b/chrome_point_plus/css/point-plus.css index 5c7ab56..dd943dc 100644 --- a/chrome_point_plus/css/point-plus.css +++ b/chrome_point_plus/css/point-plus.css @@ -28,12 +28,12 @@ div#markItUpText-input { } /* Auto-loaded Booru pictures */ -.booru_pic { +.booru_pic, .instagram-post-embedded { display: block !important; float: none !important; } -.booru_pic img { +.booru_pic img, .instagram-post-embedded img { border: none; max-width: 60%; max-height: 300px; diff --git a/chrome_point_plus/js/bquery_ajax.js b/chrome_point_plus/js/bquery_ajax.js index 553c39c..72a7603 100644 --- a/chrome_point_plus/js/bquery_ajax.js +++ b/chrome_point_plus/js/bquery_ajax.js @@ -1,3 +1,6 @@ +/** + * @deprecated since 1.36.0 + */ function $ajax_prot(settings){ if (settings==undefined){return;} if (settings['url'] ==undefined){return;}this.url=settings['url']; @@ -46,8 +49,14 @@ $ajax_prot.prototype={ $ajax=function (settings){return new $ajax_prot(settings);} +/** + * @deprecated since 1.36.0 + */ function urlencode(text){return encodeURIComponent(text);} +/** + * @deprecated since 1.36.0 + */ function sad_safe_reg(text){ var ar='.-\\/[]{}?+'; var s=''; for (var i=0;i + +
+ + + + +