* Шваброточку поменял

* Стиль function() поправил
* User comments system вынес в опционалку, хотя считаю, что непоражающий функионал можно не отключать
* same protocol через //
This commit is contained in:
Nokita Kaze 2014-12-30 16:59:26 +03:00
parent 0599990e2d
commit 96dbb19ea4
7 changed files with 34 additions and 22 deletions

View File

@ -159,6 +159,9 @@
"option_other_comments_nesting_level":{
"message": "Comments Nesting level indicator"
},
"option_other_comments_user_system":{
"message": "Your hints about users"
},
"option_other_comments_count_refresh":{
"message": "Refresh unread posts and comments count in left menu"
},

View File

@ -159,6 +159,9 @@
"option_other_comments_nesting_level":{
"message": "Индикатор уровня вложенности коммнентариев"
},
"option_other_comments_user_system":{
"message": "Заметки о пользователях на полях"
},
"option_other_comments_count_refresh":{
"message": "Обновляем количество непрочитанных комментариев и постов в ленте"
},

View File

@ -295,5 +295,5 @@ div#markItUpText-input {
#comments .post:hover .nesting {
background-repeat: repeat-x;
background-image: url('chrome-extension://__MSG_@@extension_id__/images/habra-point.png');
background-image: url('chrome-extension://__MSG_@@extension_id__/images/nesting-point.png');
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 593 B

After

Width:  |  Height:  |  Size: 651 B

View File

@ -158,7 +158,7 @@ $(document).ready(function() {
if (options.option_nsfw_hide_posts.value == true) {
if ($('#comments').length == 0) {
console.log('Hide NSFW posts in feed, '+$('.post').length+' hidden');
console.log('Hide NSFW posts in feed, %i hidden', $('.post').length);
$('.post').addClass('hide-nsfw-posts');
}
}
@ -498,7 +498,9 @@ $(document).ready(function() {
}
// Система комментариев у пользователей
if (options.option_other_comments_user_system.value == true) {
hints_init_user_system();
}
// Nesting level indicator
if (options.option_other_comments_nesting_level.value == true) {
@ -1071,7 +1073,7 @@ function hints_init_user_system() {
// Рисуем хинт и кнопку под текущим пользователем
function hints_draw_main_user_hint(items) {
var current_user_name = $('.aside .info h1').text().toLowerCase();
if (current_user_name.length == '') {
if (current_user_name.length == 0) {
return;
}
@ -1224,7 +1226,7 @@ function comments_count_refresh_tick() {
var count_recent = (a.length == 0) ? 0 : parseInt(a.text());
var count_comments = (b.length == 0) ? 0 : parseInt(b.text());
console.log('Comments: ' + count_comments + ', Recent: ' + count_recent);
console.log('Comments: %d, Recent: %d', count_comments, count_recent);
if (count_recent > 0) {
if (parseInt($('#main #left-menu #menu-recent .unread').text()) != count_recent) {
$('#main #left-menu #menu-recent .unread').text(count_recent).show().css({
@ -1264,7 +1266,7 @@ function comments_count_refresh_tick() {
// Из-за Same Origin'а я дёргаю несуществующую страницу на том же домене, чтобы получить баджи и,
// в то же время не прочитать новые сообщения в ленте, которые могли появиться, если их написал
// этот пользователь
'src': 'https://' + document.domain + '/?tag=' + Math.random(),
'src': '//' + document.domain + '/?tag=' + Math.random(),
'id': 'debug_iframe'
}).css({
'width': '600px',

View File

@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Point+",
"version": "1.18.2",
"version": "1.18.3",
"default_locale": "ru",
"author": "__MSG_ext_author__",
"homepage_url": "https://bitbucket.org/skobkin/chrome_point_plus",

View File

@ -178,6 +178,10 @@
<div class="option-node">
<input type="checkbox" class="option-boolean" id="option-other-comments-count-refresh"><label for="option-other-comments-count-refresh" data-i18n="option_other_comments_count_refresh"></label>
</div>
<div class="option-node">
<input type="checkbox" class="option-boolean" id="option-other-comments-user-system"><label for="option-other-comments-user-system" data-i18n="option_other_comments_user_system"></label>
</div>
</div>
<div class="tab-content" id="websocket">