diff --git a/chrome_point_plus/_locales/en/messages.json b/chrome_point_plus/_locales/en/messages.json index 84e865d..d8c7c5d 100644 --- a/chrome_point_plus/_locales/en/messages.json +++ b/chrome_point_plus/_locales/en/messages.json @@ -183,6 +183,9 @@ "option_other_move_all_to_menu":{ "message": "Move \"All posts\" to left menu" }, + "option_other_remove_fucking_button":{ + "message": "Remove the fucking button" + }, "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 433ee36..3dc92f9 100644 --- a/chrome_point_plus/_locales/ru/messages.json +++ b/chrome_point_plus/_locales/ru/messages.json @@ -183,6 +183,9 @@ "option_other_move_all_to_menu":{ "message": "Переместить \"Всё подряд\" в левое меню" }, + "option_other_remove_fucking_button":{ + "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 cd8994d..8c3ee3f 100644 --- a/chrome_point_plus/js/point-plus.js +++ b/chrome_point_plus/js/point-plus.js @@ -68,7 +68,7 @@ function PointPlus(ppVersion) { $go_to_unread_block = $('
').attr({ id: 'pp-go-to-unread', }).click(function() { - var $unread_comment = $('.unread').first(); + var $unread_comment = $('#comments .post.unread').first(); if ($unread_comment.length > 0) { $('html body').animate({ scrollTop: $unread_comment.offset().top }, 500); @@ -91,6 +91,11 @@ function PointPlus(ppVersion) { } } + // Remove fucking button + if (options.is('option_other_remove_fucking_button')) { + $('#scrollToTop').remove(); + } + // Embedding if (options.is('option_embedding')) { // Load pictures from Booru, Tumblr and some other sites @@ -726,7 +731,7 @@ function create_comment_elements(commentData, onCommentCreated) { * @param {?object} $span jQuery object of unread count */ function update_right_panel_unread_count($span) { - var unread_count = $('.post.unread').length; + var unread_count = $('#comments .post.unread').length; if (typeof $span === 'undefined') { $span = $('#pp-unread-count'); diff --git a/chrome_point_plus/options.html b/chrome_point_plus/options.html index 5f2bd30..93fc4f7 100644 --- a/chrome_point_plus/options.html +++ b/chrome_point_plus/options.html @@ -242,6 +242,11 @@ + +