From 1df716d69477397ae6578e4e08d2124b66ed42bd Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 9 May 2016 02:42:51 +0300 Subject: [PATCH] #102 done. Move /all page link to left menu. --- chrome_point_plus/_locales/en/messages.json | 3 +++ chrome_point_plus/_locales/ru/messages.json | 3 +++ chrome_point_plus/js/point-plus.js | 8 +++++++- chrome_point_plus/options.html | 5 +++++ 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/chrome_point_plus/_locales/en/messages.json b/chrome_point_plus/_locales/en/messages.json index 7f0e1e0..cfbab7b 100644 --- a/chrome_point_plus/_locales/en/messages.json +++ b/chrome_point_plus/_locales/en/messages.json @@ -174,6 +174,9 @@ "option_other_comments_count_refresh_title":{ "message": "Page title" }, + "option_other_move_all_to_menu":{ + "message": "Move \"All posts\" to left menu" + }, "option_other_post_draft_save":{ "message": "Save post drafts" }, diff --git a/chrome_point_plus/_locales/ru/messages.json b/chrome_point_plus/_locales/ru/messages.json index 3a9226b..a69eb74 100644 --- a/chrome_point_plus/_locales/ru/messages.json +++ b/chrome_point_plus/_locales/ru/messages.json @@ -174,6 +174,9 @@ "option_other_comments_count_refresh_title":{ "message": "В заголовке страницы" }, + "option_other_move_all_to_menu":{ + "message": "Переместить \"Всё подряд\" в левое меню" + }, "option_other_post_draft_save":{ "message": "Сохранение черновика поста" }, diff --git a/chrome_point_plus/js/point-plus.js b/chrome_point_plus/js/point-plus.js index 79e04a0..c02fc7f 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -41,8 +41,14 @@ function PointPlus(ppVersion) { try { console.debug('Options loaded: %O', options.getOptions()); } catch(e){} + create_tag_system(); + // Move "all posts" to left menu + if (options.is('option_other_move_all_to_menu')) { + $('div.secret a').insertAfter('a#menu-recent').css('background-image','url("img/icon-private-inactive.png")'); + } + // Embedding if (options.is('option_embedding')) { // Load pictures from Booru, Tumblr and some other sites @@ -546,7 +552,7 @@ function PointPlus(ppVersion) { if (options.is('option_embedding_twitter_tweets')) { twitter_tweet_embedding_init(); } - + // Post drafts if (options.is('option_other_post_draft_save')) { draft_set_save_handler(); diff --git a/chrome_point_plus/options.html b/chrome_point_plus/options.html index cac9e6a..ff31043 100644 --- a/chrome_point_plus/options.html +++ b/chrome_point_plus/options.html @@ -227,6 +227,11 @@ + +