Greasy Fork is available in English.

Dark VK Theme

Тёмная тема для VK

Instalar o script?
Script sugerido do autor

Você também pode gostar de Антилах (Ctrl+Win, Shift+Win).

Instalar o script
  1. // ==UserScript==
  2. // @name Dark VK Theme
  3. // @description Тёмная тема для VK
  4. // @author DygDyg
  5. // @homepage http://dygdyg.ddns.net
  6. // @include https://vk.com/*
  7. // @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
  8. // @require https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js
  9. // @icon https://vk.com/images/icons/favicons/fav_logo.ico
  10. // @version 0.0.11.82
  11. // @run-at document-start
  12. // @grant GM_setValue
  13. // @grant GM_getValue
  14. // @grant GM_addStyle
  15. // @grant GM_info
  16. // @grant GM_unregisterMenuCommand
  17. // @grant GM_registerMenuCommand
  18. // @grant GM_openInTab
  19. // @grant GM_getResourceText
  20. // @grant GM_notification
  21. // @license MIT
  22.  
  23. // @namespace https://greasyfork.org/users/303755
  24. // ==/UserScript==
  25.  
  26. var $ = window.jQuery
  27.  
  28. var darkStyle1, darkStyle, darkStyleBacground, combo_hide_style
  29.  
  30. if (GM_getValue('enable', null) == null) GM_setValue('enable', true)
  31. if (GM_getValue('names', null) == null) GM_setValue('names', JSON.stringify([]))
  32. if (GM_getValue('debug', null) == null) GM_setValue('debug', false)
  33. if (GM_getValue('group', null) == null) GM_setValue('group', 'Группы')
  34. if (GM_getValue('message_name', null) == null) GM_setValue('message_name', 'Сообщения')
  35. if (GM_getValue('ver_info', null) == null) GM_setValue('ver_info', '0')
  36. if (GM_getValue('combo_hide', null) == null) GM_setValue('combo_hide', false)
  37. if (GM_getValue('bc_albom_enable', null) == null) GM_setValue('bc_albom_enable', false)
  38. if (GM_getValue('text_id_group', null) == null) GM_setValue('text_id_group', '-22786271')
  39. if (GM_getValue('text_id_albom', null) == null) GM_setValue('text_id_albom', '229998745')
  40. if (GM_getValue('bc_albom_repit', null) == null) GM_setValue('bc_albom_repit', 0)
  41.  
  42.  
  43. var owner_id = GM_getValue('text_id_group')
  44. var album_id = GM_getValue('text_id_albom')
  45. var bc_albom_repit = GM_getValue('bc_albom_repit')
  46.  
  47. var ver_info = '7'
  48. var col = 0
  49. var _info = 'Добавил поддержку добавления альбома с фонами (ищи в настройках приложения). Если открыть настройки на окне альбома, то он предложит сделать этот альбом фоновым. Кучу фиксов покраски и других исправлений.'
  50.  
  51. if (GM_getValue('debug', false)) {
  52. $(document).ready(function () {
  53. //Start_Settings_Menu();
  54. alert_frame('⚠️ Дебаг режим включён ⚠️', 'В данный момент включён режим отладки, выключи в меню tampermonkey')
  55. //setTimeout(analit, 1000);
  56. //analit();
  57. })
  58. }
  59.  
  60. //#region Дебаг режим
  61. function debug_MC(menuCmdId) {
  62. if (menuCmdId) {
  63. GM_unregisterMenuCommand(menuCmdId)
  64. }
  65.  
  66. if (GM_getValue('debug') == true) {
  67. menuCmdId = GM_registerMenuCommand('Дебаг режим: Включён ✅', () => {
  68. GM_setValue('debug', !GM_getValue('debug'))
  69. //GM_notification({ title: 'Дебаг режим:', text: '✅ Включён', timeout: 3000 });
  70. alert_frame('Дебаг режим:', '✅ Включён', 3000)
  71. debug_MC(menuCmdId)
  72. })
  73. } else {
  74. menuCmdId = GM_registerMenuCommand('Дебаг режим: Выключен', () => {
  75. GM_setValue('debug', !GM_getValue('debug'))
  76. //GM_notification({ title: 'Дебаг режим:', text: '⛔ Выключен', timeout: 3000 });
  77. alert_frame('Дебаг режим:', '⛔ Выключен', 3000)
  78. debug_MC(menuCmdId)
  79. })
  80. }
  81. }
  82. debug_MC()
  83. //#endregion
  84.  
  85. //#region Тело скина
  86. function theme() {
  87.  
  88. console.log($('#test_analit_enable').text())
  89. if (darkStyleBacground && darkStyleBacground.id) {
  90. darkStyleBacground.remove()
  91. }
  92. if (darkStyle && darkStyle.id) {
  93. darkStyle.remove()
  94. }
  95. if (darkStyle1 && darkStyle1.id) {
  96. darkStyle1.remove()
  97. }
  98. if (combo_hide_style && combo_hide_style.id) {
  99. combo_hide_style.remove()
  100. }
  101.  
  102. $('#button_spawn').css({ display: 'none' })
  103. $('#button_delete').css({ display: 'block' })
  104. //$('body').css({ 'background-image': 'url("' + GM_getValue('background') + '")', 'background-size': '100%', 'background-attachment': 'fixed' });
  105. $('body').css({ 'background-image': 'url("' + GM_getValue('background') + '")', 'background-color': '#2F2F30', 'background-size': '100%', 'background-attachment': 'fixed' })
  106. //$("#Link_oboi").attr("href", GM_getValue('background'));
  107. $('#Link_oboi').attr('href', 'https://vk.com/feed')
  108. get_albom()
  109. bc_transparent(GM_getValue('background'), true)
  110.  
  111. darkStyle1 = GM_addStyle(`
  112. :root {
  113. --black: #d7d7d7;
  114. --background_content: #2f2f2f;
  115. }
  116. div#mv_player_box {
  117. background-color: #2f2f2f;
  118. }
  119.  
  120. [dir] .nim-peer.online::after {
  121. box-shadow: 0 0 3px 1px black !important;
  122. }
  123.  
  124. div#side_bar {
  125. top: 0px !important;
  126. position: fixed !important;
  127. }
  128.  
  129. ul.ConvoRecommendList {
  130. display: none !important;
  131. }
  132.  
  133. a.ui_gallery_item.wall_card.friend_recomm_card {
  134. background: #272727;
  135. }
  136.  
  137. section#fastchat-reforged {
  138. display: none;
  139. }
  140.  
  141. img.im_gift,
  142. img.sticker_img.emoji_sticker_image,
  143. img.emoji_sticker_image,
  144. svg.svg_sticker_animation
  145. {
  146. background-color: #ffffffbf;
  147. border-radius: 15px 0px 15px 0px;
  148. border-color: #949494;
  149. border-style: solid;
  150. border-width: unset;
  151. 4px 3px 15px 0px black, inset 4px 3px 15px 0px #6b6b6b;
  152.  
  153. }
  154.  
  155.  
  156. #layer_wrap,
  157. div#wk_layer_wrap,
  158. #box_layer_wrap
  159. {
  160. background-color: #000000a3 !important;
  161. 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");
  162. /*width: 100%;*/
  163. /*height: 100%;*/
  164. /*position: fixed;*/
  165. /*z-index: 99999999;*/
  166. background-attachment: fixed;
  167. /*text-align: center;*/
  168. }
  169.  
  170.  
  171.  
  172. .body_im .side_bar
  173. {
  174. padding-left: 130px !important;
  175. }
  176.  
  177. [dir] .market_item_content_bottom {
  178.  
  179. background-color: transparent !important;
  180. }
  181.  
  182.  
  183. .side_bar_inner
  184. {
  185. width: 160px !important;
  186. }
  187.  
  188. .dark-theme-box
  189. {
  190. position: fixed;
  191. white-space: nowrap;
  192. z-index: 200;
  193. height: 42px;
  194. top: 0;
  195. left: 0;
  196. padding: 0 5px 0 10px;
  197. line-height: 42px;
  198. }
  199.  
  200. .dark-theme-box a
  201. {
  202. color: red;
  203. }
  204. `)
  205.  
  206. darkStyle = GM_addStyle(`
  207.  
  208.  
  209.  
  210. .ui_rmenu_item,
  211. .olist_item_name,
  212. .app_widget_list_row,
  213. .flat_button.ui_load_more_btn,
  214. .audio_subscribe_promo__text,
  215. a,
  216. .web_cam_photo,
  217. .ui_rmenu_subitem,
  218. .reply_submit_hint_opts .radiobtn,
  219. .gtop_complex_message .gtop_content .gtop_header,
  220. .deep_active .post_replies_header .post_replies_reorder,
  221. .post_action_btn.on,
  222. .box_controls .flat_button.secondary,
  223. .flat_button.secondary.button_light,
  224. #mv_publish,
  225. .button_gray button, .flat_button.secondary,
  226. .button_blue button,
  227. .button_gray button,
  228. .button_light_gray button,
  229. .ShortVideoStub__title,
  230. .im-page-pinned--media,
  231. .sticker_extra_tt .tt_text .stickers_extra_text>b,
  232. .ui_gallery_wall_cards .wall_card__title_link,
  233. .audio_page__audio_rows .audio_row.audio_has_lyrics .audio_row__title_inner,
  234. .ap_layer__content .audio_row.audio_has_lyrics .audio_row__title_inner,
  235. ._playlist_page_content_block .audio_row.audio_has_lyrics .audio_row__title_inner,
  236. ._audio_section__search .audio_row.audio_has_lyrics .audio_row__title_inner,
  237. .audio_section_global_search__audios_block .audio_row.audio_has_lyrics .audio_row__title_inner,
  238. .deep_active.wall_module .post_replies_header .post_replies_reorder,
  239. .Settings__button,
  240. .MenuList__itemText,
  241. .PlaylistPanel__title,
  242. .PlaylistPanel__itemText,
  243. .VideoCardMenu__itemLabel
  244. {
  245. color: #afc6dc !important;
  246. }
  247.  
  248. body{
  249. --page-block-shadow: 0 1px 0 0 transparent, 0 0 0 1px transparent !important;
  250. }
  251.  
  252.  
  253.  
  254. [dir=ltr] body.new_header_design #side_bar ol{
  255. margin: 0px 0px 6px -9px !important;
  256. padding-left: 3px !important;
  257. }
  258. [dir=ltr] body.new_header_design #ads_left.ads_left_empty+.left_menu_nav_wrap{
  259. margin: 0px 0px 6px -9px !important;
  260. padding: 8px 7px 9px 9px !important;
  261. }
  262.  
  263. [dir] .left_menu_nav_wrap {
  264. padding: 10px 9px 9px 11px !important;
  265. margin: 0px 0px 6px -9px !important;
  266. }
  267.  
  268. .left_settings_inner {
  269. /*width: 20px !important;
  270. height: 21px !important;*/
  271. left: -16px !important;
  272. opacity: 1/* !important*/;
  273. background-size: 161%;
  274. background-color: #353535b3;
  275. background-position-x: 3px;
  276. background-position-y: -57px;
  277. border-radius: 5px;
  278. background-image: url(/images/icons/common.png?6);
  279. filter: initial;
  280. }
  281.  
  282. .ui_rmenu_item:hover,
  283. .ui_rmenu_subitem:hover,
  284. .ui_rmenu_item_sel,
  285. .ui_rmenu_item_sel:hover,
  286. .olist_item_wrap:hover,
  287. .docs_choose_upload_area:hover,
  288. [dir] body.new_header_design .left_count_wrap,
  289. .box_title_wrap.box_grey
  290. {
  291. background-color: #4a76a8 !important;
  292. }
  293.  
  294.  
  295. #top_profile_menu,
  296. .thumbed_link__label,
  297. textarea,
  298. .mv_info,
  299. .media_link__label
  300. .online.mobile:after,
  301. .media_link__label,
  302. .im-mess.im-mess_light,
  303. .nim-dialog:not(.nim-dialog_deleted).nim-dialog_unread.nim-dialog_classic,
  304. div.fc_tab_txt,
  305. #wk_box,
  306. .pv_cont .pv_comments_header,
  307. .Button--mobile:hover,
  308. .ListItem--active,
  309. .EditableLabel:hover .EditableLabel__text,
  310. .ListItem--can-be-hovered.ListItem--selectable:hover,
  311. .result_list ul li.active,
  312. .emoji_tab:hover,
  313. .ui_actions_menu,
  314. .nim-dialog:not(.nim-dialog_deleted):hover,
  315. div.wdd,
  316. .ListItem--active,
  317. .ListItem--border:before,
  318. .wddi_over,
  319. .photos_choose_upload_area:hover,
  320. .web_cam_photo:hover,
  321. .mail_box_cont,
  322. .wddi_no,
  323. .flist_item_wrap:hover,
  324. .tt_default,
  325. .tt_default_right,
  326. .cal_clear,
  327. #mv_publish,
  328. .CatalogBlock__separator,
  329. .ui_search_new.ui_search_dark .ui_search_input_inner,
  330. .Settings__loader,
  331. a.ui_gallery_item.wall_card.wall_card_tiny,
  332. [dir] #top_ecosystem_navigation_menu,
  333. .info_msg
  334. {
  335. background-color: #2f2f2f !important;
  336. box-shadow: 2px 7px 3px rgba(0,0,0,.1);
  337. }
  338.  
  339.  
  340. .deep_active .replies .reply_fakebox,
  341. .ui_tabs.ui_tabs_box,
  342. .prefix_input_wrap,
  343. .audio_row:hover:not(.audio_row__current) .audio_row_content,
  344. .audio_page__shuffle_all .audio_page__shuffle_all_button:hover,
  345. .audio_layer_container .audio_friend:hover,
  346. .ui_search_sugg_list .ui_search_suggestion_selected,
  347. .top_notify_cont .feedback_row:not(.dld):hover,
  348. .feedback_row_clickable:not(.feedback_row_touched):hover,
  349. .audio_row.audio_row__current .audio_row_content,
  350. .page_actions_item:hover:not(.grey_hoverable),
  351. .nim-dialog.nim-dialog_classic.nim-dialog_unread-out .nim-dialog--inner-text,
  352. .fc_tab,
  353. .tabbed_box .summary_tab_sel .summary_tab2,
  354. .feedback_row_wrap.unread:not(.feedback_row_touched),
  355. .tabbed_box .summary_tab a:hover,
  356. .blst_last:hover,
  357. .tabbed_box .summary_tab .summary_tab3:hover,
  358. .photos_container .photos_row,
  359. .ms_items_more,
  360. .sticker_hints_tt,
  361. .box_msg,
  362. .box_msg_gray,
  363. .msg,
  364. .tabbed_box .summary_tab_sel .summary_tab3:hover,
  365. .my_current_info:hover,
  366. .audio_pl_snippet2,
  367. .im_msg_audiomsg .audio-msg-track:not(.audio-msg-player):hover,
  368. .article_ed_layer .article_ed_layer__header,
  369. #admin_tips #gtop_admin_tips.gtop_complex_message,
  370. #page_block_group_admin_tips .group_edit_admin_tips_item:hover,
  371. .group_edit.group_edit_admin_tips .group_edit_admin_tips_item:hover,
  372. .eltt .eltt_fancy_action:hover,
  373. .cal_table .day,
  374. .market_item_content,
  375. .button_gray button,
  376. .flat_button.secondary,
  377. .audio_page_layout .audio_page_separator,
  378. .stats_cont_browse_tile,
  379. .piechart_col_header th,
  380. #stat_group_postsreach_table td,
  381. .group_info_rows_redesign .group_info_row.onboarding_placeholder .line_value.line_edit,
  382. .group_info_rows_redesign .group_info_row.onboarding_placeholder .line_value:hover,
  383. .my_current_info:hover,
  384. .no_current_info:hover,
  385. .mv_live_gifts_arrow_right:before,
  386. .mv_live_gifts_supercomment:hover,
  387. .docs_choose_rows .docs_item:hover,
  388. .docs_choose_upload_area,
  389. a.ts_contact.active, a.ts_search_link.active,
  390. #market_choose_box .market_block_layout,
  391. .tt_w.top_notify_tt,
  392. .idd_popup .idd_header_wrap,
  393. .idd_popup .idd_items_content,
  394. [dir] .post_top_info_caption,
  395. .feed_groups_recomm_friends .ui_gallery_wall_cards .wall_card,
  396. .DonutCatalogPromo,
  397. .photo_upload_separator,
  398. [dir] .VideoCard--playlist .VideoCard__info,
  399. [dir] .VideoTabsSlider .VideoTabs
  400. {
  401. background-color: #2f2f2f !important;
  402. box-shadow: 2px 7px 3px rgba(0,0,0,.1) !important;
  403. }
  404.  
  405. .PostBottomAction
  406. {
  407. border-radius: 8px !important;
  408. }
  409.  
  410. .PostBottomAction__count,
  411. .PostBottomAction__label
  412. {
  413. color: #2f2f2f !important;
  414. }
  415.  
  416. body::-webkit-scrollbar
  417. {
  418. -webkit-appearance: none;
  419. width: 11px;
  420. }
  421.  
  422. body::-webkit-scrollbar-thumb,
  423.  
  424. .ui_scroll_default_theme>.ui_scroll_bar_container>.ui_scroll_bar_outer>.ui_scroll_bar_inner
  425. {
  426. border-radius: 3px;
  427. background-color: #4a76a8;
  428. transition: background-color 200ms linear, width 150ms linear;
  429. }
  430.  
  431.  
  432. a#profile_edit_act:hover,
  433. a#profile_edit_act:focus {
  434. opacity: .88;
  435. text-decoration: none;
  436. }
  437.  
  438. a#profile_edit_act
  439. {
  440. background-color: var(--button_primary_background);
  441. color: var(--button_primary_foreground);
  442. }
  443.  
  444.  
  445. #side_bar ol li .left_row,
  446. body,
  447. .ui_rmenu_subitem,
  448. ._im_to_unread.im-page--dialogs-filter-wrap a,
  449. .top_notify_cont,
  450. .wddi_text,
  451. .module_header .header_top,
  452. .page_actions_item,
  453. input,
  454. textarea,
  455. .tabbed_box .summary_tab_sel .summary_tab3,
  456. .ChatSettingsInfo__title,
  457. .result_list ul li.active,
  458. .im-aside-notice-promo.group-messages-notify-block .im-aside-notice--title,
  459. .im-aside-notice,
  460. .search_filter_main,
  461. .result_list ul li,
  462. .search_filter_shut,
  463. .im-fwd.im-fwd_msg .im-fwd--messages,
  464. .links-list__title,
  465. #mv_pl_tt .mv_tt_playlist,
  466. .wide_column .topics_module .topic_title,
  467. .topics_module .topic_inner_link,
  468. .ui_search_fltr,
  469. .ui_search_fltr_label,
  470. .post_author_data .post_author_data_title,
  471. .im-chat-input--editing-head,
  472. .page_market_item_narrow_price,
  473. .audio_subscribe_promo__title,
  474. .box_title_wrap.box_grey .box_title,
  475. .page_block_sub_header,
  476. ul.listing li span,
  477. .notify_sources_tt_content .line_cell .info,
  478. .article>h1,
  479. .group_info_rows_redesign .group_info_row.time .address_time_status_cur_time,
  480. #admin_tips #gtop_admin_tips.gtop_complex_message .gtop_content .gtop_message,
  481. .wk_address_content .addresses_wrap .address .address_timetable .address_timetable_one_day,
  482. .eltt .eltt_fancy_action,
  483. .medadd_h,
  484. .market_item_title,
  485. .market_item_price,
  486. .stats_cont_browse_tile,
  487. .validation_device_info_name,
  488. .top_profile_mrow,
  489. .microdata_price,
  490. .notify_tt_text,
  491. .im-mess-stack .im-mess-stack--gift,
  492. .ShortVideoStub__text,
  493. body.new_header_design #side_bar .left_label,
  494. .post_top_info_caption,
  495. .audio_row .audio_row__lyrics .audio_row__lyrics_inner,
  496. .audio_pl_snippet2 .audio_pl_snippet__description,
  497. #market_choose_box .market_block_layout .market_row .market_row_price,
  498. .ModalHeader__title,
  499. .SettingsListItem__title
  500. {
  501. color: #cacaca !important;
  502. }
  503.  
  504. .SettingsListItem + .SettingsListItem,
  505. .top_notify_cont .top_notify_header {
  506. border-top-color: #ffffff26 !important;
  507. }
  508.  
  509. [dir] .ModalHeader
  510. {
  511. border-bottom-color: #ffffff26 !important;
  512. }
  513.  
  514. [dir] body.new_header_design .p_head_l0 .top_home_link .top_home_logo,
  515. [dir] body.new_header_design .p_head_l97 .top_home_link .top_home_logo,
  516. [dir] body.new_header_design .p_head_l114 .top_home_link .top_home_logo,
  517. [dir] body.new_header_design .p_head_l1 .top_home_link .top_home_logo,
  518. [dir] .TopHomeLink--logoWithText
  519. {
  520. 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;
  521. }
  522.  
  523. div[contenteditable=true],
  524. .audio_page_layout .audio_search_wrapper,
  525. .im-page_classic.im-page .im-chat-history-resize,
  526. .wall_module .reply_fakebox_wrap
  527. {
  528. background: #ffffff00 !important;
  529. }
  530.  
  531. #side_bar ol li .left_row:hover
  532. {
  533. color: #292929 !important;
  534. background-color: #909090 !important;
  535. box-shadow: 2px 7px 3px rgba(0,0,0,.1);
  536. }
  537.  
  538. .eltt,
  539. .pv_author_block,
  540. .pv_cont .narrow_column,
  541.  
  542. .top_notify_show_all,
  543. .ui_tabs_header,
  544. .box_body,
  545. input,
  546. .pv_cont .narrow_column,
  547.  
  548. .mention_tt_actions,
  549. .group_l_row,
  550. .group_tokens_row,
  551. .groups_edit_event_log_page .groups_edit_event_log_controls,
  552. .ui_search_sugg_list,
  553. .links-list__item:hover,
  554. .online.mobile:after,
  555. .stl_active.over_fast #stl_bg,
  556. .profile_info_header,
  557. .profile_info_edit,
  558. #mv_pl_tt .mv_tt_add_playlist,
  559. .emoji_tt_wrap,
  560. .fc_msgs,
  561. .deep_active .replies .reply_box_inner_wrap.fixed,
  562. #groups_menu_items .groups_edit_menu_items .group_apps_list_row_drag_wrapper,
  563. .audio_pl_snippet2 .audio_shuffle_all_button:hover,
  564. #group_apps_list .group_apps_list_rows.group_apps_list_rows_multi .group_apps_list_row_drag_wrapper,
  565. #top_notify_wrap,
  566. .audio_page_player2.audio_page_player_fixed,
  567. .video_upload_separator_text,
  568. .cal_table .next_month_day,
  569. .cal_table .prev_month_day,
  570. .flat_button.secondary:hover,
  571. .ui_search_new.ui_search_field_empty .ui_search_button_search,
  572. .article_ed_layer,
  573. #stats_cont.stats_cont_browse,
  574. .paginated_table_header th.paginated_table_cell,
  575. .mv_live_gifts_item:hover,
  576. .mv_live_gifts_supercomment:hover,
  577. .mv_live_gifts_arrow_left:before,
  578. .mv_live_gifts_arrow_right:hover:before,
  579. .ts_cont_wrap,
  580. .search_filters_minimized_text,
  581. .idd_popup .idd_item.idd_hl,
  582. [dir] body.new_header_design .top_nav_link.active,
  583. [dir] .pv_cont .pv_reply_form_wrap,
  584. [dir] .ModalHeader,
  585. .box_controls,
  586. [dir] .audio_layer_container .ui_tabs
  587. {
  588. background-color: #272727 !important;
  589. }
  590.  
  591. .wall_module .reply_form {
  592. background-color: #272727 !important;
  593. border-radius: 6px !important;
  594. }
  595.  
  596. [dir] .wall_module .reply_box, [dir] .wall_module .reply_fakebox_wrap
  597. {
  598. background-color: transparent !important;
  599. }
  600.  
  601. [dir] .deep_active .replies .replies_wrap_deep .reply_media_preview,
  602. [dir] .deep_active .wl_replies_block_wrap .replies_wrap_deep .reply_media_preview,
  603. [dir] .deep_active.wall_module .replies .replies_wrap_deep .reply_media_preview,
  604. [dir] .deep_active.wall_module .wl_replies_block_wrap .replies_wrap_deep .reply_media_preview,
  605. [dir] #top_ecosystem_navigation_menu
  606. {
  607. border-color: transparent !important;
  608. }
  609.  
  610.  
  611. .wall_module .reply_box
  612. {
  613. /*background-color: transparent !important;*/
  614. }
  615.  
  616. .page_block,
  617. .ui_search,
  618. .im-page--toolsw,
  619. .im-chat-input,
  620. .im-page .im-page--dialogs-footer.ui_grey_block,
  621. .tt_default,
  622. .wddi,
  623. .im-chat-input .im-chat-input--txt-wrap,
  624. .im-page--chat-header,
  625. .wpost_post,
  626. .submit_post,
  627. .im-mess.im-mess_unread+.im-mess:before,
  628. .im-page_classic.im-page .im-page--dcontent,
  629. .im-mess.im-mess_selected+.im-mess:before,
  630. .page_block_header,
  631. .settings_block_footer,
  632. .page_actions_wrap,
  633. .im-page_classic.im-page .im-page--chat-body-wrap-inner,
  634. .im-page .im-page--mess-search,
  635. .ChatSettings__content,
  636. .gedit_block_footer,
  637. .selector_container,
  638. .result_list ul,
  639. .List,
  640. .im-dropbox,
  641. .im-create .im-create--tabs,
  642. .im-create,
  643. .emoji_tabs_l_s,
  644. .emoji_tabs_r_s,
  645. .im-aside-notice,
  646. .emoji_tab_sel,
  647. .emoji_tab_sel:hover,
  648. .emoji_cat_title,
  649. .im-page.im-page_classic.im-page_group .im-group-online .im-group-online--inner,
  650. .im-page.im-page_classic.im-page_group .im-group-online,
  651. .emoji_tabs,
  652. .Button--mobile,
  653. .ChatSettingsMembersWidget,
  654. .ui_grey_block,
  655. .ChatSettingsInfo,
  656. .ui_search_fltr,
  657. .emoji_sticker_item:hover,
  658. .photos_choose_upload_area,
  659. .web_cam_photo,
  660. .pv_white_bg,
  661. .im-audio-message-input,
  662. .wk_address_content .addresses_header,
  663. [dir] .ShortVideoPost,
  664. [dir] .ShortVideoPage__container--empty,
  665. [dir] .im-page .im-page--dialogs-footer,
  666. [dir] .VideoHeader__title,
  667. .MessageForward__content
  668. {
  669. background-color: #272727d4 !important;
  670. }
  671.  
  672. // {
  673. // background-color: #272727d4 !important;
  674. // 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;
  675. // }
  676.  
  677. .article_ed_layer__wrap,
  678. .fakeinput,
  679. input.big_text,
  680. input.dark,
  681. input.search,
  682. /*input.text,*/
  683. textarea
  684. {
  685. background-color: #272727 !important;
  686. }
  687.  
  688.  
  689. .im-page .im-page--center-empty
  690. {
  691. background: url('https://psv4.userapi.com/c856228/u51863636/docs/d14/41e6a3400829/empty_icon.png') no-repeat top !important;
  692. }
  693.  
  694.  
  695. .nim-dialog .nim-dialog--name .nim-dialog--name-w,
  696. .im-page .im-search-results-head,
  697. .im-popular--name,
  698. .ui_actions_menu_item,
  699. .im-page--title-main-inner,
  700. .feedback_header b,
  701. .ui_tabs .ui_tab_sel,
  702. .page_block_header,
  703. .settings_block_footer,
  704. h2,
  705. #groups_menu_promo .apps_group_catalog_promo_header,
  706. input.dark,
  707. .nim-dialog.nim-dialog_typing .nim-dialog--typing,
  708. .im-page .im-page--mess-search,
  709. .mail_box_group_first_message,
  710. .page_name, h1.page_name,
  711. .audio_pl_snippet2 .audio_shuffle_all_button,
  712. .audio_pl_item2 .audio_pl__subtitle>a,
  713. .wk_address_content .addresses_wrap .address .address_timetable .address_timetable_one_day.on,
  714. .wk_address_content .addresses_wrap .address .address_time_status .address_time_status_cur_time,
  715. .medadd_poll_answer_add,
  716. [dir] .VideoHeader__title
  717. {
  718. color: #ffff !important;
  719. }
  720.  
  721. .nim-dialog .nim-dialog--date,
  722. div[contenteditable=true],
  723. .nim-dialog .nim-dialog--who,
  724. .ms_items_more._more_items a,
  725. .im-replied--text,
  726. .im-page .im-page--history-new-bar>span,
  727. .audio_page_player2 .audio_page_player_title_song,
  728. .ui_tab_default .ui_tab_plain,
  729. .mv_title,
  730. .mv_comments_summary,
  731. .emoji_cat_title,
  732. .mv_recom_block_title,
  733. #stat_group_postsreach_table td,
  734. .idd_popup .idd_item,
  735. .idd_popup .idd_header,
  736.  
  737. #group_section_menu .module_body .ui_gallery .ui_gallery_item .groups_menu_item .groups_menu_item_title
  738. {
  739. color: #e6e6e6 !important;
  740. }
  741.  
  742. .nim-dialog .nim-dialog--preview,
  743. .top_notify_header,
  744. .top_notify_cont .feedback_header,
  745. .feedback_header,
  746. .Tabs__item--active>*,
  747. .PlaceholderSmall__title,
  748. .im-page-pinned--date,
  749. .audio_page_layout .audio_item__title
  750. {
  751. color: #949494 !important;
  752. }
  753.  
  754. .ui_actions_menu_item:hover,
  755. .media_selector .ms_items_more .ms_item:hover,
  756. .idd_popup .idd_item.idd_hover, .idd_popup .idd_item.idd_hover_sublist_parent,
  757. .profile_more_info_link:hover
  758. {
  759. background-color: #a3a6a9 !important;
  760. color: #000000 !important;
  761. }
  762.  
  763. .nim-dialog:not(.nim-dialog_deleted).nim-dialog_selected,
  764. .nim-dialog:not(.nim-dialog_deleted).nim-dialog_hovered
  765. {
  766. background-color: #3d5877 !important;
  767. }
  768.  
  769. .page_counter .count,
  770. .subheader, h4.subheader,
  771. .tt_w,
  772. .Entity__title,
  773. .PlaceholderSmall__text,
  774. .sticker_extra_tt .tt_text,
  775. .subscribe_post_tt .tt_text,
  776. .audio_page__shuffle_all .audio_page__shuffle_all_button
  777. {
  778. color: #eceff3 !important;
  779. }
  780.  
  781. .wall_post_cont._wall_post_cont
  782. {
  783. background-color: transparent !important;
  784. }
  785.  
  786. .im-mess.im-mess_unread:not(.im-mess_light),
  787. .im-mess.im-mess_selected:last-child:before,
  788. .im-mess.im-mess_unread:last-child:before,
  789. .page_actions_header,
  790. .im-mess.im-mess_selected:not(.im-mess_is_editing)
  791. {
  792. background-color: #3d5877ab !important;
  793. }
  794.  
  795.  
  796. #side_bar .more_div,
  797. .nim-dialog .nim-dialog--content,
  798. .im-chat-input,
  799. .ui_rmenu_sep,
  800.  
  801. .wall_module .replies_list,
  802. #ads_left.ads_left_empty+.left_menu_nav_wrap,
  803. .pv_comments,
  804. .deep_active .replies .replies_wrap_deep,
  805. .deep_active .post_replies_header,
  806. .wddi,
  807. .wall_module .reply_box,
  808. .submit_post,
  809. .mention_tt_actions,
  810. .im-page .im-page--dialogs-footer,
  811. .wide_column .topics_module .topic_row,
  812. .flat_button.ui_load_more_btn,
  813. .gedit_block_footer,
  814. .top_profile_sep,
  815. .nim-dialog:not(.nim-dialog_deleted):hover+.nim-dialog,
  816. .nim-dialog:not(.nim-dialog_deleted).nim-dialog:hover,
  817. .page_actions_separator,
  818. .ui_actions_menu_sep,
  819. .audio_subscribe_promo,
  820. .ui_search_sugg_list,
  821. .top_notify_show_all,
  822. .feedback_row,
  823. .wall_module .reply~.reply .reply_wrap,
  824. .page_actions_inner,
  825. div.fc_tab_txt,
  826. .olist_item_wrap:hover,
  827. .profile_info_block,
  828. .ui_grey_block,
  829. .nim-dialog:not(.nim-dialog_deleted).nim-dialog_selected+.nim-dialog,
  830. .im-page .im-page--mess-search,
  831. .search_sep,
  832. .search_row,
  833. .bp_post,
  834. .friends_user_row,
  835. .feed_row~.feed_row .feedback_row_clickable:not(.feedback_row_touched):hover,
  836. .im-audio-message-input,
  837. .docs_item,
  838. .feed_groups_recomm__all,
  839. .counts_module
  840. {
  841. border-top-color: #464748 !important;
  842. }
  843.  
  844. [dir] .top_profile_mrow:hover,
  845. [dir] .top_profile_vkconnect_row:hover
  846. {
  847. background-color: #464748 !important;
  848. }
  849.  
  850. .deep_active .replies .reply_field_wrap .reply_field,
  851. .deep_active .replies .reply_fakebox,
  852. .wdd_list,
  853. div.wdd,
  854. .wpost_post,
  855. .ui_search_new .ui_search_input_inner,
  856. .module,
  857. #top_profile_menu,
  858. .ms_items_more,
  859. .ui_actions_menu,
  860. .eltt,
  861.  
  862. .ui_search_sugg_list,
  863. #top_notify_wrap,
  864. .page_actions_wrap,
  865. .fc_msgs,
  866. .fc_tab,
  867. div[contenteditable=true],
  868. .tt_default,
  869. .ui_search_new .ui_search_button_search,
  870. .audio_layer_container .audio_page__footer,
  871. .audio_layer_container .audio_page_player_wrap,
  872. #mv_publish,
  873. .tt_w.top_notify_tt,
  874. .CatalogSection__leftColumn,
  875. .im-chat-input .im-chat-input--txt-wrap
  876. {
  877. border-color:#2f2f2f !important;
  878. }
  879.  
  880.  
  881.  
  882. /*.page_block
  883. {
  884. box-shadow: 0 0 0 0 #d7d8db, 0 0 0 0px #e3e4e8 !important;
  885. }*/
  886.  
  887. [dir] .ShortVideoPage .page_block_h2,
  888. [dir] .ShortVideoPage__container--empty
  889. {
  890. box-shadow: 0 1px 0 0 #d3d9de00, 0 0 0 1px #e7e8ec00 !important;
  891. }
  892.  
  893.  
  894. .ui_search,
  895. .im-page--toolsw,
  896. input.BlockSearchInput,
  897. .ui_tabs,
  898. .wide_column .page_top,
  899. .group_l_row,
  900. .group_edit_row_sep,
  901. .page_block_header,
  902. .group_tokens_row,
  903. .group_list_row,
  904. .pv_author_block,
  905. .mv_actions_block,
  906. .im-page .im-page--mess-search,
  907. .olist_item_wrap,
  908. .Tabs,
  909. .im-page_classic.im-page .im-page--chat-input,
  910. .feed_new_posts,
  911. .feedback_row_clickable:not(.feedback_row_touched):hover,
  912. .audio_layer_container .audio_page_player_wrap,
  913. .bt_header,
  914. .gifts_box_rows .post,
  915. .blst_row,
  916. .paginated_table_header th.paginated_table_cell,
  917. .mv_live_gifts_block,
  918. .docs_choose_rows .docs_item,
  919. .tt_w.top_notify_tt.tt_up:before,
  920. .tt_w.top_notify_tt.tt_up:after,
  921. [dir] .VideoHeader__title,
  922. .mv_comments_summary
  923. {
  924. border-bottom-color: #2f2f2f !important;
  925. }
  926.  
  927.  
  928. .mv_info_narrow_column,
  929. .mv_recom_block_title,
  930. .im-page_classic.im-page .im-page--header,
  931. .mv_live_gifts_supercomment,
  932. .wall_module .copy_quote
  933. {
  934. border-left-color: #272727 !important;
  935. }
  936.  
  937. .audio_page_layout .has_friends_block .audio_page__rows_wrap,
  938. .im-page_classic.im-page .im-page--header
  939. {
  940. border-right-color:#272727 !important;
  941. }
  942.  
  943. .chat_onl_inner
  944. { /* убираем «быстрые диалоги» */
  945. display:none !important;
  946. }
  947.  
  948. .page_photos_module
  949. {
  950. padding: 15px 15px 15px !important;
  951. }
  952.  
  953. #page_header_cont .back,
  954. .page_avatar_img,
  955. .stl_active.over_fast #stl_bg,
  956. #profile_message_send,
  957. .stories_feed_preview_item,
  958. .post_img,
  959. .im-page--header-more .ui_actions_menu,
  960. .nim-dialog:not(.nim-dialog_deleted).nim-dialog:hover,
  961. .im-chat-input .ms_items_more,
  962.  
  963. .emoji_tt_wrap,
  964. .fc_tab,
  965. .info_msg,
  966. .im-aside-notice,
  967. .List--border,
  968. .page_block,
  969. .online:after,
  970. .audio_page_layout .audio_block:before,
  971. .page_block._audio_page_content_block:before,
  972. .im-page.im-page_classic.im-page_group .im-group-online .im-group-online--inner
  973. {
  974. box-shadow: 7px 7px 3px 3px rgba(0,0,0,.1) !important;
  975. }
  976.  
  977. .nim-dialog.nim-dialog_muted .nim-dialog--mute, .nim-dialog.nim-dialog_unread.nim-dialog_prep-injected.nim-dialog_muted .nim-dialog--mute {
  978.  
  979. color: rgb(255 255 255 / 24%) !important;
  980. }
  981.  
  982.  
  983. [dir] .ShortVideoPost {
  984. box-shadow: 0 1px 0 0 #d3d9de00, 0 0 0 1px #e7e8ec00 !important;
  985.  
  986. }
  987.  
  988. .online:after {
  989. border: 0px solid #ffffff !important;
  990. box-shadow: 1px 3px 2px 2px rgba(0,0,0,.1);
  991. }
  992.  
  993. .module_body {
  994. padding: 12px 14px 15px !important;
  995. }
  996.  
  997. .im-page_classic.im-page .im-page--dialogs-search,
  998. .im-page_classic .im-page--chat-header-in,
  999. .im-chat-input.im-chat-input_classic,
  1000. .nim-dialog.nim-dialog_unread .nim-dialog--unread,
  1001. .ChatSettingsInfo,
  1002. .ChatSettingsMembersWidget,
  1003. .List--border,
  1004. .Button--mobile,
  1005. #admin_tips #gtop_admin_tips.gtop_complex_message,
  1006. .CatalogBlock--divided:before, .CatalogSection:before,
  1007. .im-page_classic.im-page .im-page--chat-body-abs
  1008. {
  1009. box-shadow: 2px 7px 3px rgba(0,0,0,.1) !important;
  1010. }
  1011.  
  1012. .im-page_classic .im-page--chat-header,
  1013. .im-page_classic.im-page .im-page--chat-input,
  1014. .nim-dialog:not(.nim-dialog_deleted).nim-dialog.nim-dialog_classic.nim-dialog_unread,
  1015. .nim-dialog:not(.nim-dialog_deleted).nim-dialog_unread.nim-dialog_classic+.nim-dialog,
  1016. .ui_tabs.ui_tabs_box,
  1017. .ListItem--active,
  1018. .ListItem--can-be-hovered.ListItem--selectable:hover,
  1019. .like_cont,
  1020. .emoji_tt_wrap,
  1021. .photos_container .photos_row,
  1022. .info_msg,
  1023. .ListItem--active,
  1024. .group_friends_image,
  1025. .ui_search_fltr,
  1026. .emoji_tt_wrap.tt_down:after,
  1027. .emoji_tt_wrap.tt_down:before,
  1028. #mv_pl_tt .mv_tt_private_only+.mv_tt_playlists,
  1029. #mv_pl_tt .mv_tt_add_playlist,
  1030. .like_share_ava.wdd_imgs .wdd_img_full,
  1031. .like_share_ava.wdd_imgs .wdd_img_half,
  1032. .like_share_ava.wdd_imgs .wdd_img_tiny,
  1033. .sticker_hints_tt,
  1034. .Avatar--online:after,
  1035. .box_controls,
  1036. .online:after,
  1037. .sticker_hints_arrow,
  1038. .cal_table>tbody,
  1039. .market_item_footer_wrap,
  1040. .wk_address_content .addresses_header,
  1041. .app_widget_list_row,
  1042. .stats_browse_filter,
  1043. .idd_popup,
  1044. #mv_publish,
  1045. .im-page_classic.im-page .im-page--chat-body-wrap-inner,
  1046. .im-page_classic.im-page .im-page--header,
  1047. [dir] body.new_header_design .ts_cont_wrap
  1048. {
  1049. border-top-color: #ffffff00 !important;
  1050. border-color: #ffffff00 !important;
  1051. border-bottom-color: #ffffff00 !important;
  1052. border-left-color: #ffffff00 !important;
  1053. border-right-color: #ffffff00 !important;
  1054. }
  1055.  
  1056.  
  1057.  
  1058. .im-page_classic.im-page .im-page--chat-input
  1059. {
  1060. border-bottom: solid 0px #ffffff00 !important;
  1061. }
  1062.  
  1063. [dir] .search_focused .highlight {
  1064. background-color: #3384e269;
  1065. }
  1066.  
  1067. [dir] .feedback_row_wrap {
  1068. border-top-color: rgba(220, 225, 230, 0.19) !important;
  1069. }
  1070.  
  1071. [dir] .selector_container table.selector_table,
  1072. [dir] .BaseModal__content {
  1073. background-color: #2f2f2f !important;
  1074. border-color: #2f2f2f !important;
  1075. }
  1076. .im-page_classic .im-page--chat-header
  1077. {
  1078. top: 42px !important;;
  1079. }
  1080.  
  1081. /*.page_actions_cont.narrow .page_actions_header,*/
  1082. .page_actions_cont.narrow .page_extra_actions_btn
  1083. {
  1084. background-image: url(/images/icons/profile_dots.png?1) !important;
  1085. background-color: #2f2f2f !important;
  1086. }
  1087.  
  1088. .im-page--back-btn:hover
  1089. {
  1090. 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;
  1091. }
  1092.  
  1093.  
  1094. .olist_checkbox,
  1095. .wall_post_source_icon
  1096. {
  1097. filter: invert(83%);
  1098. }
  1099.  
  1100. .bp_post.bp_selected.bp_animated
  1101. {
  1102. background-color: transparent !important;
  1103. border-color: transparent !important;
  1104. }
  1105.  
  1106. .bp_post.bp_selected
  1107. {
  1108. background-color: #4872a3 !important;
  1109. transition: background-color 5000ms linear, border-color 5000ms linear !important;
  1110. }
  1111.  
  1112. .notify_sources_tt_content .content:not(:hover) .line_cell.selected,
  1113. .notify_sources_tt_content .line_cell:hover
  1114. {
  1115. background-color: #4872a3 !important;
  1116. }
  1117.  
  1118. .emoji_sprite,
  1119. .ui_scroll_default_theme.ui_scroll_emoji_theme>.ui_scroll_overflow>.ui_scroll_shadow_top,
  1120. .ui_scroll_default_theme.ui_scroll_emoji_theme>.ui_scroll_overflow>.ui_scroll_shadow_bottom
  1121. {
  1122. filter: invert(90%) !important;
  1123. }
  1124.  
  1125.  
  1126. .sticker_hints_arrow
  1127. {
  1128. background: #272727 url(/images/icons/stickers_hints_arrow.png) no-repeat 50% 50% !important;
  1129. }
  1130.  
  1131. .wddi,
  1132. .wddi_over,
  1133. .post_actions_btns,
  1134. .submit_post
  1135. {
  1136. border-top-color: #2f2f2f !important;
  1137. }
  1138.  
  1139.  
  1140. .nim-peer .nim-peer--photo .im_grid>img,
  1141. .nim-peer .nim-peer--photo>img,
  1142. .nim-peer .nim-peer--photo-w,
  1143. .post_img,
  1144. .wall_module .copy_post_img,
  1145. .module_body .people_cell_img,
  1146. .page_list_module .thumb,
  1147. .wall_module .reply_img,
  1148. .post_field_user_image,
  1149. .top_profile_img,
  1150. .ow_ava.ow_ava_comm,
  1151. .friends_photo_img,
  1152. .right_list_img,
  1153. .group_row_photo,
  1154. .group_row_img,
  1155. .page_square_photo,
  1156. .page_avatar_img,
  1157. .notify_tt_img,
  1158. .notify_tt_thumb,
  1159. /*a.page_post_thumb_wrap.image_cover.page_post_thumb_last_column.page_post_thumb_last_row,*/
  1160. a.page_post_thumb_wrap.image_cover,
  1161. input.text.ts_input,
  1162. .video_box_wrap
  1163. {
  1164. border-radius: 10px !important;
  1165. }
  1166.  
  1167.  
  1168. [dir] .im-page-pinned,
  1169. [dir] .im-page--chat-header-in,
  1170. [dir] body.new_header_design #page_header_cont
  1171. {
  1172. border-bottom-color: transparent !important;
  1173. }
  1174.  
  1175. [dir] .im-page-pinned,
  1176. [dir] body.new_header_design #page_header_cont,
  1177. [dir] .video_showcase .page_header_wrap,
  1178. [dir] .VideoLayout__asideFooter,
  1179. [dir] .VideoLayout__aside
  1180. {
  1181. background-color: #383838e6 !important;
  1182. }
  1183.  
  1184.  
  1185. .left_menu_nav_wrap,
  1186. #side_bar ol,
  1187. .CatalogBlock--divided,
  1188. /*[dir] .im-page-pinned,*/
  1189. .CatalogSection
  1190. {
  1191. box-shadow: 7px 7px 3px 3px rgba(0,0,0,.1) !important;
  1192. padding: 9px 9px !important;
  1193. padding-left: 14px !important;
  1194. background-color: #272727de !important;
  1195. border-radius: 5px !important;
  1196.  
  1197. }
  1198.  
  1199. /*div#layer_wrap,*/
  1200. /*div#box_layer_wrap*/
  1201. #layer_bg,
  1202. #box_layer_bg
  1203. {
  1204. /*backdrop-filter: blur(3px);*/
  1205. background: #00000038 !important;
  1206. opacity: 1 !important;
  1207. }
  1208.  
  1209. .tt_default,
  1210. .tt_default_right
  1211. {
  1212. border: 1px solid #6b6969 !important;
  1213. }
  1214.  
  1215. .im-page .im-page--history-new-bar
  1216. {
  1217. background: #ffffff00 !important;
  1218. }
  1219.  
  1220. .im-page .im-page--history-new-bar>span {
  1221. background: #2f2f2f !important;
  1222. border-radius: 17px !important;
  1223. box-shadow: 2px 7px 3px rgba(0,0,0,.1) !important;
  1224. }
  1225.  
  1226. .im-page .im-page--history-new-bar:after, .im-page .im-page--history-new-bar:before {
  1227. display: block;
  1228. content: '';
  1229. height: 1px;
  1230. width: 50%;
  1231. background: #e4e6e980 !important;
  1232. position: absolute;
  1233. top: 50%;
  1234. margin-left: 43px;
  1235. }
  1236.  
  1237. .article_ed_layer .article_ed_layer__close
  1238. {
  1239. filter: invert(1);
  1240. }
  1241.  
  1242. .mv_live_gifts_arrow_left:hover:before, .mv_live_gifts_arrow_right:hover:before {
  1243. background-image: linear-gradient(0deg, #fff, #f0f2f5, #fff) !important;
  1244. }
  1245.  
  1246. #ads_left,
  1247. ._ads_block_data_w,
  1248. .page_block .apps_feedRightAppsBlock .apps_feedRightAppsBlock_single_app,
  1249. .fc_tab_wrap,
  1250. .page_block.apps_feedRightAppsBlock.apps_feedRightAppsBlock_single_app.apps_feedRightAppsBlock_single_app--promo
  1251. {
  1252. display: none !important;
  1253. }
  1254.  
  1255. .tt_w.top_notify_tt.tt_up
  1256. {
  1257. box-shadow: 6px 7px 3px rgba(0, 0, 0, 0.55);
  1258. }
  1259.  
  1260. [dir] .like_cont {
  1261. box-shadow: inset 0 1px #e7e8ec00 !important;
  1262. }
  1263.  
  1264. [dir] .deep_active .replies .replies_wrap_deep,
  1265. [dir] .deep_active .wl_replies_block_wrap .replies_wrap_deep,
  1266. [dir] .deep_active.wall_module .replies .replies_wrap_deep,
  1267. [dir] .deep_active.wall_module .wl_replies_block_wrap .replies_wrap_deep
  1268. {
  1269. border-top: 1px solid #dce1e64f !important;
  1270. }
  1271.  
  1272. [dir] .nim-dialog.nim-dialog_pinned+.nim-dialog:not(.nim-dialog_pinned)::before
  1273. {
  1274. background: #ffffff5e !important;
  1275. }
  1276.  
  1277. [dir=ltr] .audio_page_layout .audio_page_block__playlists_items {
  1278. margin-right: -15px !important;
  1279. }
  1280.  
  1281. .im-mess.im-mess_gift,
  1282. li.im-mess.im_out._im_mess.im-mess_gift.im-mess_out
  1283. {
  1284. background: #69696966 !important;
  1285. }
  1286.  
  1287. .audio_page_layout .audio_friends_list,
  1288. .PlaceholderSmall__title
  1289. {
  1290. background-color: transparent !important;
  1291. }
  1292.  
  1293. [dir] .im_msg_media_wall .post_top_info_caption
  1294. {
  1295. margin: 0 6px 0px 6px !important;
  1296. padding: 3px 6px 3px 6px !important;
  1297. border-radius: 5px;
  1298. }
  1299.  
  1300. [dir] .nim-dialog.nim-dialog_unread .nim-dialog--unread, [dir] .nim-dialog.nim-dialog_unread.nim-dialog_prep-injected .nim-dialog--unread, [dir] .nim-dialog.nim-dialog_failed .nim-dialog--unread,
  1301.  
  1302. [dir] body.new_header_design .left_count_wrap {
  1303. border-radius: 12px 12px 12px 0px !important;
  1304. background-color: #5181b8 !important;
  1305. }
  1306.  
  1307. [dir] body.new_header_design .top_audio_player:hover {
  1308. background-color: var(--steel_gray_200_alpha12) !important;
  1309. }
  1310.  
  1311.  
  1312.  
  1313. `)
  1314.  
  1315. function blur_add() {
  1316. blur = GM_addStyle(`
  1317. .left_menu_nav_wrap,
  1318. #side_bar ol,
  1319. .ui_scroll_inner.tt_noappend,
  1320. #layer_bg,
  1321. #alert,
  1322. #box_layer_bg
  1323. {
  1324. backdrop-filter: blur(3px);
  1325.  
  1326. }
  1327. `)
  1328. }
  1329. //buer();
  1330. function blur_remote() {
  1331. if (blur && blur.id) {
  1332. blur.remove()
  1333. }
  1334. }
  1335.  
  1336. darkStyleBacground = GM_addStyle(`
  1337. body
  1338. {
  1339. background-image: url(${GM_getValue('background')});
  1340. background-color: #2f2f2f;
  1341. background-attachment: fixed;
  1342. background-size: auto;
  1343. }
  1344. `)
  1345.  
  1346. combo_hide(GM_getValue('combo_hide'))
  1347. }
  1348.  
  1349. //#endregion
  1350.  
  1351. function bc_transparent(bc, repeat) {
  1352. if (bc && GM_getValue('enable')) {
  1353. //var bc = localStorage.getItem('background');
  1354. $('#bg2').css({ 'background-image': 'url(' + bc + ')' })
  1355. setTimeout(() => $('#bg2').css({ opacity: '1' }), 1000)
  1356. setTimeout(() => $('body').css({ 'background-image': 'url(' + bc + ')' }), 5000)
  1357. setTimeout(() => $('#bg2').css({ opacity: '0' }), 10000)
  1358. $('#Link_oboi').attr('href', bc)
  1359.  
  1360. if (document.hidden == false) {
  1361. get_albom()
  1362. }
  1363.  
  1364. if (bc_albom_repit && GM_getValue('bc_albom_enable')) {
  1365. if (bc_albom_repit > 0 && repeat) {
  1366. setTimeout(bc_transparent, 60000 * bc_albom_repit, GM_getValue('background'), true)
  1367. }
  1368. }
  1369. }
  1370. }
  1371.  
  1372. $(document).ready(function () {
  1373. $('body').prepend('<div id="bg2" style="position: fixed;width: 100%;height: 100%; transition: opacity 5s; opacity: 0; z-index: -1; background-size: auto;"></div>')
  1374.  
  1375. if (GM_getValue('enable') == true) $('body').css({ 'background-image': 'url("' + GM_getValue('background') + '")', 'background-color': '#2f2f2f', 'background-size': 'auto', 'background-attachment': 'fixed' })
  1376. favicon_name_edit()
  1377.  
  1378. Link_oboi()
  1379. })
  1380.  
  1381. function combo_hide(check) {
  1382. if (check) {
  1383. GM_setValue('combo_hide', check)
  1384. }
  1385.  
  1386. if (check == true) {
  1387. combo_hide_style = GM_addStyle(`
  1388. li#l_combo
  1389. {
  1390. display: none !important;
  1391. }
  1392. `)
  1393. } else {
  1394. if (combo_hide_style && combo_hide_style.id) {
  1395. combo_hide_style.remove()
  1396. }
  1397. }
  1398. //console.log("hide: " + check)
  1399. //console.log("combo_hide: " + GM_getValue('combo_hide'))
  1400. }
  1401.  
  1402. function w123() {
  1403. let bg = document.querySelector('body')
  1404. window.addEventListener('mousemove', function (e) {
  1405. let x = e.clientX / window.innerWidth
  1406. let y = e.clientY / window.innerHeight
  1407. bg.style.backgroundPositionX = x * 10 + 'px'
  1408. bg.style.backgroundPositionY = '-' + y * 10 + 'px'
  1409. })
  1410. }
  1411.  
  1412. function removeStyle() {
  1413. if (darkStyle && darkStyle.id) {
  1414. darkStyle.remove()
  1415. }
  1416.  
  1417. if (darkStyleBack && darkStyleBack.id) {
  1418. darkStyleBack.remove()
  1419. }
  1420.  
  1421. if (blur && blur.id) {
  1422. blur.remove()
  1423. }
  1424.  
  1425. if (combo_hide_style && combo_hide_style.id) {
  1426. combo_hide_style.remove()
  1427. }
  1428. }
  1429.  
  1430. //#region переименование группы и сообщения
  1431. function rename() {
  1432. $('#l_gr > a > span.left_label.inl_bl').text(GM_getValue('group'))
  1433. $('#l_msg > a > span.left_label.inl_bl').text(GM_getValue('message_name'))
  1434. }
  1435.  
  1436. document.querySelector('title').addEventListener('DOMSubtreeModified', favicon_name_edit)
  1437.  
  1438. function favicon_name_edit() {
  1439. //console.log("ok")
  1440. if (document.querySelector('title').innerHTML == 'Мессенджер') {
  1441. document.querySelector('title').innerHTML = GM_getValue('message_name')
  1442. }
  1443.  
  1444. if (document.querySelector('title').innerHTML.indexOf('Сообщества') != -1) {
  1445. //document.querySelector("title").innerHTML = GM_getValue('group')
  1446. document.querySelector('title').innerHTML = document.querySelector('title').innerHTML.replace('Сообщества', GM_getValue('group'))
  1447. }
  1448. }
  1449.  
  1450. $(document).ready(function () {
  1451. rename()
  1452. })
  1453. //#endregion
  1454.  
  1455. $(document).ready(function () {
  1456. let names = JSON.parse(GM_getValue('names')).map(v => v.toLowerCase())
  1457. let userName = $('.top_profile_name').text()
  1458.  
  1459. if (names.indexOf(userName.toLowerCase()) > -1) {
  1460. if (darkStyle && darkStyle.id) {
  1461. $(`#${darkStyle.id}`).remove()
  1462. }
  1463. }
  1464.  
  1465. $('#side_bar_inner ol')
  1466. .append($('<div>', { class: 'more_div' }))
  1467. .append(
  1468. $('<li>', { id: 'l_bt' }).append(
  1469. $('<a>', { class: 'left_row' })
  1470. .on('click', () => {
  1471. window.open('https://greasyfork.org/ru/scripts/392169-dark-vk-theme')
  1472. })
  1473. .append(
  1474. $('<span>', {
  1475. class: 'left_fixer1',
  1476. html: [$('<span>', { class: 'left_count_wrap fl_r left_void' }).append($('<span>', { class: 'inl_bl left_count_sign' })), $('<span>', { class: 'left_icon settings' }), $('<span>', { class: 'left_label settings', text: `Версия: ${GM_info.script.version}` })]
  1477. })
  1478. )
  1479. )
  1480. )
  1481.  
  1482. $('#side_bar_inner ol').append(
  1483. $('<li>', { id: 'l_bt' }).append(
  1484. $('<a>', { class: 'left_row' })
  1485. .on('click', () => {
  1486. window.open('https://vk.com/dygdyg')
  1487. })
  1488. .append(
  1489. $('<span>', {
  1490. class: 'left_fixer1',
  1491. html: [$('<span>', { class: 'left_count_wrap fl_r left_void' }).append($('<span>', { class: 'inl_bl left_count_sign' })), $('<span>', { class: 'left_icon settings' }), $('<span>', { class: 'left_label settings', text: `Автор: DygDyg` })]
  1492. })
  1493. )
  1494. )
  1495. )
  1496. $('#side_bar_inner ol').append(
  1497. $('<li>', { id: 'l_bt' }).append(
  1498. $('<a>', { class: 'left_row' })
  1499. .on('click', () => {
  1500. window.open('https://vk.com/topic-109462867_43703182')
  1501. })
  1502. .append(
  1503. $('<span>', {
  1504. class: 'left_fixer1',
  1505. html: [$('<span>', { class: 'left_count_wrap fl_r left_void' }).append($('<span>', { class: 'inl_bl left_count_sign' })), $('<span>', { class: 'left_icon settings' }), $('<span>', { class: 'left_label settings', text: `Нашли баг?` })]
  1506. })
  1507. )
  1508. )
  1509. )
  1510.  
  1511. $('#side_bar_inner ol').append(
  1512. $('<li>', { id: 'l_bt' }).append(
  1513. $('<a>', { class: 'left_row' })
  1514. .on('click', Start_Settings_Menu)
  1515. .append(
  1516. $('<span>', {
  1517. class: 'left_fixer1',
  1518. html: [$('<span>', { class: 'left_count_wrap fl_r left_void' }).append($('<span>', { class: 'inl_bl left_count_sign' })), $('<span>', { class: 'left_icon settings' }), $('<span>', { class: 'left_label settings', text: `Настройки` })]
  1519. })
  1520. )
  1521. )
  1522. )
  1523.  
  1524. GM_addStyle(`
  1525. span.left_fixer1 span.left_icon.settings
  1526. {
  1527. /*margin-top: 5px !important;*/
  1528. margin: 5px 8px 0px 0px;
  1529. background-color: #4a76a8;
  1530. width: 18px;
  1531. height: 18px;
  1532. -webkit-mask: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgdmlld0JveD0iMCAwIDQ5MC4xIDQ5MC4xIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0OTAuMSA0OTAuMTsiIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPGc+DQoJCTxwYXRoIGQ9Ik00NjkuNCwxODIuMWgtMzguMmMtMy4xLTcuMi01LjItMTMuNC04LjMtMTkuNmwyNi44LTI2LjhjNy4xLTcuMSw5LjItMTkuNywwLTI4LjlsLTY0LTY0Yy04LjMtOC4zLTIwLjYtOC4zLTI4LjksMA0KCQkJTDMzMCw2OS42Yy02LjItMy4xLTEzLjQtNi4yLTE5LjYtOC4zVjIzLjJjMC0xMS4zLTkuMy0yMC42LTIwLjYtMjAuNmgtODkuN2MtMTEuMywwLTIwLjYsOS4zLTIwLjYsMjAuNnYzMw0KCQkJYy03LjIsMy4xLTEzLjQsNS4yLTE5LjYsOC4zbC0yNi44LTI2LjhjLTguMy04LjMtMjAuNi04LjMtMjguOSwwbC02NCw2NGMtOC4zLDguMy04LjMsMjAuNiwwLDI4LjlMNjcsMTU3LjQNCgkJCWMtMy4xLDYuMi02LjIsMTMuNC04LjMsMTkuNkgyMC42QzkuMywxNzcsMCwxODYuMywwLDE5Ny42djg5LjdjMCwxMS4zLDkuMywyMC42LDIwLjYsMjAuNmgzNi4xYzMuMSw3LjIsNS4yLDEzLjQsOC4zLDE5LjYNCgkJCWwtMjYuOCwyNi44Yy04LjMsOC4zLTguMywyMC42LDAsMjguOWw2NCw2NGMxMS44LDExLjgsMjQuOCw0LjEsMjguOSwwbDI2LjgtMjYuOGM2LjIsMy4xLDEzLjQsNi4yLDE5LjYsOC4zdjM4LjINCgkJCWMwLDExLjMsOS4zLDIwLjYsMjAuNiwyMC42aDg5LjdjMTAuMywwLDE5LjYtOS4zLDIyLjctMTUuNXYtMzguMmM3LjItMy4xLDEzLjQtNS4yLDE5LjYtOC4zbDI2LjgsMjYuOGM4LjMsNy4yLDIxLjcsNy4yLDI4LjksMA0KCQkJbDY0LTY0YzguMy04LjMsOC4zLTIwLjYsMC0yOC45TDQyMywzMzIuNmMzLjEtNi4yLDYuMi0xMy40LDguMy0xOS42aDM4LjJjMTEuMywwLDIwLjYtOS4zLDIwLjYtMjAuNnYtODkuNw0KCQkJQzQ5MCwxOTEuNCw0ODAuNywxODIuMSw0NjkuNCwxODIuMXogTTQ0NC42LDI2OS44aC0zMmMtOS4zLDAtMTcuNSw2LjItMTkuNiwxNS41Yy0zLjEsMTMuNC04LjMsMjUuOC0xNS41LDM4LjINCgkJCWMtNS4yLDguMy0zLjEsMTguNiwzLjEsMjQuOGwyMi43LDIyLjdsLTM1LjEsMzUuMWwtMjIuNy0yMi43Yy03LjItNi4yLTE2LjUtNy4yLTI0LjgtMy4xYy0xMS4zLDYuMi0yNC44LDEyLjQtMzguMiwxNS41DQoJCQljLTkuMywyLjEtMTUuNSwxMC4zLTE1LjUsMTkuNnYzMmgtNDkuNXYtMzJjMC05LjMtNi4yLTE3LjUtMTUuNS0xOS42Yy0xMy40LTMuMS0yNS44LTguMy0zOC4yLTE1LjVjLTguMy01LjItMTguNi0zLjEtMjQuOCwzLjENCgkJCWwtMjIuNywyMi43TDgxLjIsMzcxbDIyLjctMjIuN2M2LjItNy4yLDcuMi0xNi41LDMuMS0yNC44Yy02LjItMTEuMy0xMi40LTI0LjgtMTUuNS0zOC4yYy0yLjEtOS4zLTEwLjMtMTUuNS0xOS42LTE1LjVoLTMydi00OS41DQoJCQloMzJjOS4zLDAsMTcuNS02LjIsMTkuNi0xNS41YzMuMS0xMy40LDguMy0yNS44LDE1LjUtMzguMmM1LjItOC4zLDMuMS0xOC42LTMuMS0yNC44bC0yMi43LTIyLjdMMTE2LjMsODRsMjIuNywyMi43DQoJCQljNy4yLDYuMiwxNi41LDcuMiwyNC44LDMuMWMxMS4zLTYuMiwyNC44LTEyLjQsMzguMi0xNS41YzkuMy0yLjEsMTUuNS0xMC4zLDE1LjUtMTkuNnYtMzJIMjY3djMyYzAsOS4zLDYuMiwxNy41LDE1LjUsMTkuNg0KCQkJYzEzLjQsMy4xLDI1LjgsOC4zLDM4LjIsMTUuNWM4LjMsNS4yLDE4LjYsMy4xLDI0LjgtMy4xTDM2OC4yLDg0bDM1LjEsMzUuMWwtMjIuNywyMi43Yy02LjIsNy4yLTcuMiwxNi41LTMuMSwyNC44DQoJCQljNi4yLDExLjMsMTIuNCwyNC44LDE1LjUsMzguMmMyLjEsOS4zLDEwLjMsMTUuNSwxOS42LDE1LjVoMzJWMjY5Ljh6Ii8+DQoJCTxwYXRoIGQ9Ik0yNDIuNCwxMzIuNkMxODEuNiwxMzIuNiwxMzEsMTgzLjEsMTMxLDI0NWMwLDYwLjksNDkuNSwxMTEuNCwxMTEuNCwxMTEuNFMzNTMuOCwzMDYuOSwzNTMuOCwyNDUNCgkJCVMzMDQuMywxMzIuNiwyNDIuNCwxMzIuNnogTTI0Mi40LDMxNi4yYy0zOS4yLDAtNzEuMi0zMi03MS4yLTcxLjJzMzItNzEuMiw3MS4yLTcxLjJzNzEuMiwzMiw3MS4yLDcxLjJTMjgxLjYsMzE2LjIsMjQyLjQsMzE2LjJ6DQoJCQkiLz4NCgk8L2c+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8L3N2Zz4NCg==")
  1533. }
  1534. span.left_fixer1 {
  1535. display: flex;
  1536. }
  1537.  
  1538. `)
  1539. })
  1540.  
  1541. //#region Модальное окно //стиль
  1542. GM_addStyle(`
  1543.  
  1544. #alert
  1545. {
  1546. background: #000000a3;
  1547. 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");
  1548. width: 100%;
  1549. height: 100%;
  1550. position: fixed;
  1551. z-index: 99999999;
  1552. text-align: center;
  1553. display: flex;
  1554. justify-content: center;
  1555. align-content: center;
  1556. flex-wrap: nowrap;
  1557. flex-direction: row;
  1558. align-items: center;
  1559. }
  1560.  
  1561. .window {
  1562. background-color: #272727db !important;
  1563. border-radius: 4px;
  1564. margin: 5px 5px 5px 5px;
  1565. position: revert;
  1566. padding: 10px 10px 10px 10px;
  1567. box-shadow: 7px 7px 3px 3px rgb(0 0 0 / 10%);
  1568. width: 17%;
  1569. }
  1570.  
  1571. .stop-scrolling {
  1572. height: 100%;
  1573. overflow: hidden;
  1574. }
  1575.  
  1576. .theme_button {
  1577. padding: 7px 16px 8px;
  1578. margin: 5px;
  1579. font-size: 12.5px;
  1580. cursor: pointer;
  1581. white-space: nowrap;
  1582. outline: none;
  1583. 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;
  1584. vertical-align: top;
  1585. line-height: 15px;
  1586. text-align: center;
  1587. text-decoration: none;
  1588. background: none;
  1589. background-color: #5181b8;
  1590. color: #fff;
  1591. border: 0;
  1592. border-radius: 4px;
  1593. box-sizing: border-box;
  1594. box-shadow: 7px 7px 3px 3px rgba(0,0,0,.1);
  1595. }
  1596.  
  1597. .theme_button:hover {
  1598. background-color: #3b597b;
  1599. }
  1600.  
  1601. .theme_text_name:hover {
  1602. //color: #5181b8;
  1603. }
  1604.  
  1605. div#test1 {
  1606. text-align: center;
  1607. }
  1608.  
  1609. div#key {
  1610. text-align: center;
  1611. margin-bottom: 40px;
  1612. }
  1613.  
  1614. .text_menu {
  1615. overflow: hidden;
  1616. height: 20px;
  1617. margin: 5px;
  1618. resize: none;
  1619. border-radius: 5px !important;
  1620. border-color: rgb(156, 157, 158) !important;
  1621. color: white;
  1622. background-color: #ffffff0f !important;
  1623. box-shadow: 7px 7px 3px 3px rgb(0 0 0 / 10%);
  1624. }
  1625.  
  1626. div#image {
  1627. margin: 0 auto;
  1628. margin-bottom: 5px;
  1629. border-radius: 4px;
  1630. }
  1631.  
  1632.  
  1633. .theme_text_name {
  1634. user-select: none;
  1635. font-size: 19px;
  1636. line-height: 25px;
  1637. font-weight: 400;
  1638. -webkit-font-smoothing: subpixel-antialiased;
  1639. -moz-osx-font-smoothing: auto;
  1640. margin: -1px 0 -1px -1px;
  1641. overflow: hidden;
  1642. text-overflow: ellipsis;
  1643. padding-left: 1px;
  1644.  
  1645. color: #fff;
  1646. box-shadow: 7px 7px 3px 3px rgba(0,0,0,.1);
  1647. }
  1648.  
  1649. .cont-bottom {
  1650. border-bottom: 1px solid #b5b1b191;
  1651. display: flex;
  1652. flex-direction: column;
  1653. flex-wrap: nowrap;
  1654. align-items: stretch;
  1655. justify-content: center;
  1656. padding: 3px 0 3px 0;
  1657. margin: 3px 0 3px 0;
  1658. }
  1659. img.izo {
  1660. object-fit: cover;
  1661. width: 100%;
  1662. height: 100%;
  1663. background: url(https://sun9-57.userapi.com/c857620/v857620009/18a5fd/uOxmtZm_L2A.jpg);
  1664. background-size: auto;
  1665. box-shadow: 7px 7px 3px 3px rgba(0,0,0,.1);
  1666. }
  1667.  
  1668. #alert
  1669. {
  1670. /*cursor: url('https://psv4.userapi.com/c856236/u51863636/docs/d18/10eb2dcc6647/636329186537635884.png'), auto;*/
  1671. }
  1672.  
  1673. textarea#text_background,
  1674. textarea#text_group,
  1675. textarea#text_message
  1676.  
  1677. {
  1678. border-color: #666666;
  1679. }
  1680.  
  1681.  
  1682. `)
  1683.  
  1684. //#endregion
  1685.  
  1686. //#region Окно с уведомлениями
  1687. $(document).ready(function () {
  1688. //alert_frame(null, null, null, 10)
  1689. })
  1690.  
  1691. function alert_frame(title, message, icon, timer) {
  1692. title = title || 'Заголовок сообщения.'
  1693. title1 = title
  1694. title = title.slice(0, 27)
  1695. if (title.length != title1.length) {
  1696. title += '...'
  1697. }
  1698.  
  1699. message = message || 'Cъешь ещё этих мягких французских булок да выпей же чаю.'
  1700. message1 = message
  1701. message = message.slice(0, 100)
  1702.  
  1703. if (message.length != message1.length) {
  1704. message += '...'
  1705. }
  1706.  
  1707. if (typeof icon == 'number') {
  1708. timer = icon
  1709. icon = null
  1710. }
  1711.  
  1712. icon = icon || 'https://imgcdn.wangyeyixia.com/aHR0cDovL3d3dy5wbmdtYXJ0LmNvbS9maWxlcy84L1dlYnNpdGUtUE5HLVRyYW5zcGFyZW50LnBuZw%3D%3D.png'
  1713.  
  1714. //timer = timer || 0;
  1715.  
  1716. $('body').prepend(
  1717. $('<div>', { id: 'alert_frame' }).prepend(
  1718. $('<div>', {
  1719. id: 'alert1',
  1720. class: 'hidden',
  1721. html: [$('<div>', { id: 'alert1_title', text: title }), $('<div>', { id: 'alert1_icon', style: 'background-image: url(' + icon + ');' }), $('<div>', { id: 'alert1_message', text: message })]
  1722. })
  1723. )
  1724. )
  1725. $('#alert1').click(function () {
  1726. $('#alert1').addClass('hidden')
  1727. })
  1728.  
  1729. if (timer) {
  1730. setTimeout(function () {
  1731. $('#alert1').addClass('hidden')
  1732. }, timer)
  1733. }
  1734. setTimeout(function () {
  1735. $('#alert1').removeClass('hidden')
  1736. }, 500)
  1737.  
  1738. GM_addStyle(`
  1739. #alert1
  1740. {
  1741. display: block;
  1742. width: 300px;
  1743. height: 100px;
  1744. position: fixed;
  1745. background-color: #1f1f1fd6;
  1746. text-align: center;
  1747. bottom: 30px;
  1748. align-items: center;
  1749. right: 30px;
  1750. z-index: 1000000000;
  1751. opacity: 1;
  1752. border-radius: 10px;
  1753. box-shadow: 13px 12px 10px rgb(0 0 0 / 60%);
  1754. transition: opacity 1s, visibility 0s;
  1755. }
  1756.  
  1757. #alert1.hidden
  1758. {
  1759. opacity: 0;
  1760. visibility: hidden;
  1761. transition: opacity 1s, visibility 0s 1s;
  1762. }
  1763.  
  1764. #alert1_title
  1765. {
  1766. color: white;
  1767. font-size: 15px;
  1768. font-weight: bold;
  1769. margin: 4px 8px 4px 8px;
  1770. }
  1771.  
  1772. #alert1_message
  1773. {
  1774. text-align: left;
  1775. font-size: 14px;
  1776. font-weight: normal;
  1777. color: #a0a0a0;
  1778. margin: 8px 8px 8px 8px;
  1779. }
  1780.  
  1781. #alert1_icon
  1782. {
  1783. width: 64px;
  1784. height: 64px;
  1785. float: left;
  1786. margin: 0px 6px 6px 6px;
  1787. /*background-image: url(https://cdn.worldvectorlogo.com/logos/rockstar-games.svg);*/
  1788. background-size: contain;
  1789. background-repeat: no-repeat;
  1790. }
  1791.  
  1792. `)
  1793. }
  1794. //#endregion
  1795.  
  1796. //#region Модальное окно //логика
  1797.  
  1798. var on = true
  1799. var range_11 = 0
  1800. function Start_Settings_Menu() {
  1801. var newImage
  1802. $('body')
  1803. .addClass('stop-scrolling')
  1804. .prepend(
  1805. $('<div>', { id: 'alert' }).append(
  1806. $('<div>', { class: 'window', id: 'window1' })
  1807. .append(
  1808. $('<div>', {
  1809. class: 'cont-bottom',
  1810. id: 'cont1',
  1811. html: [
  1812. $('<div>', { class: 'theme_text_name', text: 'Установка фона' }),
  1813. $('<div>', { id: 'image', style: 'border-radius: 4px;' }).append($('<img>', { class: 'izo', style: 'border-radius: 4px; margin-left: 2px;', src: GM_getValue('background') })),
  1814. $('<textarea>', { class: 'text_menu', id: 'text_background', text: GM_getValue('background'), style: 'height: 100px;' }).on('change keyup blur', function (e) {
  1815. let URLtext = $('#text_background').val()
  1816. $('#image img.izo').attr('src', URLtext)
  1817. newImage = URLtext
  1818. })
  1819. ]
  1820. })
  1821. )
  1822. .append(
  1823. $('<div>', {
  1824. class: 'cont-bottom',
  1825. id: 'cont2',
  1826. html: [
  1827. $('<div>', { class: 'theme_button', id: 'button_delete', style: 'display: none;', text: 'Выключить тему' }).on('click', () => {
  1828. theme_off()
  1829. GM_setValue('enable', false)
  1830. //exit_();
  1831. }),
  1832. $('<div>', { class: 'theme_button', id: 'button_spawn', style: 'display: none;', text: 'Включить тему' }).on('click', () => {
  1833. theme()
  1834. GM_setValue('enable', true)
  1835. //exit_();
  1836. })
  1837. ]
  1838. })
  1839. )
  1840. .append(
  1841. $('<div>', {
  1842. class: 'cont-bottom',
  1843. id: 'cont3',
  1844. html: [
  1845. $('<div>', { class: 'theme_text_name', style: 'margin-top: 10px;', text: 'Текст кнопки группы' }),
  1846. $('<textarea>', { class: 'text_menu', id: 'text_group', text: GM_getValue('group'), style: 'height: 24px; border-radius: 4px; background-color: #ffffff0f!important; margin-top: 4px; margin-bottom: 4px;' }).on('change keyup blur', function (e) {
  1847. _group = $('#text_group').val()
  1848. })
  1849. ]
  1850. })
  1851. )
  1852. .append(
  1853. $('<div>', {
  1854. class: 'cont-bottom',
  1855. id: 'cont4',
  1856. html: [
  1857. $('<div>', { class: 'theme_text_name', style: 'margin-top: 10px;', text: 'Текст кнопки сообщения' }),
  1858. $('<textarea>', {
  1859. class: 'text_menu',
  1860. id: 'text_message',
  1861. text: GM_getValue('message_name'),
  1862. style: 'height: 24px; border-radius: 4px; background-color: #ffffff0f!important; margin-top: 4px; margin-bottom: 4px;'
  1863. }).on('change keyup blur', function (e) {
  1864. _messange_name = $('#text_message').val()
  1865. })
  1866. ]
  1867. })
  1868. )
  1869. .append(
  1870. $('<div>', {
  1871. class: 'cont-bottom',
  1872. id: 'cont5',
  1873. style: 'display: none; text-align: left;',
  1874. html: [
  1875. //$('<div>', { class: 'theme_text_name', style: 'margin-top: 10px;', text: 'Текст кнопки сообщения' }),
  1876. $('<input>', {
  1877. class: 'check45345',
  1878. type: 'checkbox',
  1879. checked: GM_getValue('combo_hide'),
  1880. id: 'text_checkbox',
  1881. style: 'vertical-align: -2px; margin: 10px 5px 5px 10px;'
  1882. }).on('click', a => {
  1883. combo_hide($('#text_checkbox').prop('checked'))
  1884. }),
  1885. $('<label>', { for: 'text_checkbox', style: 'color: #ffffff;', text: 'Скрыть VK Combo' })
  1886. ]
  1887. })
  1888. )
  1889. .append(
  1890. $('<div>', { class: 'theme_button', id: 'button_save', style: 'margin-top: 10px;', text: 'Сохранить' }).on('click', () => {
  1891. newImage = $('#text_background').val()
  1892. _group = $('#text_group').val()
  1893. _messange_name = $('#text_message').val()
  1894. GM_setValue('background', newImage)
  1895. GM_setValue('group', _group)
  1896. GM_setValue('message_name', _messange_name)
  1897. GM_setValue('text_id_group', owner_id)
  1898. GM_setValue('text_id_albom', album_id)
  1899. GM_setValue('bc_albom_repit', bc_albom_repit)
  1900.  
  1901. //$("#bc_albom_repit").val()
  1902. rename()
  1903. if (GM_getValue('enable') == true) {
  1904. //bc_transparent(newImage);
  1905. //$('body').css({ 'background': 'url("' + newImage + '") #2F2F30', 'background-size': '100%', 'background-attachment': 'fixed' })
  1906. }
  1907. exit_()
  1908. })
  1909. )
  1910. .append($('<div>', { class: 'theme_button', id: 'button_exit', text: 'Закрыть' }).on('click', exit_))
  1911. .append($('<button>', { class: "jscolor {valueElement:'chosen-value', onFineChange:'setTextColor(this)'}", text: 'ТЕСТ', style: 'display: none;' }))
  1912. )
  1913. )
  1914. $('#alert').append('<div class="window", id="window2">')
  1915. $('#window2').append('<div class="cont-bottom" id="2cont1"">')
  1916. $('#2cont1').append('<div class="theme_text_name">Случайный фон из сообщества</div>')
  1917. $('#2cont1').append('<div class="theme_button" id="button_albom_on"">включить</div>')
  1918. if (GM_getValue('bc_albom_enable')) $('#button_albom_on').text('выключить')
  1919. $('#button_albom_on').click(function () {
  1920. GM_setValue('bc_albom_enable', !GM_getValue('bc_albom_enable'))
  1921.  
  1922. if (GM_getValue('bc_albom_enable')) $('#button_albom_on').text('Выключить')
  1923. if (!GM_getValue('bc_albom_enable')) $('#button_albom_on').text('Включить')
  1924. })
  1925.  
  1926. $('#2cont1').append('<div class="theme_button" id="button_albom_add"">Использовать этот открытый альбом</div>')
  1927. if (!document.location.pathname.includes('album')) $('#button_albom_add').css({ display: 'none' })
  1928. $('#button_albom_add').click(function () {
  1929. add_albom()
  1930. })
  1931.  
  1932. $('#window2').append('<div class="cont-bottom" id="2cont2"">')
  1933. $('#2cont2').append('<div class="theme_text_name">ID автора</div>')
  1934. $('#2cont2').append('<textarea class="text_menu" id="text_id_group" placeholder="ID автора">' + owner_id + '</textarea>')
  1935.  
  1936. $('#text_id_group').on('change keyup paste', function () {
  1937. owner_id = $(this).val()
  1938. })
  1939.  
  1940. $('#window2').append('<div class="cont-bottom" id="2cont3"">')
  1941. $('#2cont3').append('<div class="theme_text_name">ID альбома</div>')
  1942. $('#2cont3').append('<textarea class="text_menu" id="text_id_albom" placeholder="ID альбома">' + album_id + '</textarea>')
  1943.  
  1944. $('#text_id_albom').on('change keyup paste', function () {
  1945. album_id = $(this).val()
  1946. })
  1947.  
  1948. $('#window2').append('<div class="cont-bottom" id="2cont4"">')
  1949. $('#2cont4').append('<div class="theme_text_name">Обновлять фон</div>')
  1950. $('#2cont4').append('<div class="theme_text_name", style=" font-size: 16px;">Время в минутах</div>')
  1951. $('#2cont4').append('<div class="theme_text_name", style=" font-size: 14px; color: #9c9c9c;">Для отключения установить 0</div>')
  1952. $('#2cont4').append('<input type="number" id="bc_albom_repit" class="text_menu" min="0" value="' + bc_albom_repit + '" step="5">')
  1953.  
  1954. $('#bc_albom_repit').on('change keyup paste', function () {
  1955. bc_albom_repit = $(this).val()
  1956. })
  1957.  
  1958. function add_albom() {
  1959. if (document.location.pathname.includes('album')) {
  1960. href = document.location.pathname.replace('/album', '').split('_')
  1961. $('#text_id_group').val(href[0])
  1962. $('#text_id_albom').val(href[1])
  1963. owner_id = href[0]
  1964. album_id = href[1]
  1965. get_albom()
  1966. }
  1967. }
  1968.  
  1969. //$("#alert").append('<div style="position: absolute; display: flex; flex-direction: row; justify-content: flex-end; width: 100%; height: 100%; align-content: flex-end; flex-wrap: wrap; align-items: flex-end;"><div style ="margin: 20px;" id="img_url_original">DygDyg</div></div>');
  1970. //$("#img_url_original").val("Ссылка на текущий фон");
  1971.  
  1972. function setTextColor(picker) {
  1973. document.getElementsByTagName('body')[0].style.color = '#' + picker.toString()
  1974. }
  1975. var range_coll
  1976. range_col()
  1977. function range_col() {
  1978. if (range_coll && range_coll.id) {
  1979. range_coll.remove()
  1980. }
  1981. //console.log(col);
  1982. range_coll = GM_addStyle(`
  1983. /*.top_audio_player:hover,*/
  1984. .audio_page_player2 .audio_page_player_play:hover .icon,
  1985. .audio_page_player2 .audio_page_player_play .icon,
  1986. .slider .slider_amount,
  1987. .slider .slider_back,
  1988. .theme_button,
  1989. #page_header_cont .back,
  1990. .top_nav_link:hover,
  1991. .nim-dialog:not(.nim-dialog_deleted).nim-dialog_selected,
  1992. .nim-dialog:not(.nim-dialog_deleted).nim-dialog_hovered,
  1993. .ui_rmenu_item:hover, .ui_rmenu_subitem:hover,
  1994. .ui_rmenu_item_sel,
  1995. .ui_rmenu_item_sel:hover,
  1996. .olist_item_wrap:hover,
  1997. .docs_choose_upload_area:hover,
  1998. .box_title_wrap.box_grey,
  1999. .ui_tab_sel, .ui_tab_sel:hover,
  2000. .ui_tabs .ui_tab_sel, .ui_tabs .ui_tab_sel:hover,
  2001. .ui_tabs_box .ui_tab_sel,
  2002. .ui_tabs_box .ui_tab_sel:hover,
  2003. .ui_rmenu_item:hover,
  2004. .ui_rmenu_subitem:hover,
  2005. .ui_rmenu_item_sel,
  2006. .ui_rmenu_item_sel:hover,
  2007. .olist_item_wrap:hover,
  2008. .docs_choose_upload_area:hover,
  2009. .button_blue button,
  2010. .button_gray button,
  2011. .button_light_gray button,
  2012. .flat_button,
  2013. .box_title_wrap.box_grey
  2014. {
  2015. filter: hue-rotate(${col}deg) saturate(100%);
  2016. /*background: hsl(${col}, 39%, 47%) !important;*/
  2017. }
  2018. `)
  2019. }
  2020.  
  2021. if (GM_getValue('enable') == true) $('#button_delete').css({ display: 'block' })
  2022. if (GM_getValue('enable') == false) $('#button_spawn').css({ display: 'block' })
  2023. }
  2024.  
  2025. function theme_off() {
  2026. console.log('theme off')
  2027. darkStyleBacground.remove()
  2028. darkStyle.remove()
  2029. darkStyle1.remove()
  2030. $('body').css({ 'background-color': '', 'background-image': '' })
  2031. $('#button_delete').css({ display: 'none' })
  2032. $('#button_spawn').css({ display: 'block' })
  2033. combo_hide(false)
  2034. }
  2035.  
  2036. //#endregion
  2037.  
  2038. var t = ' '
  2039.  
  2040. /*$(document).keyup(function (e) {
  2041. t = e.code;
  2042. console.dir(t);
  2043. });*/
  2044.  
  2045. let pressed = new Set()
  2046. /*$(document).on('keyup', function (e) {
  2047. t = e.originalEvent.code;
  2048. pressed.add(t);
  2049. //console.log(pressed);
  2050. pressed.clear();
  2051. console.log(t);
  2052. });*/
  2053.  
  2054. /*$(document).ready(function () {
  2055. $("body").keydown(function (event) { // задаем функцию при отпускании после нажатия любой клавиши клавиатуры на элементе
  2056. console.log(event.which); // выводим код нажатой клавиши
  2057. });
  2058. });*/
  2059.  
  2060. function exit_() {
  2061. $('#alert').remove()
  2062. $('body').removeClass('stop-scrolling')
  2063. }
  2064. ///Модальное окно
  2065.  
  2066. $(document).ready(function () {
  2067. //VideoTest("YhUPi6-MQNE")
  2068. if (GM_getValue('ver_info') != ver_info) {
  2069. // analit()
  2070. info()
  2071. GM_setValue('ver_info', ver_info)
  2072. }
  2073.  
  2074. //analit();
  2075. //info();
  2076. //console.log(vk);
  2077. //console.log(GM_info.script.version)
  2078. })
  2079.  
  2080. var a = document.location.pathname.includes('/dev')
  2081. // console.log(a)
  2082. if (!a) {
  2083. // console.log(a)
  2084. //theme_off();
  2085. //setTimeout(theme_off, 1000)
  2086. if (GM_getValue('enable') == true) theme()
  2087. }
  2088.  
  2089. function info() {
  2090. $('body')
  2091. .addClass('stop-scrolling')
  2092. .prepend(
  2093. $('<div>', { id: 'alert' }).append(
  2094. $('<div>', { class: 'window', id: 'window1' })
  2095. .append(
  2096. $('<div>', {
  2097. class: 'cont-bottom',
  2098. id: 'cont1',
  2099. html: [$('<div>', { class: 'theme_text_name', text: GM_info.script.name + ' ' + GM_info.script.version }), $('<div>', { class: 'theme_text_name', text: 'Нововведения:' })]
  2100. })
  2101. )
  2102. .append(
  2103. $('<div>', {
  2104. class: 'cont-bottom',
  2105. id: 'cont1',
  2106. html: [$('<div>', { style: 'font-size: 14px; text-align: -webkit-auto;', class: 'theme_text_name', text: _info })]
  2107. })
  2108. )
  2109. .append($('<div>', { class: 'theme_button', id: 'button_exit', text: 'Закрыть' }).on('click', exit_))
  2110. )
  2111. )
  2112. }
  2113.  
  2114. function get_albom() {
  2115. var req =
  2116. 'https://api.vk.com/method/photos.get?' +
  2117. 'access_token=' +
  2118. '5068f7995068f7995068f7993e5039a129550685068f79909b64ef038338754cb12e019' +
  2119. '&' +
  2120. 'v=' +
  2121. '5.131' +
  2122. '&' +
  2123. 'owner_id=' +
  2124. owner_id +
  2125. '&' +
  2126. 'album_id=' +
  2127. album_id +
  2128. '&' +
  2129. //"photo_sizes=true&"+
  2130. 'count=1000'
  2131.  
  2132. //console.log(req);
  2133.  
  2134. if (GM_getValue('bc_albom_enable') == true) {
  2135. $.get(req, function (data) {
  2136. $('.result').html(data)
  2137. var rand = Math.round(Math.random() * data.response.count)
  2138.  
  2139. //console.log("Выбран фон №"+rand);
  2140. {
  2141. var urlsort = data.response.items[rand].sizes.sort((a, b) => (a.height > b.height ? 1 : b.height > a.height ? -1 : 0))
  2142.  
  2143. if (urlsort.length > 0) {
  2144. // console.log(urlsort);
  2145. // console.log(urlsort[urlsort.length-1].url);
  2146. GM_setValue('background', urlsort[urlsort.length - 1].url)
  2147. }
  2148. }
  2149. })
  2150. }
  2151. }
  2152.  
  2153. function Link_oboi() {
  2154. $('<a id="Link_oboi">Открыть оригинал обоев.</a>').prependTo('body')
  2155. $('#Link_oboi').attr('href', GM_getValue('background'))
  2156.  
  2157. GM_addStyle(`
  2158. #Link_oboi {
  2159. position: fixed;
  2160. /* height: 100%; */
  2161. /* width: 100%; */
  2162. display: block;
  2163. color: white;
  2164. right: 15px;
  2165. bottom: 15px;
  2166. z-index: 10000;
  2167. text-shadow: 2px 0 2px #000, 0 2px 2px #000, -2px 0 2px #000, 0 -2px 2px #000;
  2168. }
  2169. `)
  2170. }
  2171.  
  2172.  
  2173. function VideoTest(id)
  2174. {
  2175. $('body').prepend('<iframe id="videotest" src="https://www.youtube.com/embed/'+id+'?mode=opaque&amp;wmode=transparent&amp;autoplay=1&amp;loop=1&amp;controls=0&amp;modestbranding=1&amp;rel=0&amp;autohide=1&amp;showinfo=0&amp;color=white&amp;iv_load_policy=3&amp;theme=light&amp;wmode=transparent&amp;mute=1&amp&playlist='+id+'" frameborder="0" allow="autoplay" style="position: fixed; width: 100%; height: 115%; z-index: -1; background-size: auto; opacity: 0;"></iframe>');
  2176.  
  2177. setTimeout(() => {
  2178. $("#videotest").css({'transition': 'opacity 10s ease 0s'});
  2179. $("#videotest").css({'opacity': '100'});
  2180. }, 2000);
  2181. setTimeout(() => { $("#videotest").onpause(); }, 4000)
  2182. }