// ==UserScript==
// @name Dark VK Theme
// @description Тёмная тема для VK
// @author DygDyg
// @homepage http://dygdyg.ddns.net
// @include https://vk.com/*
// @require https://code.jquery.com/jquery-3.3.1.min.js
// @icon https://vk.com/images/icons/favicons/fav_logo.ico
// @version 0.0.7.5
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle
// @run-at document-start
// @namespace https://greasyfork.org/users/303755
// ==/UserScript==
GM_addStyle(`
.ui_rmenu_item,
.ui_rmenu_subitem
{
color: #afc6dc !important;
}
.ui_rmenu_item:hover,
.ui_rmenu_subitem:hover,
.ui_rmenu_item_sel,
.ui_rmenu_item_sel:hover,
.box_title_wrap.box_grey
{
background-color: #4a76a8 !important;
}
body,
.page_actions_wrap,
#top_profile_menu,
.thumbed_link__label,
textarea,
.mv_info
{
background: #2f2f2f !important;
}
.flat_button.secondary,
.deep_active .replies .reply_fakebox,
.ui_tabs.ui_tabs_box,
.prefix_input_wrap,
.my_current_info:hover
{
background-color: #2f2f2f !important;
}
body::-webkit-scrollbar
{
-webkit-appearance: none;
width: 11px;
}
body::-webkit-scrollbar-thumb,
.ui_scroll_default_theme>.ui_scroll_bar_container>.ui_scroll_bar_outer>.ui_scroll_bar_inner
{
border-radius: 3px;
background-color: #4a76a8;
transition: background-color 200ms linear, width 150ms linear;
}
#side_bar ol li .left_row,
body,
.ui_rmenu_subitem,
._im_to_unread.im-page--dialogs-filter-wrap a,
.top_notify_cont .feedback_header,
.top_notify_cont,
.wddi_text,
.module_header .header_top,
.page_actions_item,
input,
textarea,
.top_profile_mrow
{
color: #cacaca !important;
}
#side_bar ol li .left_row:hover
{
color: #292929 !important;
background: #909090 !important;
}
.eltt,
.pv_author_block,
.pv_cont .narrow_column,
.wall_module .reply_form,
.top_notify_show_all,
.ui_tabs_header,
.box_body,
input,
.wall_module .reply_fakebox_wrap,
.pv_cont .narrow_column,
.wall_module .reply_box,
.mention_tt_actions,
.group_l_row,
.group_tokens_row,
.groups_edit_event_log_page .groups_edit_event_log_controls,
#groups_menu_items .groups_edit_menu_items .group_apps_list_row_drag_wrapper,
#group_apps_list .group_apps_list_rows.group_apps_list_rows_multi .group_apps_list_row_drag_wrapper,
.box_controls
{
background-color: #272727 !important;
}
.page_block,
.ui_search,
.im-page--toolsw,
.im-chat-input,
div[contenteditable=true],
.im-page .im-page--history-new-bar,
.im-page .im-page--dialogs-footer.ui_grey_block,
.audio_page_layout .audio_friends_list,
#top_notify_wrap,
.tt_default,
.wddi,
.im-chat-input .im-chat-input--txt-wrap,
.im-page--chat-header,
.wpost_post,
.submit_post,
.im-page .im-page--history-new-bar>span,
.im-mess.im-mess_unread+.im-mess:before,
.im-mess.im-mess_selected+.im-mess:before,
.page_block_header,
.settings_block_footer,
.gedit_block_footer,
.MessageForward__content
{
background: #272727 !important;
}
.im-page .im-page--center-empty
{
filter: invert(0.845) grayscale(100) !important;
}
.ui_actions_menu,
.nim-dialog:not(.nim-dialog_deleted):hover,
.ms_items_more,
div.wdd,
.ListItem--active,
.ListItem--border:before,
.wddi_over
{
background: #5a5a5a !important;
}
.nim-dialog .nim-dialog--name .nim-dialog--name-w,
.im-page .im-search-results-head,
.im-popular--name,
.ui_actions_menu_item,
.im-page--title-main-inner,
.feedback_header b,
.ui_tabs .ui_tab_sel,
.page_block_header,
.settings_block_footer,
h2,
#groups_menu_promo .apps_group_catalog_promo_header,
input.dark,
.audio_pl_item2 .audio_pl__subtitle>a
{
color: #ffff !important;
}
.nim-dialog .nim-dialog--date,
div[contenteditable=true],
.nim-dialog .nim-dialog--who,
.ms_items_more._more_items a,
.im-replied--text,
.im-page .im-page--history-new-bar>span,
.audio_page_player2 .audio_page_player_title_song,
.ui_tab_default .ui_tab_plain,
.mv_title,
.mv_comments_summary,
.mv_recom_block_title,
#group_section_menu .module_body .ui_gallery .ui_gallery_item .groups_menu_item .groups_menu_item_title
{
color: #e6e6e6 !important;
}
.nim-dialog .nim-dialog--preview,
.audio_page_layout .audio_item__title
{
color: #949494 !important;
}
.ui_actions_menu_item:hover,
.media_selector .ms_items_more .ms_item:hover,
.top_notify_cont .feedback_row:not(.dld):hover,
.profile_more_info_link:hover
{
background-color: #a3a6a9 !important;
color: #000000 !important;
}
.nim-dialog:not(.nim-dialog_deleted).nim-dialog_selected,
.nim-dialog:not(.nim-dialog_deleted).nim-dialog_hovered
{
background: #3d5877 !important;
}
a,
.page_counter .count,
.subheader, h4.subheader,
.tt_w,
.audio_page__shuffle_all .audio_page__shuffle_all_button
{
color: #eceff3 !important;
}
.im-mess.im-mess_unread:not(.im-mess_light),
.im-mess.im-mess_selected:last-child:before,
.im-mess.im-mess_unread:last-child:before,
.im-mess.im-mess_selected:not(.im-mess_is_editing),
.ts_cont_wrap
{
background: #252a31 !important;
}
#side_bar .more_div,
.nim-dialog .nim-dialog--content,
.im-chat-input,
.ui_rmenu_sep,
.like_cont,
.wall_module .replies_list,
#ads_left.ads_left_empty+.left_menu_nav_wrap,
.pv_comments,
.deep_active .replies .replies_wrap_deep,
.deep_active .post_replies_header,
.wddi,
.wall_module .reply_box,
.submit_post,
.mention_tt_actions,
.im-page .im-page--dialogs-footer,
.wide_column .topics_module .topic_row,
.flat_button.ui_load_more_btn,
.gedit_block_footer,
.top_profile_sep,
.nim-dialog:not(.nim-dialog_deleted):hover+.nim-dialog,
.nim-dialog:not(.nim-dialog_deleted).nim-dialog:hover,
.page_actions_separator,
.ui_actions_menu_sep
{
border-top: 1px solid #464748 !important;
}
.deep_active .replies .reply_field_wrap .reply_field,
.deep_active .replies .reply_fakebox,
div[contenteditable=true],
.wdd_list,
div.wdd,
.wpost_post,
.ui_search_new .ui_search_input_inner,
.module,
#top_profile_menu,
.ms_items_more,
.ui_actions_menu,
.im-chat-input .im-chat-input--txt-wrap
{
border: 1px solid #2f2f2f !important;
}
.page_block
{
box-shadow: 0 0 0 0 #d7d8db, 0 0 0 0px #e3e4e8 !important;
}
.ui_search,
.im-page--toolsw,
input.BlockSearchInput,
.ui_tabs,
.wide_column .page_top,
.group_l_row,
.group_edit_row_sep,
.page_block_header,
.group_tokens_row,
.group_list_row,
.pv_author_block,
.mv_actions_block,
.feed_new_posts,
.mv_comments_summary
{
border-bottom: 1px solid #2f2f2f !important;
}
.ui_tabs.ui_tabs_box,
.ListItem--active
{
border-color: #272727 !important;
}
.mv_info_narrow_column,
.mv_recom_block_title,
.wall_module .copy_quote
{
border-left: 1px solid #272727 !important;
}
.chat_onl_inner
{ /* убираем «быстрые диалоги» */
display:none !important;
}
`);