- // ==UserScript==
- // @name Dark VK Theme
- // @description Тёмная тема для VK
- // @author DygDyg
- // @homepage http://dygdyg.ddns.net
- // @include https://vk.com/*
- // @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
- // @require https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js
- // @icon https://vk.com/images/icons/favicons/fav_logo.ico
- // @version 0.0.11.48
- // @run-at document-start
- // @grant GM_setValue
- // @grant GM_getValue
- // @grant GM_addStyle
- // @grant GM_info
- // @grant GM_unregisterMenuCommand
- // @grant GM_registerMenuCommand
- // @grant GM_openInTab
- // @grant GM_getResourceText
- // @grant GM_notification
- // @namespace https://greasyfork.org/users/303755
- // ==/UserScript==
-
- var $ = window.jQuery;
-
- var darkStyle1, darkStyle, darkStyleBacground;
-
- if (GM_getValue('enable', null) == null) GM_setValue('enable', true);
- if (GM_getValue('names', null) == null) GM_setValue('names', JSON.stringify([]));
- if (GM_getValue('debug', null) == null) GM_setValue('debug', false);
- if (GM_getValue('group', null) == null) GM_setValue('group', 'Группы');
- if (GM_getValue('message_name', null) == null) GM_setValue('message_name', 'Сообщения');
- if (GM_getValue('ver_info', null) == null) GM_setValue('ver_info', '0');
- if (GM_getValue('ver_info', null) == null) GM_setValue('ver_info', '0');
-
-
- var ver_info = '4';
- var col = 0;
- var _info = "Добавил возможность переименовать вкладку сообщения, которая стала мессенджер";
-
-
-
- if (GM_getValue('debug', false)) {
- $(document).ready(function () {
- test();
- })
- }
-
-
- //#region Дебаг режим
- GM_registerMenuCommand('Дебаг режим', () => {
-
- GM_setValue('debug', !GM_getValue('debug'));
- if (GM_getValue('debug') == true) {
- GM_notification({ title: 'Дебаг режим:', text: '✅ Включён', timeout: 3000 });
- } else {
- GM_notification({ title: 'Дебаг режим:', text: '⛔ Выключен', timeout: 3000 });
- }
- });
- //#endregion
-
-
- //#region Тело скина
- function theme() {
- if (darkStyleBacground && darkStyleBacground.id) { darkStyleBacground.remove() }
- if (darkStyle && darkStyle.id) { darkStyle.remove() }
- if (darkStyle1 && darkStyle1.id) { darkStyle1.remove() }
- $('#button_spawn').css({ 'display': 'none' });
- $('#button_delete').css({ 'display': 'block' });
- //$('body').css({ 'background-image': 'url("' + GM_getValue('background') + '")', 'background-size': '100%', 'background-attachment': 'fixed' });
- $('body').css({ 'background-image': 'url("' + GM_getValue('background') + '")', 'background-color': '#2F2F30', 'background-size': '100%', 'background-attachment': 'fixed' });
-
-
-
-
- darkStyle1 = GM_addStyle(`
-
-
- #layer_wrap,
- div#wk_layer_wrap,
- #box_layer_wrap
- {
- background-color: #000000a3 !important;
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23383838' stroke-width='2'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23696969'%3E%3Ccircle cx='769' cy='229' r='8'/%3E%3Ccircle cx='539' cy='269' r='8'/%3E%3Ccircle cx='603' cy='493' r='8'/%3E%3Ccircle cx='731' cy='737' r='8'/%3E%3Ccircle cx='520' cy='660' r='8'/%3E%3Ccircle cx='309' cy='538' r='8'/%3E%3Ccircle cx='295' cy='764' r='8'/%3E%3Ccircle cx='40' cy='599' r='8'/%3E%3Ccircle cx='102' cy='382' r='8'/%3E%3Ccircle cx='127' cy='80' r='8'/%3E%3Ccircle cx='370' cy='105' r='8'/%3E%3Ccircle cx='578' cy='42' r='8'/%3E%3Ccircle cx='237' cy='261' r='8'/%3E%3Ccircle cx='390' cy='382' r='8'/%3E%3C/g%3E%3C/svg%3E");
- /*width: 100%;*/
- /*height: 100%;*/
- /*position: fixed;*/
- /*z-index: 99999999;*/
- background-attachment: fixed;
- /*text-align: center;*/
- }
-
- .body_im .side_bar
- {
- padding-left: 130px !important;
- }
-
- .side_bar_inner
- {
- width: 160px !important;
- }
-
- .dark-theme-box
- {
- position: fixed;
- white-space: nowrap;
- z-index: 200;
- height: 42px;
- top: 0;
- left: 0;
- padding: 0 5px 0 10px;
- line-height: 42px;
- }
-
- .dark-theme-box a
- {
- color: red;
- }
- `);
-
-
-
- darkStyle = GM_addStyle(`
-
-
-
- .ui_rmenu_item,
- .olist_item_name,
- .app_widget_list_row,
- .flat_button.ui_load_more_btn,
- .audio_subscribe_promo__text,
- a,
- .web_cam_photo,
- .ui_rmenu_subitem,
- .reply_submit_hint_opts .radiobtn,
- .gtop_complex_message .gtop_content .gtop_header,
- .deep_active .post_replies_header .post_replies_reorder,
- .post_action_btn.on,
- .box_controls .flat_button.secondary,
- .flat_button.secondary.button_light,
- #mv_publish,
- .button_gray button, .flat_button.secondary,
- .button_blue button,
- .button_gray button,
- .button_light_gray button,
- .ShortVideoStub__title,
- .im-page-pinned--media,
- .sticker_extra_tt .tt_text .stickers_extra_text>b,
- .ui_gallery_wall_cards .wall_card__title_link,
- .deep_active.wall_module .post_replies_header .post_replies_reorder
- {
- color: #afc6dc !important;
- }
-
- [dir=ltr] body.new_header_design #side_bar ol{
- margin: 0px 0px 6px -9px !important;
- padding-left: 3px !important;
- }
- [dir=ltr] body.new_header_design #ads_left.ads_left_empty+.left_menu_nav_wrap{
- margin: 0px 0px 6px -9px !important;
- padding: 8px 7px 9px 9px !important;
- }
-
- [dir] .left_menu_nav_wrap {
- padding: 10px 9px 9px 11px !important;
- margin: 0px 0px 6px -9px !important;
- }
-
- .left_settings_inner {
- /*width: 20px !important;
- height: 21px !important;*/
- left: -16px !important;
- opacity: 1/* !important*/;
- background-size: 161%;
- background-color: #353535b3;
- background-position-x: 3px;
- background-position-y: -57px;
- border-radius: 5px;
- background-image: url(/images/icons/common.png?6);
- filter: initial;
- }
-
- .ui_rmenu_item:hover,
- .ui_rmenu_subitem:hover,
- .ui_rmenu_item_sel,
- .ui_rmenu_item_sel:hover,
- .olist_item_wrap:hover,
- .docs_choose_upload_area:hover,
- .box_title_wrap.box_grey
- {
- background-color: #4a76a8 !important;
- }
-
-
- #top_profile_menu,
- .thumbed_link__label,
- textarea,
- .mv_info,
- .media_link__label
- .online.mobile:after,
- .media_link__label,
- .im-mess.im-mess_light,
- .nim-dialog:not(.nim-dialog_deleted).nim-dialog_unread.nim-dialog_classic,
- div.fc_tab_txt,
- #wk_box,
- .pv_cont .pv_comments_header,
- .Button--mobile:hover,
- .ListItem--active,
- .EditableLabel:hover .EditableLabel__text,
- .ListItem--can-be-hovered.ListItem--selectable:hover,
- .result_list ul li.active,
- .emoji_tab:hover,
- .ui_actions_menu,
- .nim-dialog:not(.nim-dialog_deleted):hover,
- div.wdd,
- .ListItem--active,
- .ListItem--border:before,
- .wddi_over,
- .photos_choose_upload_area:hover,
- .web_cam_photo:hover,
- .mail_box_cont,
- .wddi_no,
- .flist_item_wrap:hover,
- .tt_default,
- .tt_default_right,
- .cal_clear,
- #mv_publish,
- .CatalogBlock__separator,
- .ui_search_new.ui_search_dark .ui_search_input_inner,
- .info_msg
- {
- background-color: #2f2f2f !important;
- box-shadow: 2px 7px 3px rgba(0,0,0,.1);
- }
-
-
- .deep_active .replies .reply_fakebox,
- .ui_tabs.ui_tabs_box,
- .prefix_input_wrap,
- .audio_row:hover:not(.audio_row__current) .audio_row_content,
- .audio_page__shuffle_all .audio_page__shuffle_all_button:hover,
- .audio_layer_container .audio_friend:hover,
- .ui_search_sugg_list .ui_search_suggestion_selected,
- .top_notify_cont .feedback_row:not(.dld):hover,
- .feedback_row_clickable:not(.feedback_row_touched):hover,
- .audio_row.audio_row__current .audio_row_content,
- .page_actions_item:hover:not(.grey_hoverable),
- .nim-dialog.nim-dialog_classic.nim-dialog_unread-out .nim-dialog--inner-text,
- .fc_tab,
- .tabbed_box .summary_tab_sel .summary_tab2,
- .feedback_row_wrap.unread:not(.feedback_row_touched),
- .tabbed_box .summary_tab a:hover,
- .blst_last:hover,
- .tabbed_box .summary_tab .summary_tab3:hover,
- .photos_container .photos_row,
- .ms_items_more,
- .sticker_hints_tt,
- .box_msg,
- .box_msg_gray,
- .msg,
- .tabbed_box .summary_tab_sel .summary_tab3:hover,
- .my_current_info:hover,
- .audio_pl_snippet2,
- .im_msg_audiomsg .audio-msg-track:not(.audio-msg-player):hover,
- .article_ed_layer .article_ed_layer__header,
- #admin_tips #gtop_admin_tips.gtop_complex_message,
- #page_block_group_admin_tips .group_edit_admin_tips_item:hover,
- .group_edit.group_edit_admin_tips .group_edit_admin_tips_item:hover,
- .eltt .eltt_fancy_action:hover,
- .cal_table .day,
- .market_item_content,
- .button_gray button,
- .flat_button.secondary,
- .audio_page_layout .audio_page_separator,
- .stats_cont_browse_tile,
- .piechart_col_header th,
- #stat_group_postsreach_table td,
- .group_info_rows_redesign .group_info_row.onboarding_placeholder .line_value.line_edit,
- .group_info_rows_redesign .group_info_row.onboarding_placeholder .line_value:hover,
- .my_current_info:hover,
- .no_current_info:hover,
- .mv_live_gifts_arrow_right:before,
- .mv_live_gifts_supercomment:hover,
- .docs_choose_rows .docs_item:hover,
- .docs_choose_upload_area,
- a.ts_contact.active, a.ts_search_link.active,
- #market_choose_box .market_block_layout,
- .tt_w.top_notify_tt,
- .idd_popup .idd_header_wrap,
- .idd_popup .idd_items_content,
- .photo_upload_separator
- {
- background-color: #2f2f2f !important;
- box-shadow: 2px 7px 3px rgba(0,0,0,.1);
- }
-
- 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,
- .wddi_text,
- .module_header .header_top,
- .page_actions_item,
- input,
- textarea,
- .tabbed_box .summary_tab_sel .summary_tab3,
- .ChatSettingsInfo__title,
- .result_list ul li.active,
- .im-aside-notice-promo.group-messages-notify-block .im-aside-notice--title,
- .im-aside-notice,
- .search_filter_main,
- .result_list ul li,
- .search_filter_shut,
- .im-fwd.im-fwd_msg .im-fwd--messages,
- .links-list__title,
- #mv_pl_tt .mv_tt_playlist,
- .wide_column .topics_module .topic_title,
- .topics_module .topic_inner_link,
- .ui_search_fltr,
- .ui_search_fltr_label,
- .post_author_data .post_author_data_title,
- .im-chat-input--editing-head,
- .page_market_item_narrow_price,
- .audio_subscribe_promo__title,
- .box_title_wrap.box_grey .box_title,
- .page_block_sub_header,
- ul.listing li span,
- .notify_sources_tt_content .line_cell .info,
- .article>h1,
- .group_info_rows_redesign .group_info_row.time .address_time_status_cur_time,
- #admin_tips #gtop_admin_tips.gtop_complex_message .gtop_content .gtop_message,
- .wk_address_content .addresses_wrap .address .address_timetable .address_timetable_one_day,
- .eltt .eltt_fancy_action,
- .medadd_h,
- .market_item_title,
- .market_item_price,
- .stats_cont_browse_tile,
- .validation_device_info_name,
- .top_profile_mrow,
- .microdata_price,
- .notify_tt_text,
- .im-mess-stack .im-mess-stack--gift,
- .ShortVideoStub__text,
- body.new_header_design #side_bar .left_label,
- #market_choose_box .market_block_layout .market_row .market_row_price
- {
- color: #cacaca !important;
- }
-
- [dir] body.new_header_design .p_head_l0 .top_home_link .top_home_logo,
- [dir] body.new_header_design .p_head_l97 .top_home_link .top_home_logo,
- [dir] body.new_header_design .p_head_l114 .top_home_link .top_home_logo,
- [dir] body.new_header_design .p_head_l1 .top_home_link .top_home_logo
- {
- background-image: url("data:image/svg+xml,%3Csvg fill='none' height='25' width='136' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 11.5c0-5.42 0-8.13 1.68-9.82C3.37 0 6.08 0 11.5 0h1c5.42 0 8.13 0 9.82 1.68C24 3.37 24 6.08 24 11.5v1c0 5.42 0 8.13-1.68 9.82C20.63 24 17.92 24 12.5 24h-1c-5.42 0-8.13 0-9.82-1.68C0 20.63 0 17.92 0 12.5z' fill='%232787f5'/%3E%3Cg clip-rule='evenodd' fill-rule='evenodd'%3E%3Cpath d='M6.5 7.5H4.75c-.5 0-.6.24-.6.5 0 .46.6 2.76 2.76 5.8 1.45 2.07 3.49 3.2 5.34 3.2 1.11 0 1.25-.25 1.25-.68v-1.57c0-.5.1-.6.46-.6.26 0 .7.13 1.74 1.13 1.19 1.19 1.38 1.72 2.05 1.72h1.75c.5 0 .75-.25.6-.74-.15-.5-.72-1.2-1.47-2.05-.4-.49-1.02-1-1.2-1.26-.26-.34-.2-.49 0-.78 0 0 2.13-3 2.35-4.03.11-.37 0-.64-.53-.64H17.5a.76.76 0 00-.76.5s-.9 2.16-2.15 3.57c-.41.41-.6.54-.82.54-.1 0-.27-.13-.27-.5V8.14c0-.44-.13-.64-.5-.64h-2.75c-.28 0-.45.2-.45.4 0 .42.64.52.7 1.7v2.58c0 .57-.1.67-.32.67-.6 0-2.04-2.18-2.9-4.67-.16-.48-.33-.68-.78-.68z' fill='%23fff'/%3E%3Cpath d='M66.86 12.5c0 3.24-2.43 5.5-5.78 5.5s-5.78-2.26-5.78-5.5S57.73 7 61.08 7s5.78 2.26 5.78 5.5zm-8.97 0c0 1.97 1.3 3.3 3.19 3.3s3.19-1.33 3.19-3.3c0-1.98-1.3-3.25-3.19-3.25s-3.19 1.28-3.19 3.25zm-17.14-.21c.95-.44 1.56-1.18 1.56-2.33 0-1.73-1.58-2.96-3.87-2.96h-5.27v11h5.5c2.37 0 4.02-1.29 4.02-3.05 0-1.33-.87-2.32-1.94-2.66zM35.6 9.01h2.83c.85 0 1.44.5 1.44 1.2s-.6 1.2-1.44 1.2h-2.83zM38.67 16h-3.06V13.3h3.06c.96 0 1.59.55 1.59 1.36s-.63 1.33-1.59 1.33zM51.84 18h3.19l-5.06-5.71L54.61 7h-2.9l-3.68 4.27h-.6V7H45v11h2.44v-4.38h.59zM76.47 7v4.34h-4.93V7H69.1v11h2.43v-4.44h4.93V18h2.43V7zM86.9 18h-2.44V9.22h-3.8V7H90.7v2.22h-3.8zm9.5-11c-2.11 0-3.91.89-4.52 2.8l2.24.37c.34-.67 1.05-1.2 2.15-1.2 1.33 0 2.06.84 2.17 2.28h-2.32c-3.23 0-4.79 1.42-4.79 3.45 0 2.05 1.59 3.3 3.78 3.3 1.8 0 3-.72 3.53-1.63l.5 1.63h1.76v-6.18c0-3.19-1.74-4.82-4.5-4.82zm-.72 9c-1.19 0-1.9-.5-1.9-1.4 0-.85.57-1.44 2.43-1.44h2.35c0 1.8-1.19 2.84-2.88 2.84zm17.99 2h-3.2l-3.8-4.38h-.6V18h-2.43V7h2.43v4.27h.6L110.34 7h2.9l-4.63 5.29zm3.88 0h2.43V9.22h3.8V7h-10.04v2.22h3.8zM130.1 7c3.34 0 5.56 2.4 5.56 5.37 0 .3-.02.55-.04.79h-8.54c.23 1.69 1.36 2.69 3.17 2.69 1.29 0 2.15-.4 2.68-1.2l2.29.39c-.88 2.01-2.83 2.96-5.12 2.96a5.28 5.28 0 01-5.51-5.5c0-3.12 2.17-5.5 5.51-5.5zm2.92 4.25c-.4-1.37-1.4-2.15-2.92-2.15-1.48 0-2.47.74-2.87 2.15z' fill='%23cacaca'/%3E%3C/g%3E%3C/svg%3E") !important;
- }
-
- div[contenteditable=true],
- .audio_page_layout .audio_search_wrapper,
- .im-page_classic.im-page .im-chat-history-resize,
- .wall_module .reply_fakebox_wrap
- {
- background: #ffffff00 !important;
- }
-
- #side_bar ol li .left_row:hover
- {
- color: #292929 !important;
- background-color: #909090 !important;
- box-shadow: 2px 7px 3px rgba(0,0,0,.1);
- }
-
- .eltt,
- .pv_author_block,
- .pv_cont .narrow_column,
- .wall_module .reply_form,
- .top_notify_show_all,
- .ui_tabs_header,
- .box_body,
- input,
- .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,
- .ui_search_sugg_list,
- .links-list__item:hover,
- .online.mobile:after,
- .stl_active.over_fast #stl_bg,
- .profile_info_header,
- .profile_info_edit,
- #mv_pl_tt .mv_tt_add_playlist,
- .emoji_tt_wrap,
- .fc_msgs,
- .deep_active .replies .reply_box_inner_wrap.fixed,
- #groups_menu_items .groups_edit_menu_items .group_apps_list_row_drag_wrapper,
- .audio_pl_snippet2 .audio_shuffle_all_button:hover,
- #group_apps_list .group_apps_list_rows.group_apps_list_rows_multi .group_apps_list_row_drag_wrapper,
- #top_notify_wrap,
- .audio_page_player2.audio_page_player_fixed,
- .video_upload_separator_text,
- .cal_table .next_month_day,
- .cal_table .prev_month_day,
- .flat_button.secondary:hover,
- .ui_search_new.ui_search_field_empty .ui_search_button_search,
- .article_ed_layer,
- #stats_cont.stats_cont_browse,
- .paginated_table_header th.paginated_table_cell,
- .mv_live_gifts_item:hover,
- .mv_live_gifts_supercomment:hover,
- .mv_live_gifts_arrow_left:before,
- .mv_live_gifts_arrow_right:hover:before,
- .ts_cont_wrap,
- .search_filters_minimized_text,
- .idd_popup .idd_item.idd_hl,
- [dir] body.new_header_design .top_nav_link.active,
- .box_controls
- {
- background-color: #272727 !important;
- }
-
-
- .page_block,
- .ui_search,
- .im-page--toolsw,
- .im-chat-input,
- .im-page .im-page--dialogs-footer.ui_grey_block,
- .tt_default,
- .wddi,
- .im-chat-input .im-chat-input--txt-wrap,
- .im-page--chat-header,
- .wpost_post,
- .submit_post,
- .im-mess.im-mess_unread+.im-mess:before,
- .im-page_classic.im-page .im-page--dcontent,
- .im-mess.im-mess_selected+.im-mess:before,
- .page_block_header,
- .settings_block_footer,
- .page_actions_wrap,
- .im-page_classic.im-page .im-page--chat-body-wrap-inner,
- .im-page .im-page--mess-search,
- .ChatSettings__content,
- .gedit_block_footer,
- .selector_container,
- .result_list ul,
- .List,
- .im-dropbox,
- .im-create .im-create--tabs,
- .im-create,
- .emoji_tabs_l_s,
- .emoji_tabs_r_s,
- .im-aside-notice,
- .emoji_tab_sel,
- .emoji_tab_sel:hover,
- .emoji_cat_title,
- .im-page.im-page_classic.im-page_group .im-group-online .im-group-online--inner,
- .im-page.im-page_classic.im-page_group .im-group-online,
- .emoji_tabs,
- .Button--mobile,
- .ChatSettingsMembersWidget,
- .ui_grey_block,
- .ChatSettingsInfo,
- .ui_search_fltr,
- .emoji_sticker_item:hover,
- .photos_choose_upload_area,
- .web_cam_photo,
- .pv_white_bg,
- .im-audio-message-input,
- .wk_address_content .addresses_header,
- [dir] .ShortVideoPost,
- [dir] .ShortVideoPage__container--empty,
-
- .MessageForward__content
- {
- background-color: #272727d4 !important;
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23383838' stroke-width='2'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23696969'%3E%3Ccircle cx='769' cy='229' r='8'/%3E%3Ccircle cx='539' cy='269' r='8'/%3E%3Ccircle cx='603' cy='493' r='8'/%3E%3Ccircle cx='731' cy='737' r='8'/%3E%3Ccircle cx='520' cy='660' r='8'/%3E%3Ccircle cx='309' cy='538' r='8'/%3E%3Ccircle cx='295' cy='764' r='8'/%3E%3Ccircle cx='40' cy='599' r='8'/%3E%3Ccircle cx='102' cy='382' r='8'/%3E%3Ccircle cx='127' cy='80' r='8'/%3E%3Ccircle cx='370' cy='105' r='8'/%3E%3Ccircle cx='578' cy='42' r='8'/%3E%3Ccircle cx='237' cy='261' r='8'/%3E%3Ccircle cx='390' cy='382' r='8'/%3E%3C/g%3E%3C/svg%3E") !imortant;
- }
- .article_ed_layer__wrap,
- .fakeinput,
- input.big_text,
- input.dark,
- input.search,
- /*input.text,*/
- textarea
- {
- background-color: #272727 !important;
- }
-
-
- .im-page .im-page--center-empty
- {
- background: url('https://psv4.userapi.com/c856228/u51863636/docs/d14/41e6a3400829/empty_icon.png') no-repeat top !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,
- .nim-dialog.nim-dialog_typing .nim-dialog--typing,
- .im-page .im-page--mess-search,
- .mail_box_group_first_message,
- .page_name, h1.page_name,
- .audio_pl_snippet2 .audio_shuffle_all_button,
- .audio_pl_item2 .audio_pl__subtitle>a,
- .wk_address_content .addresses_wrap .address .address_timetable .address_timetable_one_day.on,
- .wk_address_content .addresses_wrap .address .address_time_status .address_time_status_cur_time,
- .medadd_poll_answer_add
- {
- 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,
- .emoji_cat_title,
- .mv_recom_block_title,
- #stat_group_postsreach_table td,
- .idd_popup .idd_item,
- .idd_popup .idd_header,
-
- #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,
- .top_notify_header,
- .top_notify_cont .feedback_header,
- .feedback_header,
- .Tabs__item--active>*,
- .PlaceholderSmall__title,
- .im-page-pinned--date,
- .audio_page_layout .audio_item__title
- {
- color: #949494 !important;
- }
-
- .ui_actions_menu_item:hover,
- .media_selector .ms_items_more .ms_item:hover,
- .idd_popup .idd_item.idd_hover, .idd_popup .idd_item.idd_hover_sublist_parent,
- .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-color: #3d5877 !important;
- }
-
- .page_counter .count,
- .subheader, h4.subheader,
- .tt_w,
- .Entity__title,
- .PlaceholderSmall__text,
- .sticker_extra_tt .tt_text,
- .subscribe_post_tt .tt_text,
- .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,
- .page_actions_header,
- .im-mess.im-mess_selected:not(.im-mess_is_editing)
- {
- background-color: #252a31 !important;
- }
-
-
- #side_bar .more_div,
- .nim-dialog .nim-dialog--content,
- .im-chat-input,
- .ui_rmenu_sep,
-
- .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,
- .audio_subscribe_promo,
- .ui_search_sugg_list,
- .top_notify_show_all,
- .feedback_row,
- .wall_module .reply~.reply .reply_wrap,
- .page_actions_inner,
- div.fc_tab_txt,
- .olist_item_wrap:hover,
- .profile_info_block,
- .ui_grey_block,
- .nim-dialog:not(.nim-dialog_deleted).nim-dialog_selected+.nim-dialog,
- .im-page .im-page--mess-search,
- .search_sep,
- .search_row,
- .bp_post,
- .friends_user_row,
- .feed_row~.feed_row .feedback_row_clickable:not(.feedback_row_touched):hover,
- .im-audio-message-input,
- .docs_item,
- .counts_module
- {
- border-top-color: #464748 !important;
- }
-
- [dir] .top_profile_mrow:hover,
- [dir] .top_profile_vkconnect_row:hover
- {
- background-color: #464748 !important;
- }
-
- .deep_active .replies .reply_field_wrap .reply_field,
- .deep_active .replies .reply_fakebox,
- .wdd_list,
- div.wdd,
- .wpost_post,
- .ui_search_new .ui_search_input_inner,
- .module,
- #top_profile_menu,
- .ms_items_more,
- .ui_actions_menu,
- .eltt,
-
- .ui_search_sugg_list,
- #top_notify_wrap,
- .page_actions_wrap,
- .fc_msgs,
- .fc_tab,
- div[contenteditable=true],
- .tt_default,
- .ui_search_new .ui_search_button_search,
- .audio_layer_container .audio_page__footer,
- .audio_layer_container .audio_page_player_wrap,
- #mv_publish,
- .tt_w.top_notify_tt,
- .CatalogSection__leftColumn,
- .im-chat-input .im-chat-input--txt-wrap
- {
- border-color:#2f2f2f !important;
- }
-
-
-
- /*.page_block
- {
- box-shadow: 0 0 0 0 #d7d8db, 0 0 0 0px #e3e4e8 !important;
- }*/
-
- [dir] .ShortVideoPage .page_block_h2,
- [dir] .ShortVideoPage__container--empty
- {
- box-shadow: 0 1px 0 0 #d3d9de00, 0 0 0 1px #e7e8ec00 !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,
- .im-page .im-page--mess-search,
- .olist_item_wrap,
- .Tabs,
- .im-page_classic.im-page .im-page--chat-input,
- .feed_new_posts,
- .feedback_row_clickable:not(.feedback_row_touched):hover,
- .audio_layer_container .audio_page_player_wrap,
- .bt_header,
- .gifts_box_rows .post,
- .blst_row,
- .paginated_table_header th.paginated_table_cell,
- .mv_live_gifts_block,
- .docs_choose_rows .docs_item,
- .tt_w.top_notify_tt.tt_up:before,
- .tt_w.top_notify_tt.tt_up:after,
- .mv_comments_summary
- {
- border-bottom-color: #2f2f2f !important;
- }
-
-
- .mv_info_narrow_column,
- .mv_recom_block_title,
- .im-page_classic.im-page .im-page--header,
- .mv_live_gifts_supercomment,
- .wall_module .copy_quote
- {
- border-left-color: #272727 !important;
- }
-
- .audio_page_layout .has_friends_block .audio_page__rows_wrap,
- .im-page_classic.im-page .im-page--header
- {
- border-right-color:#272727 !important;
- }
-
- .chat_onl_inner
- { /* убираем «быстрые диалоги» */
- display:none !important;
- }
-
- .page_photos_module
- {
- padding: 15px 15px 15px !important;
- }
-
- #page_header_cont .back,
- .page_avatar_img,
- .stl_active.over_fast #stl_bg,
- #profile_message_send,
- .stories_feed_preview_item,
- .post_img,
- .page_post_sized_thumbs,
- .im-page--header-more .ui_actions_menu,
- .nim-dialog:not(.nim-dialog_deleted).nim-dialog:hover,
- .im-chat-input .ms_items_more,
-
- .emoji_tt_wrap,
- .fc_tab,
- .info_msg,
- .im-aside-notice,
- .List--border,
- .page_block,
- .online:after,
- .audio_page_layout .audio_block:before,
- .page_block._audio_page_content_block:before,
- .im-page.im-page_classic.im-page_group .im-group-online .im-group-online--inner
- {
- box-shadow: 7px 7px 3px 3px rgba(0,0,0,.1) !important;
- }
-
-
- [dir] .ShortVideoPost {
- box-shadow: 0 1px 0 0 #d3d9de00, 0 0 0 1px #e7e8ec00 !important;
-
- }
-
- .online:after {
- border: 0px solid #ffffff !important;
- box-shadow: 1px 3px 2px 2px rgba(0,0,0,.1);
- }
-
- .module_body {
- padding: 12px 14px 15px !important;
- }
-
- .im-page_classic.im-page .im-page--dialogs-search,
- .im-page_classic .im-page--chat-header-in,
- .im-chat-input.im-chat-input_classic,
- .nim-dialog.nim-dialog_unread .nim-dialog--unread,
- .ChatSettingsInfo,
- .ChatSettingsMembersWidget,
- .List--border,
- .Button--mobile,
- #admin_tips #gtop_admin_tips.gtop_complex_message,
- .CatalogBlock--divided:before, .CatalogSection:before,
- .im-page_classic.im-page .im-page--chat-body-abs
- {
- box-shadow: 2px 7px 3px rgba(0,0,0,.1) !important;
- }
-
- .im-page_classic .im-page--chat-header,
- .im-page_classic.im-page .im-page--chat-input,
- .nim-dialog:not(.nim-dialog_deleted).nim-dialog.nim-dialog_classic.nim-dialog_unread,
- .nim-dialog:not(.nim-dialog_deleted).nim-dialog_unread.nim-dialog_classic+.nim-dialog,
- .ui_tabs.ui_tabs_box,
- .ListItem--active,
- .ListItem--can-be-hovered.ListItem--selectable:hover,
- .like_cont,
- .emoji_tt_wrap,
- .photos_container .photos_row,
- .info_msg,
- .ListItem--active,
- .group_friends_image,
- .ui_search_fltr,
- .emoji_tt_wrap.tt_down:after,
- .emoji_tt_wrap.tt_down:before,
- #mv_pl_tt .mv_tt_private_only+.mv_tt_playlists,
- #mv_pl_tt .mv_tt_add_playlist,
- .like_share_ava.wdd_imgs .wdd_img_full,
- .like_share_ava.wdd_imgs .wdd_img_half,
- .like_share_ava.wdd_imgs .wdd_img_tiny,
- .sticker_hints_tt,
- .Avatar--online:after,
- .box_controls,
- .online:after,
- .sticker_hints_arrow,
- .cal_table>tbody,
- .market_item_footer_wrap,
- .wk_address_content .addresses_header,
- .app_widget_list_row,
- .stats_browse_filter,
- .idd_popup,
- #mv_publish,
- .im-page_classic.im-page .im-page--chat-body-wrap-inner,
- .im-page_classic.im-page .im-page--header
- {
- border-top-color: #ffffff00 !important;
- border-color: #ffffff00 !important;
- border-bottom-color: #ffffff00 !important;
- border-left-color: #ffffff00 !important;
- border-right-color: #ffffff00 !important;
- }
-
- .im-page_classic.im-page .im-page--chat-input
- {
- border-bottom: solid 0px #ffffff00 !important;
- }
-
- .im-page_classic .im-page--chat-header
- {
- top: 42px !important;;
- }
-
- /*.page_actions_cont.narrow .page_actions_header,*/
- .page_actions_cont.narrow .page_extra_actions_btn
- {
- background-image: url(/images/icons/profile_dots.png?1) !important;
- background-color: #2f2f2f !important;
- }
-
- .im-page--back-btn:hover
- {
- background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="9" height="16" viewBox="0 0 9 16" fill="rgb(128,141,153)"><path fill="curentCollor" d="M8 15.9c-.2 0-.4-.1-.6-.3l-7-7c-.3-.3-.3-.9 0-1.2l7-7c.3-.3.9-.3 1.2 0 .3.3.3.9 0 1.2l-6.4 6.4 6.4 6.4c.3.3.3.9 0 1.2-.2.2-.4.3-.6.3z" opacity=".7"/></svg>') 15px 16px no-repeat, linear-gradient(90deg, #2f2f2f 50%, #272727) !important;
- }
-
-
- .olist_checkbox,
- .wall_post_source_icon
- {
- filter: invert(83%);
- }
-
- .bp_post.bp_selected.bp_animated
- {
- background-color: transparent !important;
- border-color: transparent !important;
- }
-
- .bp_post.bp_selected
- {
- background-color: #4872a3 !important;
- transition: background-color 5000ms linear, border-color 5000ms linear !important;
- }
-
- .notify_sources_tt_content .content:not(:hover) .line_cell.selected,
- .notify_sources_tt_content .line_cell:hover
- {
- background-color: #4872a3 !important;
- }
-
- .emoji_sprite,
- .ui_scroll_default_theme.ui_scroll_emoji_theme>.ui_scroll_overflow>.ui_scroll_shadow_top,
- .ui_scroll_default_theme.ui_scroll_emoji_theme>.ui_scroll_overflow>.ui_scroll_shadow_bottom
- {
- filter: invert(90%) !important;
- }
-
-
- .sticker_hints_arrow
- {
- background: #272727 url(/images/icons/stickers_hints_arrow.png) no-repeat 50% 50% !important;
- }
-
- .wddi,
- .wddi_over,
- .post_actions_btns,
- .submit_post
- {
- border-top-color: #2f2f2f !important;
- }
-
-
- .nim-peer .nim-peer--photo .im_grid>img,
- .nim-peer .nim-peer--photo>img,
- .nim-peer .nim-peer--photo-w,
- .post_img,
- .wall_module .copy_post_img,
- .module_body .people_cell_img,
- .page_list_module .thumb,
- .wall_module .reply_img,
- .post_field_user_image,
- .top_profile_img,
- .ow_ava.ow_ava_comm,
- .friends_photo_img,
- .right_list_img,
- .group_row_photo,
- .group_row_img,
- .page_square_photo,
- .page_avatar_img,
- .notify_tt_img,
- .notify_tt_thumb,
- /*a.page_post_thumb_wrap.image_cover.page_post_thumb_last_column.page_post_thumb_last_row,*/
- a.page_post_thumb_wrap.image_cover,
- input.text.ts_input,
- .video_box_wrap
- {
- border-radius: 10px !important;
- }
-
- [dir] .im-page-pinned,
- [dir] .im-page--chat-header-in,
- [dir] body.new_header_design #page_header_cont
- {
- border-bottom-color: transparent !important;
- }
-
- [dir] .im-page-pinned,
- [dir] body.new_header_design #page_header_cont
- {
- background-color: #272727a3 !important;
- }
-
-
- .left_menu_nav_wrap,
- #side_bar ol,
- .CatalogBlock--divided,
- /*[dir] .im-page-pinned,*/
- .CatalogSection
- {
- box-shadow: 7px 7px 3px 3px rgba(0,0,0,.1) !important;
- padding: 9px 9px !important;
- padding-left: 14px !important;
- background-color: #272727de !important;
- border-radius: 5px !important;
-
- }
-
- /*div#layer_wrap,*/
- /*div#box_layer_wrap*/
- #layer_bg,
- #box_layer_bg
- {
- /*backdrop-filter: blur(3px);*/
- background: #00000038 !important;
- opacity: 1 !important;
- }
-
- .tt_default,
- .tt_default_right
- {
- border: 1px solid #6b6969 !important;
- }
-
- .im-page .im-page--history-new-bar
- {
- background: #ffffff00 !important;
- }
-
- .im-page .im-page--history-new-bar>span {
- background: #2f2f2f !important;
- border-radius: 17px !important;
- box-shadow: 2px 7px 3px rgba(0,0,0,.1) !important;
- }
-
- .im-page .im-page--history-new-bar:after, .im-page .im-page--history-new-bar:before {
- display: block;
- content: '';
- height: 1px;
- width: 50%;
- background: #e4e6e980 !important;
- position: absolute;
- top: 50%;
- margin-left: 43px;
- }
-
- .article_ed_layer .article_ed_layer__close
- {
- filter: invert(1);
- }
-
- .mv_live_gifts_arrow_left:hover:before, .mv_live_gifts_arrow_right:hover:before {
- background-image: linear-gradient(0deg, #fff, #f0f2f5, #fff) !important;
- }
-
- #ads_left,
- ._ads_block_data_w,
- .page_block .apps_feedRightAppsBlock .apps_feedRightAppsBlock_single_app,
- .fc_tab_wrap
- {
- display: none !important;
- }
-
- .tt_w.top_notify_tt.tt_up
- {
- box-shadow: 6px 7px 3px rgba(0, 0, 0, 0.55);
- }
-
- .im-mess.im-mess_gift,
- li.im-mess.im_out._im_mess.im-mess_gift.im-mess_out
- {
- background: #69696966 !important;
- }
-
- .audio_page_layout .audio_friends_list,
- .PlaceholderSmall__title
- {
- background-color: transparent !important;
- }
-
-
-
- `);
-
-
- function blur_add() {
- blur = GM_addStyle(`
- .left_menu_nav_wrap,
- #side_bar ol,
- .ui_scroll_inner.tt_noappend,
- #layer_bg,
- #alert,
- #box_layer_bg
- {
- backdrop-filter: blur(3px);
-
- }
- `);
- }
- //buer();
- function blur_remote() {
-
- if (blur && blur.id) {
- blur.remove();
- }
- }
-
- darkStyleBacground = GM_addStyle(`
- body
- {
- background-image: url(${GM_getValue('background')});
- background-color: #2f2f2f;
- background-attachment: fixed;
- background-size: 100%;
- }
- `);
-
- }
-
-
-
- //#endregion
-
-
-
-
- $(document).ready(function () {
- if (GM_getValue('enable') == true) $('body').css({ 'background-image': 'url("' + GM_getValue('background') + '")', 'background-color': '#2f2f2f', 'background-size': '100%', 'background-attachment': 'fixed' });
- });
-
- function removeStyle() {
- if (darkStyle && darkStyle.id) {
- darkStyle.remove();
- }
-
- if (darkStyleBack && darkStyleBack.id) {
- darkStyleBack.remove();
- }
-
- if (blur && blur.id) {
- blur.remove();
- }
-
-
- }
-
-
-
- //#region переименование группы и сообщения
- function rename() {
- $('#l_gr > a > span.left_label.inl_bl').text(GM_getValue('group'));
- $('#l_msg > a > span.left_label.inl_bl').text(GM_getValue('message_name'));
- }
- $(document).ready(function () {
- rename();
- })
- //#endregion
-
-
-
- $(document).ready(function () {
-
- let names = JSON.parse(GM_getValue('names')).map(v => v.toLowerCase());
- let userName = $('.top_profile_name').text();
-
- if (names.indexOf(userName.toLowerCase()) > -1) {
- if (darkStyle && darkStyle.id) {
- $(`#${darkStyle.id}`).remove();
- }
- }
-
- $('#side_bar_inner ol').append($('<div>', { class: 'more_div' })).append($('<li>', { id: 'l_bt' }).append($('<a>', { class: 'left_row' }).on("click", () => { window.open('https://greasyfork.org/ru/scripts/392169-dark-vk-theme') }).append($('<span>', {
- class: 'left_fixer', html: [
- $('<span>', { class: 'left_count_wrap fl_r left_void' }).append($('<span>', { class: 'inl_bl left_count_sign' })),
- $('<span>', { class: 'left_icon fl_l' }),
- $('<span>', { class: 'left_label inl_bl', text: `Версия: ${GM_info.script.version}` })
- ]
- }))))
-
- $('#side_bar_inner ol').append($('<li>', { id: 'l_bt' }).append($('<a>', { class: 'left_row' }).on("click", () => { window.open('https://vk.com/dygdyg') }).append($('<span>', {
- class: 'left_fixer', html: [
- $('<span>', { class: 'left_count_wrap fl_r left_void' }).append($('<span>', { class: 'inl_bl left_count_sign' })),
- $('<span>', { class: 'left_icon fl_l' }),
- $('<span>', { class: 'left_label inl_bl', text: `Автор: DygDyg` })
- ]
- }))))
- $('#side_bar_inner ol').append($('<li>', { id: 'l_bt' }).append($('<a>', { class: 'left_row' }).on("click", () => { window.open('https://vk.com/topic-109462867_43703182') }).append($('<span>', {
- class: 'left_fixer', html: [
- $('<span>', { class: 'left_count_wrap fl_r left_void' }).append($('<span>', { class: 'inl_bl left_count_sign' })),
- $('<span>', { class: 'left_icon fl_l' }),
- $('<span>', { class: 'left_label inl_bl', text: `Нашли баг?` })
- ]
- }))))
-
- $('#side_bar_inner ol').append($('<li>', { id: 'l_bt' }).append($('<a>', { class: 'left_row' }).on("click", test).append($('<span>', {
- class: 'left_fixer', html: [
- $('<span>', { class: 'left_count_wrap fl_r left_void' }).append($('<span>', { class: 'inl_bl left_count_sign' })),
- $('<span>', { class: 'left_icon fl_l' }),
- $('<span>', { class: 'left_label inl_bl', text: `Настройки` })
- ]
- }))))
- });
-
-
-
-
- //#region Модальное окно //стиль
- GM_addStyle(`
-
-
-
- #alert {
- background: #000000a3;
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23383838' stroke-width='2'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23696969'%3E%3Ccircle cx='769' cy='229' r='8'/%3E%3Ccircle cx='539' cy='269' r='8'/%3E%3Ccircle cx='603' cy='493' r='8'/%3E%3Ccircle cx='731' cy='737' r='8'/%3E%3Ccircle cx='520' cy='660' r='8'/%3E%3Ccircle cx='309' cy='538' r='8'/%3E%3Ccircle cx='295' cy='764' r='8'/%3E%3Ccircle cx='40' cy='599' r='8'/%3E%3Ccircle cx='102' cy='382' r='8'/%3E%3Ccircle cx='127' cy='80' r='8'/%3E%3Ccircle cx='370' cy='105' r='8'/%3E%3Ccircle cx='578' cy='42' r='8'/%3E%3Ccircle cx='237' cy='261' r='8'/%3E%3Ccircle cx='390' cy='382' r='8'/%3E%3C/g%3E%3C/svg%3E");
- width: 100%;
- height: 100%;
- position: fixed;
- z-index: 99999999;
- text-align: center;
- }
-
- #window1 {
- background-color: #272727db !important;
- width: 300px;
- /*height: 120px;*/
- border-radius: 4px;
- position: absolute;
- top: 10%;
- left: 50%;
- transform: translate(-50%);
- padding: 10px 10px 10px 10px;
- box-shadow: 7px 7px 3px 3px rgba(0,0,0,.1);
- }
-
- .stop-scrolling {
- height: 100%;
- overflow: hidden;
- }
-
- .theme_button {
- display: block;
- padding: 7px 16px 8px;
- margin: 5px;
- font-size: 12.5px;
- zoom: 1;
- cursor: pointer;
- white-space: nowrap;
- outline: none;
- font-family: -apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,"Noto Sans Armenian","Noto Sans Bengali","Noto Sans Cherokee","Noto Sans Devanagari","Noto Sans Ethiopic","Noto Sans Georgian","Noto Sans Hebrew","Noto Sans Kannada","Noto Sans Khmer","Noto Sans Lao","Noto Sans Osmanya","Noto Sans Tamil","Noto Sans Telugu","Noto Sans Thai",sans-serif;
- vertical-align: top;
- line-height: 15px;
- text-align: center;
- text-decoration: none;
- background: none;
- background-color: #5181b8;
- color: #fff;
- border: 0;
- border-radius: 4px;
- box-sizing: border-box;
- box-shadow: 7px 7px 3px 3px rgba(0,0,0,.1);
- }
-
- div#test1 {
- text-align: center;
- }
-
- div#key {
- text-align: center;
- margin-bottom: 40px;
- }
-
- .text_menu {
- width: 290px;
- margin: 5px;
- box-sizing: border-box;
- padding: 7px;
- border: none;
- border-radius: 2px;
- display: flex;
- height: 86px;
- resize: none;
- background: #6b6b6bad !important;
- color: white;
- box-shadow: 7px 7px 3px 3px rgba(0,0,0,.1);
- }
-
- div#image {
- width: 290px;
- height: 180px;
- margin: 0 auto;
- margin-bottom: 5px;
- border-radius: 4px;
- }
-
-
- .theme_text_name {
- font-size: 19px;
- line-height: 25px;
- font-weight: 400;
- -webkit-font-smoothing: subpixel-antialiased;
- -moz-osx-font-smoothing: auto;
- margin: -1px 0 -1px -1px;
- overflow: hidden;
- text-overflow: ellipsis;
- padding-left: 1px;
-
- color: #fff;
- box-shadow: 7px 7px 3px 3px rgba(0,0,0,.1);
- }
-
- .cont-bottom {
- border-bottom: 1px solid #b5b1b191;
- }
- img.izo {
- object-fit: cover;
- width: 100%;
- height: 100%;
- background: url(https://sun9-57.userapi.com/c857620/v857620009/18a5fd/uOxmtZm_L2A.jpg);
- background-size: 100%;
- box-shadow: 7px 7px 3px 3px rgba(0,0,0,.1);
- }
-
- #alert
- {
- /*cursor: url('https://psv4.userapi.com/c856236/u51863636/docs/d18/10eb2dcc6647/636329186537635884.png'), auto;*/
- }
-
-
-
-
- `)
-
- //#endregion
- //#region Модальное окно //логика
-
-
-
- var on = true;
- var range_11 = 0;
- function test() {
- var newImage;
- $('body').addClass('stop-scrolling').prepend(
- $('<div>', { id: 'alert' }).append(
- $('<div>', { id: 'window1' }).append(
- $('<div>', {
- class: 'cont-bottom', id: 'cont1', html:
- [
- $('<div>', { class: 'theme_text_name', text: 'Установка фона' }),
- $('<div>', { id: 'image', style: 'border-radius: 4px;' }).append($('<img>', { class: 'izo', style: 'border-radius: 4px; margin-left: 2px;', src: GM_getValue('background') })),
- $('<textarea>', { class: 'text_menu', id: 'text_background', text: GM_getValue('background'), style: 'border-radius: 4px; background-color: #ffffff0f !important; margin-top: 4px; margin-bottom: 4px; margin-left: 8px;' }).on('change keyup blur', function (e) {
- let URLtext = $('#text_background').val();
- $('#image img.izo').attr('src', URLtext);
- newImage = URLtext;
- })
- ]
- })).append(
- $('<div>', {
- class: 'cont-bottom', id: 'cont1', html:
- [
- $('<div>', { class: 'theme_button', id: 'button_delete', style: 'display: none;', text: 'Выключить тему' }).on('click', () => {
- theme_off();
- GM_setValue('enable', false);
- //exit_();
- }),
- $('<div>', { class: 'theme_button', id: 'button_spawn', style: 'display: none;', text: 'Включить тему' }).on('click', () => {
- theme();
- GM_setValue('enable', true);
- //exit_();
- })
- ]
- })).append(
- $('<div>', {
- class: 'cont-bottom', id: 'cont1', html:
- [
- $('<div>', { class: 'theme_text_name', style: 'margin-top: 10px;', text: 'Текст кнопки группы' }),
- $('<textarea>', { class: 'text_menu', id: 'text_group', text: GM_getValue('group'), style: 'height: 24px; width: 285px; margin-left: 2px; border-radius: 4px; background-color: #ffffff0f!important; margin-top: 4px; margin-bottom: 4px; margin-left: 8px;' })
- .on('change keyup blur', function (e) {
- _group = $('#text_group').val();
- }),
- ]
- })).append(
- $('<div>', {
- class: 'cont-bottom', id: 'cont2', html:
- [
- $('<div>', { class: 'theme_text_name', style: 'margin-top: 10px;', text: 'Текст кнопки сообщения' }),
- $('<textarea>', {
- class: 'text_menu', id: 'text_message', text: GM_getValue('message_name'), style: 'height: 24px; width: 285px; border-radius: 4px; background-color: #ffffff0f!important; margin-top: 4px; margin-bottom: 4px; margin-left: 8px;'
- })
- .on('change keyup blur', function (e) {
- _messange_name = $('#text_message').val();
- }),
- ]
- })).append(
- $('<div>', { class: 'theme_button', id: 'button_save', style: 'margin-top: 10px;', text: 'Сохранить' }).on('click', () => {
- newImage = $('#text_background').val();
- _group = $('#text_group').val();
- _messange_name = $('#text_message').val();
- GM_setValue('background', newImage);
- GM_setValue('group', _group);
- GM_setValue('message_name', _messange_name);
- rename();
- if (GM_getValue('enable') == true) { $('body').css({ 'background': 'url("' + newImage + '") #2F2F30', 'background-size': '100%', 'background-attachment': 'fixed' }) };
- exit_();
- })).append(
- $('<div>', { class: 'theme_button', id: 'button_exit', text: 'Закрыть' }).on('click', exit_)).append(
- $('<button>', { class: "jscolor {valueElement:'chosen-value', onFineChange:'setTextColor(this)'}", text: 'ТЕСТ', style: 'display: none;' })
- )
-
- )
- );
-
- function setTextColor(picker) {
- document.getElementsByTagName('body')[0].style.color = '#' + picker.toString()
- }
- var range_coll;
- range_col()
- function range_col() {
-
-
- if (range_coll && range_coll.id) { range_coll.remove() };
- //console.log(col);
- range_coll = GM_addStyle(`
- .top_audio_player:hover,
- .audio_page_player2 .audio_page_player_play:hover .icon,
- .audio_page_player2 .audio_page_player_play .icon,
- .slider .slider_amount,
- .slider .slider_back,
- .theme_button,
- #page_header_cont .back,
- .top_nav_link:hover,
- .nim-dialog:not(.nim-dialog_deleted).nim-dialog_selected,
- .nim-dialog:not(.nim-dialog_deleted).nim-dialog_hovered,
- .ui_rmenu_item:hover, .ui_rmenu_subitem:hover,
- .ui_rmenu_item_sel,
- .ui_rmenu_item_sel:hover,
- .olist_item_wrap:hover,
- .docs_choose_upload_area:hover,
- .box_title_wrap.box_grey,
- .ui_tab_sel, .ui_tab_sel:hover,
- .ui_tabs .ui_tab_sel, .ui_tabs .ui_tab_sel:hover,
- .ui_tabs_box .ui_tab_sel,
- .ui_tabs_box .ui_tab_sel:hover,
- .ui_rmenu_item:hover,
- .ui_rmenu_subitem:hover,
- .ui_rmenu_item_sel,
- .ui_rmenu_item_sel:hover,
- .olist_item_wrap:hover,
- .docs_choose_upload_area:hover,
- .button_blue button,
- .button_gray button,
- .button_light_gray button,
- .flat_button,
- .box_title_wrap.box_grey
- {
- filter: hue-rotate(${col}deg) saturate(100%);
- /*background: hsl(${col}, 39%, 47%) !important;*/
- }
- `);
-
- }
-
-
- function theme_off() {
- darkStyleBacground.remove();
- darkStyle.remove();
- darkStyle1.remove();
- $('body').css({ 'background-color': '', 'background-image': '' });
- $('#button_delete').css({ 'display': 'none' });
- $('#button_spawn').css({ 'display': 'block' });
- }
-
- if (GM_getValue('enable') == true) $('#button_delete').css({ 'display': 'block' });
- if (GM_getValue('enable') == false) $('#button_spawn').css({ 'display': 'block' });
-
- }
-
- //#endregion
-
-
- var t = ' ';
-
- /*$(document).keyup(function (e) {
- t = e.code;
- console.dir(t);
- });*/
-
-
-
- let pressed = new Set();
- /*$(document).on('keyup', function (e) {
- t = e.originalEvent.code;
- pressed.add(t);
- //console.log(pressed);
- pressed.clear();
- console.log(t);
- });*/
-
-
- /*$(document).ready(function () {
- $("body").keydown(function (event) { // задаем функцию при отпускании после нажатия любой клавиши клавиатуры на элементе
- console.log(event.which); // выводим код нажатой клавиши
- });
- });*/
-
- function exit_() {
- $('#alert').remove();
- $('body').removeClass('stop-scrolling');
- }
- ///Модальное окно
-
-
- $(document).ready(function () {
- if (GM_getValue('ver_info') != ver_info) {
- info();
- GM_setValue('ver_info', ver_info);
- }
-
- })
-
- if (GM_getValue('enable') == true) theme();
-
-
- function info() {
- $('body').addClass('stop-scrolling').prepend(
- $('<div>', { id: 'alert' }).append(
- $('<div>', { id: 'window1' }).append(
- $('<div>', {
- class: 'cont-bottom', id: 'cont1', html: [
- $('<div>', { class: 'theme_text_name', text: GM_info.script.name + ' ' + GM_info.script.version }),
- $('<div>', { class: 'theme_text_name', text: 'Нововведения:' }),
-
-
- ]
- })
- ).append(
- $('<div>', {
- class: 'cont-bottom', id: 'cont1', html: [
- $('<div>', { style: 'font-size: 14px; text-align: -webkit-auto;', class: 'theme_text_name', text: _info })
- ]
- })).append(
- $('<div>', { class: 'theme_button', id: 'button_exit', text: 'Закрыть' }).on('click', exit_))
- )
- )
- }