Plugin Directory

Changeset 2880242


Ignore:
Timestamp:
03/15/2023 06:20:22 AM (3 years ago)
Author:
darkmysite
Message:

Version 1.2.2

Location:
darkmysite
Files:
90 added
12 edited

Legend:

Unmodified
Added
Removed
  • darkmysite/trunk/assets/css/client_main.css

    r2863492 r2880242  
    5050    color: var(--darkmysite_dark_mode_input_text_color) !important;
    5151}
    52 .darkmysite_dark_mode_enabled .darkmysite_style_form_element:not(.darkmysite_switch, .darkmysite_switch *, .darkmysite_ignore, .darkmysite_ignore * )::placeholder,
    53 .darkmysite_dark_mode_enabled .darkmysite_style_form_element:not(.darkmysite_switch, .darkmysite_switch *, .darkmysite_ignore, .darkmysite_ignore * ):-ms-input-placeholder,
    54 .darkmysite_dark_mode_enabled .darkmysite_style_form_element:not(.darkmysite_switch, .darkmysite_switch *, .darkmysite_ignore, .darkmysite_ignore * )::-ms-input-placeholder{
     52.darkmysite_dark_mode_enabled .darkmysite_style_form_element:not(.darkmysite_switch, .darkmysite_switch *, .darkmysite_ignore, .darkmysite_ignore * )::placeholder{
    5553    color: var(--darkmysite_dark_mode_input_placeholder_color) !important;
    5654}
     
    132130    --darkmysite_switch_margin_from_left: 40px;
    133131    --darkmysite_switch_margin_from_right: 40px;
     132    --darkmysite_switch_tooltip_bg_color: #142434;
     133    --darkmysite_switch_tooltip_text_color: #B0CBE7;
    134134}
    135135.darkmysite_switch, .darkmysite_switch * {
     
    169169}
    170170
     171
     172
     173
     174.darkmysite_tooltip .darkmysite_tooltiptext {
     175    visibility: hidden;
     176    width: 120px;
     177    background-color: var(--darkmysite_switch_tooltip_bg_color);
     178    color: var(--darkmysite_switch_tooltip_text_color);
     179    font-size: 12px;
     180    text-align: center;
     181    border-radius: 0;
     182    padding: 5px 0;
     183    position: absolute;
     184    z-index: 1;
     185}
     186.darkmysite_tooltip .darkmysite_tooltiptext::after {
     187    content: "";
     188    position: absolute;
     189    border-width: 5px;
     190    border-style: solid;
     191}
     192.darkmysite_tooltip:hover .darkmysite_tooltiptext {
     193    visibility: visible;
     194}
     195.darkmysite_tooltip.darkmysite_tooltip_top .darkmysite_tooltiptext {
     196    bottom: calc(100% + 10px);
     197    left: 50%;
     198    margin-left: -60px;
     199}
     200.darkmysite_tooltip.darkmysite_tooltip_top .darkmysite_tooltiptext::after {
     201    left: 50%;
     202    margin-left: -5px;
     203    top: 100%;
     204    border-color: var(--darkmysite_switch_tooltip_bg_color) transparent transparent transparent;
     205}
     206.darkmysite_tooltip.darkmysite_tooltip_bottom .darkmysite_tooltiptext {
     207    top: calc(100% + 10px);
     208    left: 50%;
     209    margin-left: -60px;
     210}
     211.darkmysite_tooltip.darkmysite_tooltip_bottom .darkmysite_tooltiptext::after {
     212    left: 50%;
     213    margin-left: -5px;
     214    bottom: 100%;
     215    border-color: transparent transparent var(--darkmysite_switch_tooltip_bg_color) transparent;
     216}
     217.darkmysite_tooltip.darkmysite_tooltip_left .darkmysite_tooltiptext {
     218    right: calc(100% + 10px);
     219    top: calc(50% - 15px);
     220}
     221.darkmysite_tooltip.darkmysite_tooltip_left .darkmysite_tooltiptext::after {
     222    top: 50%;
     223    left: 100%;
     224    margin-top: -5px;
     225    border-color: transparent transparent transparent var(--darkmysite_switch_tooltip_bg_color);
     226}
     227.darkmysite_tooltip.darkmysite_tooltip_right .darkmysite_tooltiptext {
     228    left: calc(100% + 10px);
     229    top: calc(50% - 15px);
     230}
     231.darkmysite_tooltip.darkmysite_tooltip_right .darkmysite_tooltiptext::after {
     232    top: 50%;
     233    right: 100%;
     234    margin-top: -5px;
     235    border-color: transparent var(--darkmysite_switch_tooltip_bg_color) transparent transparent;
     236}
    171237
    172238
  • darkmysite/trunk/assets/js/admin_main.js

    r2871278 r2880242  
    223223}
    224224
     225function darkmysite_enable_disable_floating_switch_tooltip(view){
     226    'use strict';
     227    var choice = jQuery(view).val();
     228    if(choice === "1"){
     229        jQuery(".darkmysite_floating_switch_tooltip_position").show().prev().show()
     230        jQuery(".darkmysite_floating_switch_tooltip_text").show().prev().show()
     231        jQuery(".darkmysite_floating_switch_tooltip_bg_color").show().prev().show()
     232        jQuery(".darkmysite_floating_switch_tooltip_text_color").show().prev().show()
     233    }else if(choice === "0"){
     234        jQuery(".darkmysite_floating_switch_tooltip_position").hide().prev().hide()
     235        jQuery(".darkmysite_floating_switch_tooltip_text").hide().prev().hide()
     236        jQuery(".darkmysite_floating_switch_tooltip_bg_color").hide().prev().hide()
     237        jQuery(".darkmysite_floating_switch_tooltip_text_color").hide().prev().hide()
     238    }
     239}
    225240
    226241function darkmysite_checkbox_input_select_change(view) {
     
    294309        'dark_mode_switch_margin_right': jQuery(".darkmysite_dark_mode_switch_margin_right input").val(),
    295310        'enable_absolute_position': jQuery(".darkmysite_enable_absolute_position select").val(),
     311
     312        /* Switch Extras */
     313        'enable_floating_switch_tooltip': jQuery(".darkmysite_enable_floating_switch_tooltip select").val(),
     314        'floating_switch_tooltip_position': jQuery(".darkmysite_floating_switch_tooltip_position select").val(),
     315        'alternative_dark_mode_switch': jQuery(".darkmysite_alternative_dark_mode_switch input").val(),
    296316
    297317        /* Switch Apple */
  • darkmysite/trunk/assets/js/client_main.js

    r2871278 r2880242  
    1 var _0x5063f8=_0x3443;(function(_0x1725c5,_0x2d4338){var _0x274810=_0x3443,_0x1d4203=_0x1725c5();while(!![]){try{var _0x41e296=parseInt(_0x274810(0xd6))/0x1+-parseInt(_0x274810(0x114))/0x2*(parseInt(_0x274810(0xdb))/0x3)+-parseInt(_0x274810(0xe3))/0x4+-parseInt(_0x274810(0x105))/0x5*(-parseInt(_0x274810(0xc2))/0x6)+-parseInt(_0x274810(0xe0))/0x7*(-parseInt(_0x274810(0x107))/0x8)+-parseInt(_0x274810(0xf1))/0x9+parseInt(_0x274810(0xb5))/0xa;if(_0x41e296===_0x2d4338)break;else _0x1d4203['push'](_0x1d4203['shift']());}catch(_0x12ad75){_0x1d4203['push'](_0x1d4203['shift']());}}}(_0x5c63,0x4033c));var has_process_run_at_least_once=![],old_transition='',has_background_img_url=![],darken_level=parseInt(darkmysite_bg_image_darken_to)/0x64;darken_level=darken_level[_0x5063f8(0xed)](0x1);var darkmysite_secondary_bg_color='';darkmysite_init_keyboard_shortcut_listener(),darkmysite_init_os_mode_change_listener();const darkmysite_observer=new MutationObserver(function(_0x21345a){darkmysite_init_processes();}),elements_class_changed=new MutationObserver(_0x1bb16b=>{var _0x10069f=_0x5063f8;document['readyState']!==_0x10069f(0xc0)&&_0x1bb16b[_0x10069f(0xf4)](_0x4d54cb=>{var _0x411be6=_0x10069f;if(_0x4d54cb['target']['classList'][_0x411be6(0xbe)](_0x411be6(0x10a))){if(!_0x4d54cb['target']['hasAttribute']('data-darkmysite_preserved_classes'))_0x4d54cb[_0x411be6(0xbd)][_0x411be6(0x118)][_0x411be6(0xc6)]=_0x4d54cb[_0x411be6(0xbd)]['classList'][_0x411be6(0x112)]();else{if(_0x4d54cb[_0x411be6(0xbd)][_0x411be6(0x118)][_0x411be6(0xc6)]===_0x4d54cb[_0x411be6(0xbd)][_0x411be6(0xba)][_0x411be6(0x112)]())return;}_0x4d54cb[_0x411be6(0xbd)][_0x411be6(0x118)][_0x411be6(0xc6)]=_0x4d54cb[_0x411be6(0xbd)][_0x411be6(0xba)][_0x411be6(0x112)](),elements_class_changed[_0x411be6(0xb8)](),_0x4d54cb[_0x411be6(0xbd)][_0x411be6(0xba)][_0x411be6(0xec)](_0x411be6(0x10a)),darkmysite_process_element(_0x4d54cb[_0x411be6(0xbd)]),document[_0x411be6(0xc3)](_0x411be6(0x110))[_0x411be6(0xf4)](function(_0x331fb4){var _0x2ff347=_0x411be6;elements_class_changed[_0x2ff347(0xf9)](_0x331fb4,{'attributes':!![],'attributeFilter':[_0x2ff347(0xbc)]});});}});}),dark_mode_status_changed=new MutationObserver(_0x18d580=>{var _0x3b236e=_0x5063f8;_0x18d580[_0x3b236e(0xf4)](_0x2b9453=>{var _0x9280a5=_0x3b236e;_0x2b9453[_0x9280a5(0xe2)]===_0x9280a5(0xcf)&&_0x2b9453[_0x9280a5(0xda)]==='class'&&document[_0x9280a5(0xc3)](_0x9280a5(0x110))['forEach'](function(_0x490ca2){var _0x49b60c=_0x9280a5;if(_0x490ca2['classList'][_0x49b60c(0xbe)](_0x49b60c(0x10a))){if(darkmysite_disallowed_elements[_0x49b60c(0xe4)]>0x0){if(_0x490ca2['matches'](darkmysite_disallowed_elements))return;}darkmysite_enable_bg_image_darken==='1'&&darkmysite_darken_bg_image(_0x490ca2,darken_level);(darkmysite_enable_low_image_brightness==='1'||darkmysite_enable_image_grayscale==='1')&&(_0x490ca2[_0x49b60c(0x11a)][_0x49b60c(0xe9)]()==='img'&&darkmysite_img_brightness_and_grayscale(_0x490ca2));darkmysite_enable_invert_inline_svg==='1'&&(_0x490ca2[_0x49b60c(0x11a)][_0x49b60c(0xe9)]()===_0x49b60c(0x104)&&darkmysite_invert_inline_svg(_0x490ca2));if(darkmysite_enable_low_video_brightness==='1'||darkmysite_enable_video_grayscale==='1'){_0x490ca2['nodeName'][_0x49b60c(0xe9)]()==='video'&&darkmysite_video_brightness_and_grayscale(_0x490ca2);if(_0x490ca2[_0x49b60c(0x11a)][_0x49b60c(0xe9)]()===_0x49b60c(0x101)){const _0x237352=_0x490ca2[_0x49b60c(0x11c)]('src');(_0x237352[_0x49b60c(0xb4)](_0x49b60c(0x11e))||_0x237352[_0x49b60c(0xb4)](_0x49b60c(0xbb))||_0x237352[_0x49b60c(0xb4)](_0x49b60c(0x11f)))&&darkmysite_video_brightness_and_grayscale(_0x490ca2);}}_0x490ca2[_0x49b60c(0xd5)](_0x49b60c(0xb6))&&darkmysite_fix_background_color_alpha(_0x490ca2);}});});});function darkmysite_change_state(){'use strict';var _0x3d930a=_0x5063f8;darkmysite_is_this_admin_panel==='1'?localStorage[_0x3d930a(0xf0)]=document[_0x3d930a(0xfd)](_0x3d930a(0xdf))[0x0][_0x3d930a(0xba)][_0x3d930a(0xbe)](_0x3d930a(0xf6))?'1':'0':localStorage[_0x3d930a(0xee)]=document[_0x3d930a(0xfd)](_0x3d930a(0xdf))[0x0][_0x3d930a(0xba)][_0x3d930a(0xbe)](_0x3d930a(0xf6))?'1':'0';}function darkmysite_switch_trigger(){'use strict';var _0x4023b0=_0x5063f8;!has_process_run_at_least_once&&(darkmysite_init_processes(),darkmysite_init_observer()),document['getElementsByTagName'](_0x4023b0(0xdf))[0x0][_0x4023b0(0xba)][_0x4023b0(0xbe)](_0x4023b0(0xf6))?document[_0x4023b0(0xfd)](_0x4023b0(0xdf))[0x0][_0x4023b0(0xba)][_0x4023b0(0xec)]('darkmysite_dark_mode_enabled'):document[_0x4023b0(0xfd)](_0x4023b0(0xdf))[0x0][_0x4023b0(0xba)]['add'](_0x4023b0(0xf6)),darkmysite_change_state();}function _0x5c63(){var _0x328dd9=['classList','vimeo','class','target','contains','darkmysite_alpha_bg','loading','replace','301068ABXVZB','querySelectorAll','darkmysite_preserved_filter','DOMContentLoaded','darkmysite_preserved_classes','background-image','rgb','not_set','rgba(0,\x200,\x200,\x20','setHours','none','filter','darkmysite_style_bg_border','attributes','linear-gradient(rgba(0,\x200,\x200,\x20','darkmysite_style_button','backgroundImage','rgba(255,\x20255,\x20255,\x200)','background-color','hasAttribute','343796RzPDWw','getTime','rgba(0,\x200,\x200,\x200)','altKey','attributeName','871257yuHFpA','getComputedStyle','darkmysite_style_bg','darkmysite_style_secondary_bg','html','482909AjgEAJ','video','type','1203080bBxdbj','length','borderColor','data-darkmysite_secondary_bg_finder','darkmysite_inverted_inline_svg','darkmysite_secondary_bg_finder','toLowerCase','transition','setMinutes','remove','toFixed','darkmysite_last_state','.darkmysite_style_txt_border,\x20.darkmysite_style_txt,\x20.darkmysite_style_border','darkmysite_admin_panel_last_state','564255OtqBlt','darkmysite_style_link','rgba','forEach','darkmysite_style_form_element','darkmysite_dark_mode_enabled','textarea','matchMedia','observe','data-darkmysite_preserved_bg','darkmysite_style_border','setProperty','getElementsByTagName','darkmysite_style_all','darkmysite_changed_brightness_and_grayscale','darkmysite_changed_video_brightness_and_grayscale','iframe','width','trim','svg','15nvgnVB','darkmysite_style_txt_border','16TYvuIS','grayscale(','addEventListener','darkmysite_processed','data-darkmysite_preserved_color','style','important','button','input','*\x20:not(head,\x20title,\x20link,\x20meta,\x20script,\x20style,\x20defs,\x20filter)','split','toString','),\x20rgba(0,\x200,\x200,\x20','2ehdMwD','add','select',')),\x20','dataset','backgroundColor','nodeName','color','getAttribute','darkmysite_preserved_color','youtube','dailymotion','all\x200s\x20ease\x200s','light','dark','change','src','invert(1)','darkmysite_style_bg_txt','(prefers-color-scheme:\x20dark)','darkmysite_style_txt','rgb(255,\x20255,\x20255)','brightness(','matches','getHours','includes','2845520chEyCJ','data-darkmysite_alpha_bg','url','disconnect','body'];_0x5c63=function(){return _0x328dd9;};return _0x5c63();}function darkmysite_init_keyboard_shortcut_listener(){darkmysite_enable_keyboard_shortcut==='1'&&(document['onkeydown']=function(_0x3d9710){var _0x4fa273=_0x3443;if(!_0x3d9710)_0x3d9710=event;_0x3d9710['ctrlKey']&&_0x3d9710[_0x4fa273(0xd9)]&&_0x3d9710['keyCode']===0x44&&darkmysite_switch_trigger();});}function darkmysite_init_os_mode_change_listener(){var _0x2a8e8f=_0x5063f8;darkmysite_is_this_admin_panel==='0'&&darkmysite_enable_os_aware==='1'&&window[_0x2a8e8f(0xf8)]('(prefers-color-scheme:\x20dark)')[_0x2a8e8f(0x109)](_0x2a8e8f(0xaa),_0x52fd7c=>{var _0x2e2693=_0x2a8e8f,_0x1b6e4e=_0x52fd7c['matches']?_0x2e2693(0xa9):_0x2e2693(0xa8);if(_0x1b6e4e==='dark')document['getElementsByTagName'](_0x2e2693(0xdf))[0x0][_0x2e2693(0xba)][_0x2e2693(0x115)](_0x2e2693(0xf6));else _0x1b6e4e===_0x2e2693(0xa8)&&document[_0x2e2693(0xfd)](_0x2e2693(0xdf))[0x0]['classList'][_0x2e2693(0xec)]('darkmysite_dark_mode_enabled');darkmysite_change_state();});}function darkmysite_darken_bg_image(_0xfd3e8,_0x5b2aea){var _0x21a92e=_0x5063f8;document[_0x21a92e(0xfd)](_0x21a92e(0xdf))[0x0][_0x21a92e(0xba)][_0x21a92e(0xbe)](_0x21a92e(0xf6))?window[_0x21a92e(0xdc)](_0xfd3e8,null)['backgroundImage']!==_0x21a92e(0xcc)&&(window[_0x21a92e(0xdc)](_0xfd3e8,null)[_0x21a92e(0xd2)][_0x21a92e(0xb4)](_0x21a92e(0xb7))&&(!window[_0x21a92e(0xdc)](_0xfd3e8,null)[_0x21a92e(0xd2)][_0x21a92e(0xb4)](_0x21a92e(0xca)+_0x5b2aea+')')&&_0xfd3e8[_0x21a92e(0x10c)]['setProperty'](_0x21a92e(0xc7),_0x21a92e(0xd0)+_0x5b2aea+_0x21a92e(0x113)+_0x5b2aea+_0x21a92e(0x117)+window[_0x21a92e(0xdc)](_0xfd3e8,null)[_0x21a92e(0xd2)]))):window[_0x21a92e(0xdc)](_0xfd3e8,null)[_0x21a92e(0xd2)]!==_0x21a92e(0xcc)&&(window['getComputedStyle'](_0xfd3e8,null)[_0x21a92e(0xd2)][_0x21a92e(0xb4)]('rgba(0,\x200,\x200,\x20'+_0x5b2aea+')')&&_0xfd3e8['style'][_0x21a92e(0xfc)](_0x21a92e(0xc7),window[_0x21a92e(0xdc)](_0xfd3e8,null)[_0x21a92e(0xd2)][_0x21a92e(0xc1)](_0x21a92e(0xd0)+_0x5b2aea+_0x21a92e(0x113)+_0x5b2aea+_0x21a92e(0x117),'')));}function darkmysite_img_brightness_and_grayscale(_0x89aaad){var _0x5585b0=_0x5063f8;if(document[_0x5585b0(0xfd)]('html')[0x0][_0x5585b0(0xba)][_0x5585b0(0xbe)](_0x5585b0(0xf6))){if(!_0x89aaad[_0x5585b0(0xba)][_0x5585b0(0xbe)]('darkmysite_changed_brightness_and_grayscale')){_0x89aaad[_0x5585b0(0x118)][_0x5585b0(0xc4)]=_0x89aaad[_0x5585b0(0x10c)][_0x5585b0(0xcd)],_0x89aaad['classList'][_0x5585b0(0x115)]('darkmysite_changed_brightness_and_grayscale');if(darkmysite_enable_low_image_brightness==='1'&&darkmysite_enable_image_grayscale==='1')_0x89aaad[_0x5585b0(0x10c)][_0x5585b0(0xcd)]='brightness('+darkmysite_image_brightness_to+'%)'+'\x20'+_0x5585b0(0x108)+darkmysite_image_grayscale_to+'%)';else{if(darkmysite_enable_low_image_brightness==='1')_0x89aaad[_0x5585b0(0x10c)][_0x5585b0(0xcd)]='brightness('+darkmysite_image_brightness_to+'%)';else darkmysite_enable_image_grayscale==='1'&&(_0x89aaad[_0x5585b0(0x10c)][_0x5585b0(0xcd)]=_0x5585b0(0x108)+darkmysite_image_grayscale_to+'%)');}}}else _0x89aaad['classList'][_0x5585b0(0xbe)]('darkmysite_changed_brightness_and_grayscale')&&(_0x89aaad[_0x5585b0(0x10c)][_0x5585b0(0xcd)]=_0x89aaad[_0x5585b0(0x118)][_0x5585b0(0xc4)],_0x89aaad[_0x5585b0(0xba)][_0x5585b0(0xec)](_0x5585b0(0xff)),delete _0x89aaad[_0x5585b0(0x118)]['darkmysite_preserved_filter']);}function darkmysite_invert_inline_svg(_0x318789){var _0x2c7548=_0x5063f8;document[_0x2c7548(0xfd)]('html')[0x0][_0x2c7548(0xba)][_0x2c7548(0xbe)](_0x2c7548(0xf6))?(_0x318789['style'][_0x2c7548(0xcd)]=_0x2c7548(0xac),_0x318789[_0x2c7548(0xba)][_0x2c7548(0x115)](_0x2c7548(0xe7))):_0x318789[_0x2c7548(0xba)]['contains']('darkmysite_inverted_inline_svg')&&(_0x318789[_0x2c7548(0x10c)][_0x2c7548(0xcd)]=_0x318789[_0x2c7548(0x10c)]['filter']['replace'](_0x2c7548(0xac),''),_0x318789[_0x2c7548(0xba)][_0x2c7548(0xec)]('darkmysite_inverted_inline_svg'));}function darkmysite_video_brightness_and_grayscale(_0x57920a){var _0x4fe09e=_0x5063f8;if(document['getElementsByTagName'](_0x4fe09e(0xdf))[0x0][_0x4fe09e(0xba)][_0x4fe09e(0xbe)](_0x4fe09e(0xf6))){if(!_0x57920a[_0x4fe09e(0xba)][_0x4fe09e(0xbe)]('darkmysite_changed_video_brightness_and_grayscale')){_0x57920a[_0x4fe09e(0x118)][_0x4fe09e(0xc4)]=_0x57920a['style'][_0x4fe09e(0xcd)],_0x57920a[_0x4fe09e(0xba)][_0x4fe09e(0x115)](_0x4fe09e(0x100));if(darkmysite_enable_low_video_brightness==='1'&&darkmysite_enable_video_grayscale==='1')_0x57920a[_0x4fe09e(0x10c)][_0x4fe09e(0xcd)]=_0x4fe09e(0xb1)+darkmysite_video_brightness_to+'%)'+'\x20'+_0x4fe09e(0x108)+darkmysite_video_grayscale_to+'%)';else{if(darkmysite_enable_low_video_brightness==='1')_0x57920a['style'][_0x4fe09e(0xcd)]='brightness('+darkmysite_video_brightness_to+'%)';else darkmysite_enable_video_grayscale==='1'&&(_0x57920a['style'][_0x4fe09e(0xcd)]=_0x4fe09e(0x108)+darkmysite_video_grayscale_to+'%)');}}}else _0x57920a['classList']['contains'](_0x4fe09e(0x100))&&(_0x57920a[_0x4fe09e(0x10c)][_0x4fe09e(0xcd)]=_0x57920a[_0x4fe09e(0x118)][_0x4fe09e(0xc4)],_0x57920a['classList'][_0x4fe09e(0xec)]('darkmysite_changed_video_brightness_and_grayscale'),delete _0x57920a[_0x4fe09e(0x118)]['darkmysite_preserved_filter']);}function darkmysite_fix_background_color_alpha(_0x4bbb2a){var _0x484eb3=_0x5063f8;if(document[_0x484eb3(0xfd)](_0x484eb3(0xdf))[0x0][_0x484eb3(0xba)][_0x484eb3(0xbe)]('darkmysite_dark_mode_enabled')){if(_0x4bbb2a[_0x484eb3(0xd5)](_0x484eb3(0xb6))){var _0x3a0cab=_0x4bbb2a[_0x484eb3(0x118)]['darkmysite_alpha_bg'][_0x484eb3(0xc1)]('rgba(','')['replace'](')','')[_0x484eb3(0x111)](',')[0x3][_0x484eb3(0x103)](),_0x1051c9=window[_0x484eb3(0xdc)](_0x4bbb2a,null)[_0x484eb3(0x119)];!_0x1051c9[_0x484eb3(0xb4)]('rgba')&&_0x4bbb2a[_0x484eb3(0x10c)][_0x484eb3(0xfc)](_0x484eb3(0xd4),_0x1051c9['replace'](')',',\x20'+_0x3a0cab+')')['replace'](_0x484eb3(0xc8),_0x484eb3(0xf3)),_0x484eb3(0x10d));}}else _0x4bbb2a[_0x484eb3(0xd5)](_0x484eb3(0xb6))&&(_0x4bbb2a['style'][_0x484eb3(0x119)]='');}function _0x3443(_0x328213,_0x28c3b1){var _0x5c6300=_0x5c63();return _0x3443=function(_0x34437b,_0x5b387e){_0x34437b=_0x34437b-0xa7;var _0xf308f3=_0x5c6300[_0x34437b];return _0xf308f3;},_0x3443(_0x328213,_0x28c3b1);}function darkmysite_elements_force_to_correct(_0x422f0a){var _0x164579=_0x5063f8;document['getElementsByTagName']('html')[0x0][_0x164579(0xba)]['contains'](_0x164579(0xf6))&&(_0x422f0a[_0x164579(0xd5)](_0x164579(0xfa))&&_0x422f0a[_0x164579(0xd5)](_0x164579(0x10b))&&(_0x422f0a[_0x164579(0x10c)][_0x164579(0xfc)](_0x164579(0xd4),_0x422f0a[_0x164579(0x118)]['darkmysite_preserved_bg']),_0x422f0a[_0x164579(0x10c)][_0x164579(0xfc)](_0x164579(0x11b),_0x422f0a[_0x164579(0x118)][_0x164579(0x11d)])));}function darkmysite_implement_secondary_bg(){var _0x12617f=_0x5063f8,_0x6aa10c=null,_0x4f7906=0x0,_0x24474c=document[_0x12617f(0xc3)](_0x12617f(0x110));for(var _0x2dbd34=0x0;_0x2dbd34<_0x24474c['length'];_0x2dbd34++){var _0x4fb4aa=_0x24474c[_0x2dbd34];if(_0x4fb4aa['hasAttribute'](_0x12617f(0xe6))){var _0x78cda6=_0x4fb4aa[_0x12617f(0x118)][_0x12617f(0xe8)];if(_0x78cda6!=='transparent'&&_0x78cda6!==_0x12617f(0xd8)){var _0x299758=_0x4fb4aa['getBoundingClientRect'](),_0xff0fda=_0x299758[_0x12617f(0x102)]*_0x299758['height'];_0xff0fda>_0x4f7906&&(_0x4f7906=_0xff0fda,_0x6aa10c=_0x78cda6);}}}for(var _0x2dbd34=0x0;_0x2dbd34<_0x24474c[_0x12617f(0xe4)];_0x2dbd34++){var _0x4fb4aa=_0x24474c[_0x2dbd34];if(_0x4fb4aa[_0x12617f(0xd5)](_0x12617f(0xe6))){if(_0x4fb4aa[_0x12617f(0xba)][_0x12617f(0xbe)]('darkmysite_style_all')||_0x4fb4aa[_0x12617f(0xba)][_0x12617f(0xbe)](_0x12617f(0xad))||_0x4fb4aa[_0x12617f(0xba)][_0x12617f(0xbe)]('darkmysite_style_bg_border')||_0x4fb4aa[_0x12617f(0xba)][_0x12617f(0xbe)](_0x12617f(0xdd))){var _0x5a4fde=_0x6aa10c!==_0x4fb4aa[_0x12617f(0x118)][_0x12617f(0xe8)];_0x5a4fde&&_0x4fb4aa[_0x12617f(0xba)]['add'](_0x12617f(0xde));}delete _0x4fb4aa[_0x12617f(0x118)][_0x12617f(0xe8)];}}darkmysite_secondary_bg_color=_0x6aa10c;}function darkmysite_recheck_on_css_loaded_later(){var _0x3f1151=_0x5063f8;document[_0x3f1151(0xc3)](_0x3f1151(0xef))[_0x3f1151(0xf4)](function(_0x12cf04){var _0x5ba3ec=_0x3f1151,_0x2309f0=window[_0x5ba3ec(0xdc)](_0x12cf04,null),_0x95e6c5=_0x2309f0['backgroundColor'];_0x95e6c5!==_0x5ba3ec(0xd8)&&_0x95e6c5!==_0x5ba3ec(0xd3)&&darkmysite_process_element(_0x12cf04);});}function darkmysite_check_preloading(){var _0x389fef=_0x5063f8,_0x23e85d=![],_0x5935ac=localStorage[_0x389fef(0xee)]?localStorage['darkmysite_last_state']:_0x389fef(0xc9),_0x4c2b00=localStorage[_0x389fef(0xf0)]?localStorage[_0x389fef(0xf0)]:_0x389fef(0xc9);if(darkmysite_is_this_admin_panel==='1')_0x4c2b00==='1'&&(_0x23e85d=!![]);else{if(_0x5935ac==='1'||_0x5935ac==='0')_0x5935ac==='1'&&(_0x23e85d=!![]);else{darkmysite_enable_default_dark_mode==='1'&&(_0x23e85d=!![]);if(darkmysite_enable_time_based_dark==='1'){var _0x279ecb=new Date(),_0x54c768=new Date(),_0x38623d=new Date();_0x54c768[_0x389fef(0xcb)](parseInt(darkmysite_time_based_dark_start[_0x389fef(0x111)](':')[0x0])),_0x54c768[_0x389fef(0xeb)](parseInt(darkmysite_time_based_dark_start[_0x389fef(0x111)](':')[0x1])),_0x38623d[_0x389fef(0xcb)](parseInt(darkmysite_time_based_dark_stop[_0x389fef(0x111)](':')[0x0])),_0x38623d['setMinutes'](parseInt(darkmysite_time_based_dark_stop[_0x389fef(0x111)](':')[0x1])),parseInt(darkmysite_time_based_dark_stop['split'](':')[0x0])>=parseInt(darkmysite_time_based_dark_start['split'](':')[0x0])?_0x279ecb[_0x389fef(0xd7)]()>_0x54c768['getTime']()&&_0x279ecb[_0x389fef(0xd7)]()<_0x38623d[_0x389fef(0xd7)]()&&(_0x23e85d=!![]):_0x279ecb[_0x389fef(0xb3)]()>0xc?_0x279ecb['getTime']()>_0x54c768[_0x389fef(0xd7)]()&&_0x279ecb['getTime']()>_0x38623d['getTime']()&&(_0x23e85d=!![]):_0x279ecb['getTime']()<_0x54c768[_0x389fef(0xd7)]()&&_0x279ecb[_0x389fef(0xd7)]()<_0x38623d[_0x389fef(0xd7)]()&&(_0x23e85d=!![]);}}}return darkmysite_is_this_admin_panel==='0'&&darkmysite_enable_os_aware==='1'&&(window[_0x389fef(0xf8)]&&window[_0x389fef(0xf8)](_0x389fef(0xae))[_0x389fef(0xb2)]&&(_0x5935ac!=='1'&&_0x5935ac!=='0'&&(_0x23e85d=!![]))),_0x23e85d;}function darkmysite_process_element(_0x543254){var _0x3e0d69=_0x5063f8,_0xa8ef85=window[_0x3e0d69(0xdc)](_0x543254,null);old_transition='';_0xa8ef85['transition']!==_0x3e0d69(0xa7)&&(old_transition=_0xa8ef85[_0x3e0d69(0xea)],_0x543254[_0x3e0d69(0x10c)][_0x3e0d69(0xfc)](_0x3e0d69(0xea),'none'));(_0x543254[_0x3e0d69(0xba)]['contains']('darkmysite_style_all')||_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0xbe)](_0x3e0d69(0xad))||_0x543254[_0x3e0d69(0xba)]['contains'](_0x3e0d69(0xce))||_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0xbe)](_0x3e0d69(0x106))||_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0xbe)](_0x3e0d69(0xdd))||_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0xbe)]('darkmysite_style_txt')||_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0xbe)]('darkmysite_style_border')||_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0xbe)](_0x3e0d69(0xde)))&&(_0x543254['classList'][_0x3e0d69(0xec)](_0x3e0d69(0xfe)),_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0xec)](_0x3e0d69(0xad)),_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0xec)]('darkmysite_style_bg_border'),_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0xec)](_0x3e0d69(0x106)),_0x543254['classList'][_0x3e0d69(0xec)](_0x3e0d69(0xdd)),_0x543254['classList']['remove'](_0x3e0d69(0xaf)),_0x543254['classList'][_0x3e0d69(0xec)](_0x3e0d69(0xfb)),_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0xec)](_0x3e0d69(0xde)));var _0x4f01fa=_0x543254['nodeName'][_0x3e0d69(0xe9)](),_0x47b347=_0xa8ef85[_0x3e0d69(0x119)],_0x14d2cd=_0xa8ef85[_0x3e0d69(0x11b)],_0x14654f=_0xa8ef85[_0x3e0d69(0xe5)],_0x5ae70b=_0xa8ef85[_0x3e0d69(0xd2)];_0x4f01fa===_0x3e0d69(0xb9)&&((_0x47b347===_0x3e0d69(0xd8)||_0x47b347==='rgba(255,\x20255,\x20255,\x200)')&&(_0x543254[_0x3e0d69(0x10c)]['setProperty'](_0x3e0d69(0xd4),_0x3e0d69(0xb0)),_0x47b347=window[_0x3e0d69(0xdc)](_0x543254,null)[_0x3e0d69(0x119)]));if(darkmysite_disallowed_elements[_0x3e0d69(0xe4)]>0x0){if(_0x543254[_0x3e0d69(0xb2)](darkmysite_disallowed_elements)){old_transition!==''&&_0x543254[_0x3e0d69(0x10c)][_0x3e0d69(0xfc)]('transition',old_transition);_0x543254[_0x3e0d69(0xba)]['add']('darkmysite_processed');return;}}has_background_img_url=![];_0x5ae70b!==_0x3e0d69(0xcc)&&(_0x5ae70b[_0x3e0d69(0xb4)](_0x3e0d69(0xb7))&&(has_background_img_url=!![],darkmysite_enable_bg_image_darken==='1'&&darkmysite_darken_bg_image(_0x543254,darken_level)));if(_0x47b347!==_0x3e0d69(0xd8)&&_0x47b347!==_0x3e0d69(0xd3)&&has_background_img_url===![]){!_0x543254[_0x3e0d69(0xd5)](_0x3e0d69(0xe6))&&(_0x543254[_0x3e0d69(0x118)][_0x3e0d69(0xe8)]=_0x47b347);if(darkmysite_secondary_bg_color!==''){var _0x5bad33=darkmysite_secondary_bg_color!==_0x543254[_0x3e0d69(0x118)]['darkmysite_secondary_bg_finder'];_0x5bad33&&_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0x115)](_0x3e0d69(0xde)),delete _0x543254[_0x3e0d69(0x118)][_0x3e0d69(0xe8)];}}if(_0x47b347!==_0x3e0d69(0xd8)&&_0x14d2cd!==_0x3e0d69(0xd8)&&_0x14654f!==_0x3e0d69(0xd8)&&_0x47b347!==_0x3e0d69(0xd3)&&_0x14d2cd!==_0x3e0d69(0xd3)&&_0x14654f!=='rgba(255,\x20255,\x20255,\x200)'&&has_background_img_url===![])_0x543254[_0x3e0d69(0xba)]['add'](_0x3e0d69(0xfe));else{if(_0x47b347!=='rgba(0,\x200,\x200,\x200)'&&_0x14d2cd!==_0x3e0d69(0xd8)&&_0x47b347!==_0x3e0d69(0xd3)&&_0x14d2cd!==_0x3e0d69(0xd3)&&has_background_img_url===![])_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0x115)](_0x3e0d69(0xad));else{if(_0x47b347!==_0x3e0d69(0xd8)&&_0x14654f!==_0x3e0d69(0xd8)&&_0x47b347!==_0x3e0d69(0xd3)&&_0x14654f!==_0x3e0d69(0xd3)&&has_background_img_url===![])_0x543254['classList'][_0x3e0d69(0x115)](_0x3e0d69(0xce));else{if(_0x14d2cd!==_0x3e0d69(0xd8)&&_0x14654f!==_0x3e0d69(0xd8)&&_0x14d2cd!==_0x3e0d69(0xd3)&&_0x14654f!==_0x3e0d69(0xd3))_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0x115)](_0x3e0d69(0x106));else{if(_0x47b347!==_0x3e0d69(0xd8)&&_0x47b347!=='rgba(255,\x20255,\x20255,\x200)'&&has_background_img_url===![])_0x543254[_0x3e0d69(0xba)]['add'](_0x3e0d69(0xdd));else{if(_0x14d2cd!==_0x3e0d69(0xd8)&&_0x14d2cd!==_0x3e0d69(0xd3))_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0x115)](_0x3e0d69(0xaf));else _0x14654f!==_0x3e0d69(0xd8)&&_0x14654f!==_0x3e0d69(0xd3)&&_0x543254[_0x3e0d69(0xba)]['add'](_0x3e0d69(0xfb));}}}}}_0x5ae70b!==_0x3e0d69(0xcc)&&(!has_background_img_url&&(!_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0xbe)](_0x3e0d69(0xfe))&&!_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0xbe)](_0x3e0d69(0xad))&&!_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0xbe)](_0x3e0d69(0xce))&&!_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0xbe)](_0x3e0d69(0xdd))&&_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0x115)](_0x3e0d69(0xdd))));_0x4f01fa==='a'&&_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0x115)](_0x3e0d69(0xf2));(_0x4f01fa===_0x3e0d69(0x10f)||_0x4f01fa===_0x3e0d69(0x116)||_0x4f01fa===_0x3e0d69(0xf7))&&_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0x115)](_0x3e0d69(0xf5));_0x4f01fa===_0x3e0d69(0x10e)&&_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0x115)](_0x3e0d69(0xd1));(darkmysite_enable_low_image_brightness==='1'||darkmysite_enable_image_grayscale==='1')&&(_0x4f01fa==='img'&&darkmysite_img_brightness_and_grayscale(_0x543254));darkmysite_enable_invert_inline_svg==='1'&&(_0x4f01fa===_0x3e0d69(0x104)&&darkmysite_invert_inline_svg(_0x543254));if(darkmysite_enable_low_video_brightness==='1'||darkmysite_enable_video_grayscale==='1'){_0x4f01fa===_0x3e0d69(0xe1)&&darkmysite_video_brightness_and_grayscale(_0x543254);if(_0x4f01fa===_0x3e0d69(0x101)){const _0x7a8c46=_0x543254['getAttribute'](_0x3e0d69(0xab));(_0x7a8c46[_0x3e0d69(0xb4)]('youtube')||_0x7a8c46[_0x3e0d69(0xb4)]('vimeo')||_0x7a8c46['includes'](_0x3e0d69(0x11f)))&&darkmysite_video_brightness_and_grayscale(_0x543254);}}_0x47b347['includes']('rgba')&&(_0x543254[_0x3e0d69(0x118)][_0x3e0d69(0xbf)]=_0x47b347,darkmysite_fix_background_color_alpha(_0x543254)),old_transition!==''&&setTimeout(function(){var _0x37c840=_0x3e0d69;_0x543254[_0x37c840(0x10c)][_0x37c840(0xfc)]('transition',old_transition);},0x0),setTimeout(function(){var _0x1bffb9=_0x3e0d69;elements_class_changed[_0x1bffb9(0xf9)](_0x543254,{'attributes':!![],'attributeFilter':[_0x1bffb9(0xbc)]});},0x0),_0x543254[_0x3e0d69(0xba)][_0x3e0d69(0x115)](_0x3e0d69(0x10a));}function darkmysite_init_processes(){var _0x339986=_0x5063f8;has_process_run_at_least_once=!![],document[_0x339986(0xc3)]('*\x20:not(head,\x20title,\x20link,\x20meta,\x20script,\x20style,\x20defs,\x20filter,\x20.darkmysite_processed)')[_0x339986(0xf4)](function(_0x3e38af){darkmysite_process_element(_0x3e38af);});}function darkmysite_init_observer(){var _0x127220=_0x5063f8;darkmysite_observer[_0x127220(0xf9)](document,{'attributes':![],'childList':!![],'characterData':![],'subtree':!![]}),dark_mode_status_changed[_0x127220(0xf9)](document[_0x127220(0xfd)](_0x127220(0xdf))[0x0],{'attributes':!![]}),document['readyState']!==_0x127220(0xc0)?(!has_process_run_at_least_once&&darkmysite_init_processes(),darkmysite_implement_secondary_bg(),darkmysite_recheck_on_css_loaded_later()):document['addEventListener'](_0x127220(0xc5),function(){!has_process_run_at_least_once&&darkmysite_init_processes(),darkmysite_implement_secondary_bg(),darkmysite_recheck_on_css_loaded_later();});}darkmysite_check_preloading()&&(document[_0x5063f8(0xfd)](_0x5063f8(0xdf))[0x0][_0x5063f8(0xba)][_0x5063f8(0x115)](_0x5063f8(0xf6)),darkmysite_init_observer());
     1var _0x5b71d2=_0x57f7;(function(_0x41b4aa,_0xaaafbd){var _0x4a795a=_0x57f7,_0x10cb31=_0x41b4aa();while(!![]){try{var _0x13fc2e=-parseInt(_0x4a795a(0xdc))/0x1+-parseInt(_0x4a795a(0xf8))/0x2*(-parseInt(_0x4a795a(0xc3))/0x3)+parseInt(_0x4a795a(0x112))/0x4+parseInt(_0x4a795a(0xc9))/0x5*(parseInt(_0x4a795a(0xda))/0x6)+-parseInt(_0x4a795a(0x104))/0x7*(-parseInt(_0x4a795a(0xd4))/0x8)+-parseInt(_0x4a795a(0x11d))/0x9+parseInt(_0x4a795a(0x10c))/0xa*(-parseInt(_0x4a795a(0xf3))/0xb);if(_0x13fc2e===_0xaaafbd)break;else _0x10cb31['push'](_0x10cb31['shift']());}catch(_0x26c0ee){_0x10cb31['push'](_0x10cb31['shift']());}}}(_0x46cd,0x82684));var has_process_run_at_least_once=![],old_transition='',has_background_img_url=![],darken_level=parseInt(darkmysite_bg_image_darken_to)/0x64;darken_level=darken_level[_0x5b71d2(0xc2)](0x1);var darkmysite_secondary_bg_color='';darkmysite_init_keyboard_shortcut_listener(),darkmysite_init_os_mode_change_listener();const darkmysite_observer=new MutationObserver(function(_0x10e35d){darkmysite_init_processes();}),elements_class_changed=new MutationObserver(_0x591d51=>{var _0x28e36a=_0x5b71d2;document['readyState']!==_0x28e36a(0xf6)&&_0x591d51[_0x28e36a(0xd5)](_0x393a62=>{var _0x3e2417=_0x28e36a;if(_0x393a62['target'][_0x3e2417(0xc5)][_0x3e2417(0xed)]('darkmysite_processed')){if(!_0x393a62[_0x3e2417(0xcc)][_0x3e2417(0x134)](_0x3e2417(0xd3)))_0x393a62[_0x3e2417(0xcc)]['dataset'][_0x3e2417(0x10e)]=_0x393a62[_0x3e2417(0xcc)][_0x3e2417(0xc5)][_0x3e2417(0x109)]();else{if(_0x393a62[_0x3e2417(0xcc)]['dataset'][_0x3e2417(0x10e)]===_0x393a62[_0x3e2417(0xcc)]['classList'][_0x3e2417(0x109)]())return;}_0x393a62[_0x3e2417(0xcc)][_0x3e2417(0xea)]['darkmysite_preserved_classes']=_0x393a62[_0x3e2417(0xcc)][_0x3e2417(0xc5)][_0x3e2417(0x109)](),elements_class_changed[_0x3e2417(0x133)](),_0x393a62[_0x3e2417(0xcc)][_0x3e2417(0xc5)]['remove'](_0x3e2417(0x10a)),darkmysite_process_element(_0x393a62['target']),document['querySelectorAll'](_0x3e2417(0x103))[_0x3e2417(0xd5)](function(_0x4a4524){var _0x582caa=_0x3e2417;elements_class_changed['observe'](_0x4a4524,{'attributes':!![],'attributeFilter':[_0x582caa(0xe1)]});});}});}),dark_mode_status_changed=new MutationObserver(_0x12f78e=>{_0x12f78e['forEach'](_0x31801d=>{var _0x2433de=_0x57f7;_0x31801d[_0x2433de(0xd2)]===_0x2433de(0x115)&&_0x31801d['attributeName']===_0x2433de(0xe1)&&document[_0x2433de(0x11e)](_0x2433de(0x103))['forEach'](function(_0x1127f7){var _0x50b6a7=_0x2433de;if(_0x1127f7['classList'][_0x50b6a7(0xed)]('darkmysite_processed')){if(darkmysite_disallowed_elements[_0x50b6a7(0x12b)]>0x0){if(_0x1127f7[_0x50b6a7(0xc6)](darkmysite_disallowed_elements))return;}darkmysite_enable_bg_image_darken==='1'&&darkmysite_darken_bg_image(_0x1127f7,darken_level);(darkmysite_enable_low_image_brightness==='1'||darkmysite_enable_image_grayscale==='1')&&(_0x1127f7['nodeName'][_0x50b6a7(0x12f)]()==='img'&&darkmysite_img_brightness_and_grayscale(_0x1127f7));darkmysite_enable_invert_inline_svg==='1'&&(_0x1127f7['nodeName'][_0x50b6a7(0x12f)]()===_0x50b6a7(0xe6)&&darkmysite_invert_inline_svg(_0x1127f7));if(darkmysite_enable_low_video_brightness==='1'||darkmysite_enable_video_grayscale==='1'){_0x1127f7[_0x50b6a7(0xf1)][_0x50b6a7(0x12f)]()===_0x50b6a7(0x118)&&darkmysite_video_brightness_and_grayscale(_0x1127f7);if(_0x1127f7[_0x50b6a7(0xf1)][_0x50b6a7(0x12f)]()==='iframe'){const _0x5c78a5=_0x1127f7[_0x50b6a7(0xde)](_0x50b6a7(0xfb));(_0x5c78a5['includes'](_0x50b6a7(0xe5))||_0x5c78a5[_0x50b6a7(0x102)](_0x50b6a7(0xdf))||_0x5c78a5['includes'](_0x50b6a7(0x132)))&&darkmysite_video_brightness_and_grayscale(_0x1127f7);}}_0x1127f7['hasAttribute'](_0x50b6a7(0x119))&&darkmysite_fix_background_color_alpha(_0x1127f7);}});});});function darkmysite_change_state(){'use strict';var _0x2d1270=_0x5b71d2;darkmysite_is_this_admin_panel==='1'?localStorage[_0x2d1270(0x121)]=document['getElementsByTagName'](_0x2d1270(0x10b))[0x0][_0x2d1270(0xc5)][_0x2d1270(0xed)](_0x2d1270(0xe7))?'1':'0':localStorage['darkmysite_last_state']=document[_0x2d1270(0x116)](_0x2d1270(0x10b))[0x0][_0x2d1270(0xc5)][_0x2d1270(0xed)](_0x2d1270(0xe7))?'1':'0';}function darkmysite_switch_trigger(){'use strict';var _0x25cc1d=_0x5b71d2;!has_process_run_at_least_once&&(darkmysite_init_processes(),darkmysite_init_observer()),document[_0x25cc1d(0x116)]('html')[0x0][_0x25cc1d(0xc5)][_0x25cc1d(0xed)](_0x25cc1d(0xe7))?document[_0x25cc1d(0x116)]('html')[0x0][_0x25cc1d(0xc5)]['remove'](_0x25cc1d(0xe7)):document[_0x25cc1d(0x116)](_0x25cc1d(0x10b))[0x0][_0x25cc1d(0xc5)][_0x25cc1d(0xef)](_0x25cc1d(0xe7)),darkmysite_change_state();}function darkmysite_init_keyboard_shortcut_listener(){var _0x59ac7a=_0x5b71d2;darkmysite_enable_keyboard_shortcut==='1'&&(document[_0x59ac7a(0x113)]=function(_0x25a4a2){var _0x4e7e20=_0x59ac7a;if(!_0x25a4a2)_0x25a4a2=event;_0x25a4a2[_0x4e7e20(0x12e)]&&_0x25a4a2['altKey']&&_0x25a4a2[_0x4e7e20(0x11c)]===0x44&&darkmysite_switch_trigger();});}function darkmysite_init_os_mode_change_listener(){var _0x4a9f06=_0x5b71d2;darkmysite_is_this_admin_panel==='0'&&darkmysite_enable_os_aware==='1'&&window[_0x4a9f06(0xe3)](_0x4a9f06(0xfd))[_0x4a9f06(0x138)](_0x4a9f06(0x11f),_0x4b7848=>{var _0x1d67d4=_0x4a9f06,_0x4e08d4=_0x4b7848[_0x1d67d4(0xc6)]?_0x1d67d4(0xd8):_0x1d67d4(0x137);if(_0x4e08d4===_0x1d67d4(0xd8))document[_0x1d67d4(0x116)](_0x1d67d4(0x10b))[0x0]['classList'][_0x1d67d4(0xef)](_0x1d67d4(0xe7));else _0x4e08d4===_0x1d67d4(0x137)&&document[_0x1d67d4(0x116)]('html')[0x0][_0x1d67d4(0xc5)][_0x1d67d4(0xf0)]('darkmysite_dark_mode_enabled');darkmysite_change_state();});}function darkmysite_init_alternative_dark_mode_switch(){var _0x4048b3=_0x5b71d2;if(darkmysite_alternative_dark_mode_switch[_0x4048b3(0x12b)]>0x0){const _0xd4d6b3=document[_0x4048b3(0x11e)](darkmysite_alternative_dark_mode_switch);for(let _0x5cbec4=0x0;_0x5cbec4<_0xd4d6b3[_0x4048b3(0x12b)];_0x5cbec4++){const _0x36c2d2=_0xd4d6b3[_0x5cbec4];_0x36c2d2[_0x4048b3(0x138)](_0x4048b3(0x106),()=>{darkmysite_switch_trigger();});}}}function darkmysite_darken_bg_image(_0x497ecf,_0x44f62e){var _0x18a48e=_0x5b71d2;document[_0x18a48e(0x116)](_0x18a48e(0x10b))[0x0][_0x18a48e(0xc5)][_0x18a48e(0xed)]('darkmysite_dark_mode_enabled')?window[_0x18a48e(0xcd)](_0x497ecf,null)['backgroundImage']!==_0x18a48e(0x139)&&(window['getComputedStyle'](_0x497ecf,null)[_0x18a48e(0xff)][_0x18a48e(0x102)](_0x18a48e(0xc8))&&(!window[_0x18a48e(0xcd)](_0x497ecf,null)[_0x18a48e(0xff)][_0x18a48e(0x102)]('rgba(0,\x200,\x200,\x20'+_0x44f62e+')')&&_0x497ecf['style']['setProperty']('background-image',_0x18a48e(0x107)+_0x44f62e+'),\x20rgba(0,\x200,\x200,\x20'+_0x44f62e+_0x18a48e(0xf2)+window[_0x18a48e(0xcd)](_0x497ecf,null)[_0x18a48e(0xff)]))):window[_0x18a48e(0xcd)](_0x497ecf,null)[_0x18a48e(0xff)]!==_0x18a48e(0x139)&&(window[_0x18a48e(0xcd)](_0x497ecf,null)[_0x18a48e(0xff)][_0x18a48e(0x102)](_0x18a48e(0xf5)+_0x44f62e+')')&&_0x497ecf[_0x18a48e(0x120)][_0x18a48e(0x101)]('background-image',window[_0x18a48e(0xcd)](_0x497ecf,null)[_0x18a48e(0xff)][_0x18a48e(0xc7)](_0x18a48e(0x107)+_0x44f62e+_0x18a48e(0x126)+_0x44f62e+_0x18a48e(0xf2),'')));}function darkmysite_img_brightness_and_grayscale(_0x2d0ca1){var _0x38fd2a=_0x5b71d2;if(document['getElementsByTagName'](_0x38fd2a(0x10b))[0x0][_0x38fd2a(0xc5)][_0x38fd2a(0xed)]('darkmysite_dark_mode_enabled')){if(!_0x2d0ca1['classList']['contains'](_0x38fd2a(0x122))){_0x2d0ca1[_0x38fd2a(0xea)][_0x38fd2a(0xe4)]=_0x2d0ca1[_0x38fd2a(0x120)][_0x38fd2a(0x100)],_0x2d0ca1['classList']['add']('darkmysite_changed_brightness_and_grayscale');if(darkmysite_enable_low_image_brightness==='1'&&darkmysite_enable_image_grayscale==='1')_0x2d0ca1[_0x38fd2a(0x120)][_0x38fd2a(0x100)]=_0x38fd2a(0x136)+darkmysite_image_brightness_to+'%)'+'\x20'+'grayscale('+darkmysite_image_grayscale_to+'%)';else{if(darkmysite_enable_low_image_brightness==='1')_0x2d0ca1[_0x38fd2a(0x120)]['filter']=_0x38fd2a(0x136)+darkmysite_image_brightness_to+'%)';else darkmysite_enable_image_grayscale==='1'&&(_0x2d0ca1[_0x38fd2a(0x120)][_0x38fd2a(0x100)]=_0x38fd2a(0xe9)+darkmysite_image_grayscale_to+'%)');}}}else _0x2d0ca1['classList'][_0x38fd2a(0xed)](_0x38fd2a(0x122))&&(_0x2d0ca1[_0x38fd2a(0x120)][_0x38fd2a(0x100)]=_0x2d0ca1[_0x38fd2a(0xea)]['darkmysite_preserved_filter'],_0x2d0ca1[_0x38fd2a(0xc5)]['remove']('darkmysite_changed_brightness_and_grayscale'),delete _0x2d0ca1[_0x38fd2a(0xea)][_0x38fd2a(0xe4)]);}function darkmysite_invert_inline_svg(_0x19b49d){var _0x232195=_0x5b71d2;document[_0x232195(0x116)](_0x232195(0x10b))[0x0][_0x232195(0xc5)][_0x232195(0xed)](_0x232195(0xe7))?(_0x19b49d[_0x232195(0x120)][_0x232195(0x100)]=_0x232195(0x130),_0x19b49d[_0x232195(0xc5)][_0x232195(0xef)](_0x232195(0x11a))):_0x19b49d[_0x232195(0xc5)]['contains'](_0x232195(0x11a))&&(_0x19b49d[_0x232195(0x120)][_0x232195(0x100)]=_0x19b49d[_0x232195(0x120)][_0x232195(0x100)][_0x232195(0xc7)](_0x232195(0x130),''),_0x19b49d[_0x232195(0xc5)][_0x232195(0xf0)](_0x232195(0x11a)));}function darkmysite_video_brightness_and_grayscale(_0x269baa){var _0x55ec32=_0x5b71d2;if(document[_0x55ec32(0x116)](_0x55ec32(0x10b))[0x0][_0x55ec32(0xc5)]['contains'](_0x55ec32(0xe7))){if(!_0x269baa[_0x55ec32(0xc5)][_0x55ec32(0xed)]('darkmysite_changed_video_brightness_and_grayscale')){_0x269baa[_0x55ec32(0xea)][_0x55ec32(0xe4)]=_0x269baa[_0x55ec32(0x120)][_0x55ec32(0x100)],_0x269baa[_0x55ec32(0xc5)][_0x55ec32(0xef)](_0x55ec32(0xcb));if(darkmysite_enable_low_video_brightness==='1'&&darkmysite_enable_video_grayscale==='1')_0x269baa['style'][_0x55ec32(0x100)]=_0x55ec32(0x136)+darkmysite_video_brightness_to+'%)'+'\x20'+'grayscale('+darkmysite_video_grayscale_to+'%)';else{if(darkmysite_enable_low_video_brightness==='1')_0x269baa[_0x55ec32(0x120)]['filter']=_0x55ec32(0x136)+darkmysite_video_brightness_to+'%)';else darkmysite_enable_video_grayscale==='1'&&(_0x269baa['style']['filter']=_0x55ec32(0xe9)+darkmysite_video_grayscale_to+'%)');}}}else _0x269baa['classList']['contains'](_0x55ec32(0xcb))&&(_0x269baa[_0x55ec32(0x120)][_0x55ec32(0x100)]=_0x269baa['dataset']['darkmysite_preserved_filter'],_0x269baa[_0x55ec32(0xc5)]['remove']('darkmysite_changed_video_brightness_and_grayscale'),delete _0x269baa[_0x55ec32(0xea)][_0x55ec32(0xe4)]);}function darkmysite_fix_background_color_alpha(_0x18a1c9){var _0xb487e9=_0x5b71d2;if(document[_0xb487e9(0x116)](_0xb487e9(0x10b))[0x0][_0xb487e9(0xc5)][_0xb487e9(0xed)]('darkmysite_dark_mode_enabled')){if(_0x18a1c9[_0xb487e9(0x134)](_0xb487e9(0x119))){var _0x5a464a=_0x18a1c9['dataset'][_0xb487e9(0x131)][_0xb487e9(0xc7)](_0xb487e9(0x10f),'')[_0xb487e9(0xc7)](')','')['split'](',')[0x3][_0xb487e9(0x13b)](),_0x3ff341=window[_0xb487e9(0xcd)](_0x18a1c9,null)[_0xb487e9(0x13a)];!_0x3ff341[_0xb487e9(0x102)](_0xb487e9(0xf4))&&_0x18a1c9['style'][_0xb487e9(0x101)](_0xb487e9(0x114),_0x3ff341[_0xb487e9(0xc7)](')',',\x20'+_0x5a464a+')')[_0xb487e9(0xc7)](_0xb487e9(0xf7),_0xb487e9(0xf4)),_0xb487e9(0xfa));}}else _0x18a1c9['hasAttribute'](_0xb487e9(0x119))&&(_0x18a1c9[_0xb487e9(0x120)]['backgroundColor']='');}function darkmysite_elements_force_to_correct(_0x5417e0){var _0x11ac76=_0x5b71d2;document[_0x11ac76(0x116)](_0x11ac76(0x10b))[0x0][_0x11ac76(0xc5)][_0x11ac76(0xed)](_0x11ac76(0xe7))&&(_0x5417e0['hasAttribute'](_0x11ac76(0xf9))&&_0x5417e0[_0x11ac76(0x134)]('data-darkmysite_preserved_color')&&(_0x5417e0[_0x11ac76(0x120)][_0x11ac76(0x101)](_0x11ac76(0x114),_0x5417e0[_0x11ac76(0xea)]['darkmysite_preserved_bg']),_0x5417e0[_0x11ac76(0x120)][_0x11ac76(0x101)](_0x11ac76(0xec),_0x5417e0['dataset'][_0x11ac76(0xe0)])));}function darkmysite_implement_secondary_bg(){var _0x52e1f1=_0x5b71d2,_0x27d404=null,_0x1d0b21=0x0,_0x5eb217=document[_0x52e1f1(0x11e)]('*\x20:not(head,\x20title,\x20link,\x20meta,\x20script,\x20style,\x20defs,\x20filter)');for(var _0x1218fd=0x0;_0x1218fd<_0x5eb217[_0x52e1f1(0x12b)];_0x1218fd++){var _0x1a909b=_0x5eb217[_0x1218fd];if(_0x1a909b[_0x52e1f1(0x134)](_0x52e1f1(0xfc))){var _0x50f569=_0x1a909b[_0x52e1f1(0xea)][_0x52e1f1(0x110)];if(_0x50f569!==_0x52e1f1(0xca)&&_0x50f569!==_0x52e1f1(0x108)){var _0x23a5dc=_0x1a909b['getBoundingClientRect'](),_0x27f4ef=_0x23a5dc[_0x52e1f1(0xee)]*_0x23a5dc[_0x52e1f1(0xeb)];_0x27f4ef>_0x1d0b21&&(_0x1d0b21=_0x27f4ef,_0x27d404=_0x50f569);}}}for(var _0x1218fd=0x0;_0x1218fd<_0x5eb217[_0x52e1f1(0x12b)];_0x1218fd++){var _0x1a909b=_0x5eb217[_0x1218fd];if(_0x1a909b[_0x52e1f1(0x134)](_0x52e1f1(0xfc))){if(_0x1a909b[_0x52e1f1(0xc5)][_0x52e1f1(0xed)](_0x52e1f1(0x117))||_0x1a909b[_0x52e1f1(0xc5)]['contains'](_0x52e1f1(0xe8))||_0x1a909b[_0x52e1f1(0xc5)][_0x52e1f1(0xed)](_0x52e1f1(0x11b))||_0x1a909b[_0x52e1f1(0xc5)]['contains'](_0x52e1f1(0x124))){var _0x3788b2=_0x27d404!==_0x1a909b[_0x52e1f1(0xea)][_0x52e1f1(0x110)];_0x3788b2&&_0x1a909b[_0x52e1f1(0xc5)][_0x52e1f1(0xef)](_0x52e1f1(0xd9));}delete _0x1a909b[_0x52e1f1(0xea)][_0x52e1f1(0x110)];}}darkmysite_secondary_bg_color=_0x27d404;}function _0x57f7(_0x28418a,_0x3796f4){var _0x46cd21=_0x46cd();return _0x57f7=function(_0x57f742,_0x5dd841){_0x57f742=_0x57f742-0xc2;var _0x51c1c1=_0x46cd21[_0x57f742];return _0x51c1c1;},_0x57f7(_0x28418a,_0x3796f4);}function _0x46cd(){var _0x372aa7=['ctrlKey','toLowerCase','invert(1)','darkmysite_alpha_bg','dailymotion','disconnect','hasAttribute','transition','brightness(','light','addEventListener','none','backgroundColor','trim','select','toFixed','106599WSgCcE','darkmysite_style_txt_border','classList','matches','replace','url','3117925RazMbJ','transparent','darkmysite_changed_video_brightness_and_grayscale','target','getComputedStyle','textarea','body','img','setHours','type','data-darkmysite_preserved_classes','32rDKIAV','forEach','darkmysite_last_state','getTime','dark','darkmysite_style_secondary_bg','6GsrYmi','all\x200s\x20ease\x200s','3723umsNRm','darkmysite_style_button','getAttribute','vimeo','darkmysite_preserved_color','class','split','matchMedia','darkmysite_preserved_filter','youtube','svg','darkmysite_dark_mode_enabled','darkmysite_style_bg_txt','grayscale(','dataset','height','color','contains','width','add','remove','nodeName',')),\x20','11CYFVdJ','rgba','rgba(0,\x200,\x200,\x20','loading','rgb','46PXfscv','data-darkmysite_preserved_bg','important','src','data-darkmysite_secondary_bg_finder','(prefers-color-scheme:\x20dark)','getHours','backgroundImage','filter','setProperty','includes','*\x20:not(head,\x20title,\x20link,\x20meta,\x20script,\x20style,\x20defs,\x20filter)','643489zoXuez','input','click','linear-gradient(rgba(0,\x200,\x200,\x20','rgba(0,\x200,\x200,\x200)','toString','darkmysite_processed','html','11618450DkNHWu','observe','darkmysite_preserved_classes','rgba(','darkmysite_secondary_bg_finder','rgba(255,\x20255,\x20255,\x200)','2487560IdPOJq','onkeydown','background-color','attributes','getElementsByTagName','darkmysite_style_all','video','data-darkmysite_alpha_bg','darkmysite_inverted_inline_svg','darkmysite_style_bg_border','keyCode','6576534IWnCgA','querySelectorAll','change','style','darkmysite_admin_panel_last_state','darkmysite_changed_brightness_and_grayscale','darkmysite_style_form_element','darkmysite_style_bg','darkmysite_style_border','),\x20rgba(0,\x200,\x200,\x20','setMinutes','darkmysite_style_txt','rgb(255,\x20255,\x20255)','button','length','iframe','not_set'];_0x46cd=function(){return _0x372aa7;};return _0x46cd();}function darkmysite_recheck_on_css_loaded_later(){var _0x1d9f42=_0x5b71d2;document[_0x1d9f42(0x11e)]('.darkmysite_style_txt_border,\x20.darkmysite_style_txt,\x20.darkmysite_style_border')['forEach'](function(_0xa5752a){var _0x145350=_0x1d9f42,_0x40f0e9=window['getComputedStyle'](_0xa5752a,null),_0x70a625=_0x40f0e9[_0x145350(0x13a)];_0x70a625!==_0x145350(0x108)&&_0x70a625!=='rgba(255,\x20255,\x20255,\x200)'&&darkmysite_process_element(_0xa5752a);});}function darkmysite_check_preloading(){var _0x50f07e=_0x5b71d2,_0x5d690e=![],_0x22383a=localStorage[_0x50f07e(0xd6)]?localStorage['darkmysite_last_state']:_0x50f07e(0x12d),_0x3ed9cf=localStorage[_0x50f07e(0x121)]?localStorage['darkmysite_admin_panel_last_state']:_0x50f07e(0x12d);if(darkmysite_is_this_admin_panel==='1')_0x3ed9cf==='1'&&(_0x5d690e=!![]);else{if(_0x22383a==='1'||_0x22383a==='0')_0x22383a==='1'&&(_0x5d690e=!![]);else{darkmysite_enable_default_dark_mode==='1'&&(_0x5d690e=!![]);if(darkmysite_enable_time_based_dark==='1'){var _0x3023ef=new Date(),_0x3ef2ea=new Date(),_0x350b5f=new Date();_0x3ef2ea[_0x50f07e(0xd1)](parseInt(darkmysite_time_based_dark_start['split'](':')[0x0])),_0x3ef2ea[_0x50f07e(0x127)](parseInt(darkmysite_time_based_dark_start[_0x50f07e(0xe2)](':')[0x1])),_0x350b5f[_0x50f07e(0xd1)](parseInt(darkmysite_time_based_dark_stop[_0x50f07e(0xe2)](':')[0x0])),_0x350b5f['setMinutes'](parseInt(darkmysite_time_based_dark_stop[_0x50f07e(0xe2)](':')[0x1])),parseInt(darkmysite_time_based_dark_stop[_0x50f07e(0xe2)](':')[0x0])>=parseInt(darkmysite_time_based_dark_start[_0x50f07e(0xe2)](':')[0x0])?_0x3023ef[_0x50f07e(0xd7)]()>_0x3ef2ea[_0x50f07e(0xd7)]()&&_0x3023ef[_0x50f07e(0xd7)]()<_0x350b5f[_0x50f07e(0xd7)]()&&(_0x5d690e=!![]):_0x3023ef[_0x50f07e(0xfe)]()>0xc?_0x3023ef['getTime']()>_0x3ef2ea['getTime']()&&_0x3023ef[_0x50f07e(0xd7)]()>_0x350b5f[_0x50f07e(0xd7)]()&&(_0x5d690e=!![]):_0x3023ef[_0x50f07e(0xd7)]()<_0x3ef2ea[_0x50f07e(0xd7)]()&&_0x3023ef[_0x50f07e(0xd7)]()<_0x350b5f[_0x50f07e(0xd7)]()&&(_0x5d690e=!![]);}}}return darkmysite_is_this_admin_panel==='0'&&darkmysite_enable_os_aware==='1'&&(window[_0x50f07e(0xe3)]&&window[_0x50f07e(0xe3)](_0x50f07e(0xfd))['matches']&&(_0x22383a!=='1'&&_0x22383a!=='0'&&(_0x5d690e=!![]))),_0x5d690e;}function darkmysite_process_element(_0x5f3e50){var _0x4e58af=_0x5b71d2,_0x228874=window[_0x4e58af(0xcd)](_0x5f3e50,null);old_transition='';_0x228874['transition']!==_0x4e58af(0xdb)&&(old_transition=_0x228874[_0x4e58af(0x135)],_0x5f3e50['style'][_0x4e58af(0x101)](_0x4e58af(0x135),'none'));(_0x5f3e50['classList'][_0x4e58af(0xed)](_0x4e58af(0x117))||_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xed)](_0x4e58af(0xe8))||_0x5f3e50['classList']['contains']('darkmysite_style_bg_border')||_0x5f3e50['classList'][_0x4e58af(0xed)](_0x4e58af(0xc4))||_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xed)](_0x4e58af(0x124))||_0x5f3e50['classList']['contains'](_0x4e58af(0x128))||_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xed)](_0x4e58af(0x125))||_0x5f3e50['classList'][_0x4e58af(0xed)]('darkmysite_style_secondary_bg'))&&(_0x5f3e50['classList'][_0x4e58af(0xf0)]('darkmysite_style_all'),_0x5f3e50[_0x4e58af(0xc5)]['remove'](_0x4e58af(0xe8)),_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xf0)](_0x4e58af(0x11b)),_0x5f3e50['classList'][_0x4e58af(0xf0)](_0x4e58af(0xc4)),_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xf0)]('darkmysite_style_bg'),_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xf0)]('darkmysite_style_txt'),_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xf0)](_0x4e58af(0x125)),_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xf0)](_0x4e58af(0xd9)));var _0x2ea588=_0x5f3e50[_0x4e58af(0xf1)][_0x4e58af(0x12f)](),_0x10195b=_0x228874[_0x4e58af(0x13a)],_0x4a7853=_0x228874[_0x4e58af(0xec)],_0x5998da=_0x228874['borderColor'],_0x37d638=_0x228874[_0x4e58af(0xff)];_0x2ea588===_0x4e58af(0xcf)&&((_0x10195b==='rgba(0,\x200,\x200,\x200)'||_0x10195b===_0x4e58af(0x111))&&(_0x5f3e50[_0x4e58af(0x120)][_0x4e58af(0x101)]('background-color',_0x4e58af(0x129)),_0x10195b=window[_0x4e58af(0xcd)](_0x5f3e50,null)[_0x4e58af(0x13a)]));if(darkmysite_disallowed_elements['length']>0x0){if(_0x5f3e50[_0x4e58af(0xc6)](darkmysite_disallowed_elements)){old_transition!==''&&_0x5f3e50[_0x4e58af(0x120)][_0x4e58af(0x101)](_0x4e58af(0x135),old_transition);_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xef)](_0x4e58af(0x10a));return;}}has_background_img_url=![];_0x37d638!==_0x4e58af(0x139)&&(_0x37d638[_0x4e58af(0x102)](_0x4e58af(0xc8))&&(has_background_img_url=!![],darkmysite_enable_bg_image_darken==='1'&&darkmysite_darken_bg_image(_0x5f3e50,darken_level)));if(_0x10195b!==_0x4e58af(0x108)&&_0x10195b!==_0x4e58af(0x111)&&has_background_img_url===![]){!_0x5f3e50[_0x4e58af(0x134)](_0x4e58af(0xfc))&&(_0x5f3e50[_0x4e58af(0xea)][_0x4e58af(0x110)]=_0x10195b);if(darkmysite_secondary_bg_color!==''){var _0x317f3e=darkmysite_secondary_bg_color!==_0x5f3e50[_0x4e58af(0xea)][_0x4e58af(0x110)];_0x317f3e&&_0x5f3e50[_0x4e58af(0xc5)]['add'](_0x4e58af(0xd9)),delete _0x5f3e50[_0x4e58af(0xea)][_0x4e58af(0x110)];}}if(_0x10195b!==_0x4e58af(0x108)&&_0x4a7853!=='rgba(0,\x200,\x200,\x200)'&&_0x5998da!==_0x4e58af(0x108)&&_0x10195b!==_0x4e58af(0x111)&&_0x4a7853!==_0x4e58af(0x111)&&_0x5998da!==_0x4e58af(0x111)&&has_background_img_url===![])_0x5f3e50['classList'][_0x4e58af(0xef)]('darkmysite_style_all');else{if(_0x10195b!==_0x4e58af(0x108)&&_0x4a7853!==_0x4e58af(0x108)&&_0x10195b!==_0x4e58af(0x111)&&_0x4a7853!==_0x4e58af(0x111)&&has_background_img_url===![])_0x5f3e50[_0x4e58af(0xc5)]['add']('darkmysite_style_bg_txt');else{if(_0x10195b!==_0x4e58af(0x108)&&_0x5998da!=='rgba(0,\x200,\x200,\x200)'&&_0x10195b!=='rgba(255,\x20255,\x20255,\x200)'&&_0x5998da!==_0x4e58af(0x111)&&has_background_img_url===![])_0x5f3e50['classList'][_0x4e58af(0xef)](_0x4e58af(0x11b));else{if(_0x4a7853!=='rgba(0,\x200,\x200,\x200)'&&_0x5998da!=='rgba(0,\x200,\x200,\x200)'&&_0x4a7853!==_0x4e58af(0x111)&&_0x5998da!=='rgba(255,\x20255,\x20255,\x200)')_0x5f3e50['classList'][_0x4e58af(0xef)](_0x4e58af(0xc4));else{if(_0x10195b!==_0x4e58af(0x108)&&_0x10195b!=='rgba(255,\x20255,\x20255,\x200)'&&has_background_img_url===![])_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xef)]('darkmysite_style_bg');else{if(_0x4a7853!==_0x4e58af(0x108)&&_0x4a7853!==_0x4e58af(0x111))_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xef)]('darkmysite_style_txt');else _0x5998da!==_0x4e58af(0x108)&&_0x5998da!==_0x4e58af(0x111)&&_0x5f3e50['classList'][_0x4e58af(0xef)](_0x4e58af(0x125));}}}}}_0x37d638!=='none'&&(!has_background_img_url&&(!_0x5f3e50['classList'][_0x4e58af(0xed)](_0x4e58af(0x117))&&!_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xed)]('darkmysite_style_bg_txt')&&!_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xed)]('darkmysite_style_bg_border')&&!_0x5f3e50['classList'][_0x4e58af(0xed)](_0x4e58af(0x124))&&_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xef)](_0x4e58af(0x124))));_0x2ea588==='a'&&_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xef)]('darkmysite_style_link');(_0x2ea588===_0x4e58af(0x105)||_0x2ea588===_0x4e58af(0x13c)||_0x2ea588===_0x4e58af(0xce))&&_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xef)](_0x4e58af(0x123));_0x2ea588===_0x4e58af(0x12a)&&_0x5f3e50['classList']['add'](_0x4e58af(0xdd));(darkmysite_enable_low_image_brightness==='1'||darkmysite_enable_image_grayscale==='1')&&(_0x2ea588===_0x4e58af(0xd0)&&darkmysite_img_brightness_and_grayscale(_0x5f3e50));darkmysite_enable_invert_inline_svg==='1'&&(_0x2ea588===_0x4e58af(0xe6)&&darkmysite_invert_inline_svg(_0x5f3e50));if(darkmysite_enable_low_video_brightness==='1'||darkmysite_enable_video_grayscale==='1'){_0x2ea588==='video'&&darkmysite_video_brightness_and_grayscale(_0x5f3e50);if(_0x2ea588===_0x4e58af(0x12c)){const _0x35babb=_0x5f3e50[_0x4e58af(0xde)]('src');(_0x35babb[_0x4e58af(0x102)](_0x4e58af(0xe5))||_0x35babb[_0x4e58af(0x102)](_0x4e58af(0xdf))||_0x35babb[_0x4e58af(0x102)]('dailymotion'))&&darkmysite_video_brightness_and_grayscale(_0x5f3e50);}}_0x10195b[_0x4e58af(0x102)](_0x4e58af(0xf4))&&(_0x5f3e50[_0x4e58af(0xea)][_0x4e58af(0x131)]=_0x10195b,darkmysite_fix_background_color_alpha(_0x5f3e50)),old_transition!==''&&setTimeout(function(){var _0x63b94d=_0x4e58af;_0x5f3e50[_0x63b94d(0x120)][_0x63b94d(0x101)](_0x63b94d(0x135),old_transition);},0x0),setTimeout(function(){var _0x2abf58=_0x4e58af;elements_class_changed[_0x2abf58(0x10d)](_0x5f3e50,{'attributes':!![],'attributeFilter':[_0x2abf58(0xe1)]});},0x0),_0x5f3e50[_0x4e58af(0xc5)][_0x4e58af(0xef)](_0x4e58af(0x10a));}function darkmysite_init_processes(){var _0x4e4a6d=_0x5b71d2;has_process_run_at_least_once=!![],document['querySelectorAll']('*\x20:not(head,\x20title,\x20link,\x20meta,\x20script,\x20style,\x20defs,\x20filter,\x20.darkmysite_processed)')[_0x4e4a6d(0xd5)](function(_0x599a0d){darkmysite_process_element(_0x599a0d);});}function darkmysite_init_observer(){var _0x9d57ec=_0x5b71d2;darkmysite_observer[_0x9d57ec(0x10d)](document,{'attributes':![],'childList':!![],'characterData':![],'subtree':!![]}),dark_mode_status_changed[_0x9d57ec(0x10d)](document[_0x9d57ec(0x116)](_0x9d57ec(0x10b))[0x0],{'attributes':!![]}),document['readyState']!==_0x9d57ec(0xf6)?(!has_process_run_at_least_once&&darkmysite_init_processes(),darkmysite_implement_secondary_bg(),darkmysite_recheck_on_css_loaded_later()):document[_0x9d57ec(0x138)]('DOMContentLoaded',function(){!has_process_run_at_least_once&&darkmysite_init_processes(),darkmysite_implement_secondary_bg(),darkmysite_recheck_on_css_loaded_later();});}darkmysite_check_preloading()&&(document['getElementsByTagName'](_0x5b71d2(0x10b))[0x0][_0x5b71d2(0xc5)][_0x5b71d2(0xef)](_0x5b71d2(0xe7)),darkmysite_init_observer());
  • darkmysite/trunk/backend/api/update_settings.php

    r2871278 r2880242  
    7878        if(isset($_REQUEST['enable_absolute_position'])){
    7979            $this->base_admin->settings->updateSettings("enable_absolute_position", sanitize_text_field($_REQUEST['enable_absolute_position']));
     80        }
     81
     82        /* Switch Extras*/
     83        if(isset($_REQUEST['enable_floating_switch_tooltip'])){
     84            $this->base_admin->settings->updateSettings("enable_floating_switch_tooltip", sanitize_text_field($_REQUEST['enable_floating_switch_tooltip']));
     85        }
     86        if(isset($_REQUEST['floating_switch_tooltip_position'])){
     87            $this->base_admin->settings->updateSettings("floating_switch_tooltip_position", sanitize_text_field($_REQUEST['floating_switch_tooltip_position']));
     88        }
     89        if(isset($_REQUEST['alternative_dark_mode_switch'])){
     90            $this->base_admin->settings->updateSettings("alternative_dark_mode_switch", sanitize_text_field($_REQUEST['alternative_dark_mode_switch']));
    8091        }
    8192
  • darkmysite/trunk/backend/templates/views/preset.php

    r2863492 r2880242  
    145145            <input type="color" value="<?php echo esc_attr($settings["dark_mode_btn_text_color"]) ?>">
    146146        </div>
    147         <!--<div class="darkmysite_section_block_separator"></div>
    148         <div class="darkmysite_input_select_setting pro_lock darkmysite_dark_mode_btn_text_color" onclick="darkmysite_show_pro_popup(``, ``)">
    149             <div class="darkmysite_input_select_setting_details">
    150                 <h4>Button Text Color</h4>
    151                 <p>Set the text color of buttons of your website when dark mode is enabled.</p>
    152             </div>
    153             <input type="color" value="<?php /*echo esc_attr($settings["dark_mode_btn_text_color"]) */?>">
    154         </div>-->
    155147    </div>
    156148
  • darkmysite/trunk/backend/templates/views/switch.php

    r2868469 r2880242  
    208208
    209209
    210 
     210    <div class="darkmysite_section_header">
     211        <h3>Switch Extras</h3>
     212        <p>Extra features to customize the dark mde floating switch</p>
     213    </div>
     214    <div class="darkmysite_section_block">
     215        <div class="darkmysite_input_select_setting darkmysite_enable_floating_switch_tooltip">
     216            <div class="darkmysite_input_select_setting_details">
     217                <h4>Enable Tooltip on Floating Switch</h4>
     218                <p>Want to show a hint on dark mode floating switch as tooltip?</p>
     219            </div>
     220            <select onchange="darkmysite_enable_disable_floating_switch_tooltip(this)">
     221                <option <?php echo esc_attr($settings["enable_floating_switch_tooltip"] == "1" ? "selected" : "") ?> value="1">Yes</option>
     222                <option <?php echo esc_attr($settings["enable_floating_switch_tooltip"] == "0" ? "selected" : "") ?> value="0">No</option>
     223            </select>
     224        </div>
     225        <div class="darkmysite_section_block_separator" style="<?php echo esc_attr($settings["enable_floating_switch_tooltip"] == "1" ? "" : "display: none;") ?>"></div>
     226        <div class="darkmysite_input_select_setting darkmysite_floating_switch_tooltip_position" style="<?php echo esc_attr($settings["enable_floating_switch_tooltip"] == "1" ? "" : "display: none;") ?>">
     227            <div class="darkmysite_input_select_setting_details">
     228                <h4>Tooltip Position</h4>
     229                <p>Choose the position where the tooltip should be displaed relative to the floating switch.</p>
     230            </div>
     231            <select>
     232                <option <?php echo esc_attr($settings["floating_switch_tooltip_position"] == "top" ? "selected" : "") ?> value="top">Top</option>
     233                <option <?php echo esc_attr($settings["floating_switch_tooltip_position"] == "bottom" ? "selected" : "") ?> value="bottom">Bottom</option>
     234                <option <?php echo esc_attr($settings["floating_switch_tooltip_position"] == "left" ? "selected" : "") ?> value="left">Left</option>
     235                <option <?php echo esc_attr($settings["floating_switch_tooltip_position"] == "right" ? "selected" : "") ?> value="right">Right</option>
     236            </select>
     237        </div>
     238        <div class="darkmysite_section_block_separator" style="<?php echo esc_attr($settings["enable_floating_switch_tooltip"] == "1" ? "" : "display: none;") ?>"></div>
     239        <div class="darkmysite_input_select_setting pro_lock darkmysite_floating_switch_tooltip_text" style="<?php echo esc_attr($settings["enable_floating_switch_tooltip"] == "1" ? "" : "display: none;") ?>" onclick="darkmysite_show_pro_popup(``, ``)">
     240            <div class="darkmysite_input_select_setting_details">
     241                <h4>Tooltip Text</h4>
     242                <p>Customize text to be displayed on the tooltip.</p>
     243            </div>
     244            <input type="text" value="<?php echo esc_attr($settings["floating_switch_tooltip_text"]) ?>">
     245        </div>
     246        <div class="darkmysite_section_block_separator" style="<?php echo esc_attr($settings["enable_floating_switch_tooltip"] == "1" ? "" : "display: none;") ?>"></div>
     247        <div class="darkmysite_input_select_setting pro_lock darkmysite_floating_switch_tooltip_bg_color" style="<?php echo esc_attr($settings["enable_floating_switch_tooltip"] == "1" ? "" : "display: none;") ?>" onclick="darkmysite_show_pro_popup(``, ``)">
     248            <div class="darkmysite_input_select_setting_details">
     249                <h4>Tooltip Background Color</h4>
     250                <p>Customize the background color of the floating switch tooltip.</p>
     251            </div>
     252            <input type="color" value="<?php echo esc_attr($settings["floating_switch_tooltip_bg_color"]) ?>">
     253        </div>
     254        <div class="darkmysite_section_block_separator" style="<?php echo esc_attr($settings["enable_floating_switch_tooltip"] == "1" ? "" : "display: none;") ?>"></div>
     255        <div class="darkmysite_input_select_setting pro_lock darkmysite_floating_switch_tooltip_text_color" style="<?php echo esc_attr($settings["enable_floating_switch_tooltip"] == "1" ? "" : "display: none;") ?>" onclick="darkmysite_show_pro_popup(``, ``)">
     256            <div class="darkmysite_input_select_setting_details">
     257                <h4>Tooltip Text Color</h4>
     258                <p>Customize default margin from the left of the Floating Switch in Mobile.</p>
     259            </div>
     260            <input type="color" value="<?php echo esc_attr($settings["floating_switch_tooltip_text_color"]) ?>">
     261        </div>
     262        <div class="darkmysite_section_block_separator"></div>
     263        <div class="darkmysite_input_select_setting darkmysite_alternative_dark_mode_switch">
     264            <div class="darkmysite_input_select_setting_details">
     265                <h4>Alternative Dark Mode Switch</h4>
     266                <p>Enter comma-separated CSS class or ID selectors to treat them as dark mode switch.</p>
     267            </div>
     268            <input type="text" placeholder="Example: .cz-1, #abc" value="<?php echo esc_attr($settings["alternative_dark_mode_switch"]) ?>">
     269        </div>
     270    </div>
    211271
    212272
  • darkmysite/trunk/darkmysite.php

    r2871278 r2880242  
    44 * Plugin URI:        https://darkmysite.com
    55 * Description:       Simplest way to enable dark mode on your website - DarkMySite.
    6  * Version:           1.2.1
     6 * Version:           1.2.2
    77 * Author:            DarkMySite - WP Dark Mode
    88 * Author URI:        https://darkmysite.com
     
    1919}
    2020
    21 defined( 'DARKMYSITE_VERSION' ) or define( 'DARKMYSITE_VERSION', '1.2.1' );
     21defined( 'DARKMYSITE_VERSION' ) or define( 'DARKMYSITE_VERSION', '1.2.2' );
    2222defined( 'DARKMYSITE_PATH' ) or define( 'DARKMYSITE_PATH', plugin_dir_path( __FILE__ ) );
    2323defined( 'DARKMYSITE_URL' ) or define( 'DARKMYSITE_URL', plugin_dir_url( __FILE__ ) );
  • darkmysite/trunk/frontend/templates/footer_script.php

    r2863492 r2880242  
    77        <?php } ?>
    88    <?php } ?>
     9<?php } ?>
     10
     11<?php if(!is_admin()){ ?>
     12    <script type="text/javascript">
     13
     14        document.addEventListener("DOMContentLoaded", function(event) {
     15            darkmysite_init_alternative_dark_mode_switch();
     16        });
     17
     18    </script>
    919<?php } ?>
    1020
  • darkmysite/trunk/frontend/templates/header_script.php

    r2871278 r2880242  
    4646        var darkmysite_time_based_dark_stop = "<?php echo esc_attr($this->data_settings["time_based_dark_stop"]); ?>";
    4747
     48        var darkmysite_alternative_dark_mode_switch = "<?php echo esc_attr($this->data_settings["alternative_dark_mode_switch"]); ?>";
     49
    4850        var darkmysite_enable_low_image_brightness = "<?php echo esc_attr($this->data_settings["enable_low_image_brightness"]); ?>";
    4951        var darkmysite_image_brightness_to = "<?php echo esc_attr($this->data_settings["image_brightness_to"]); ?>";
  • darkmysite/trunk/frontend/templates/views/switch.php

    r2868469 r2880242  
    1111        --darkmysite_switch_margin_from_left: <?php echo esc_attr($this->data_settings["dark_mode_switch_margin_left"]); ?>px;
    1212        --darkmysite_switch_margin_from_right: <?php echo esc_attr($this->data_settings["dark_mode_switch_margin_right"]); ?>px;
     13    <?php if($this->data_settings["enable_floating_switch_tooltip"] == "1"){ ?>
     14        --darkmysite_switch_tooltip_bg_color: <?php echo esc_attr($this->data_settings["floating_switch_tooltip_bg_color"]); ?>;
     15        --darkmysite_switch_tooltip_text_color: <?php echo esc_attr($this->data_settings["floating_switch_tooltip_text_color"]); ?>;
     16    <?php } ?>
    1317    }
    1418</style>
     
    2731?>
    2832
     33<?php
     34$tooltip_classes = "";
     35if($this->data_settings["enable_floating_switch_tooltip"] == "1"){
     36    $tooltip_classes = "darkmysite_tooltip darkmysite_tooltip_".$this->data_settings["floating_switch_tooltip_position"];
     37}
     38?>
     39
    2940<?php if($this->data_settings["dark_mode_switch_design"] == "apple") { ?>
    30     <div id="darkmysite_switch_<?php echo esc_attr($this->unique_id);?>" class="darkmysite_switch <?php echo esc_attr($hide_on_mobile_by_screen);?> <?php echo esc_attr($floating_switch_position);?> <?php echo esc_attr($this->data_settings["enable_absolute_position"] == "1" ? "darkmysite_absolute_position" : ""); ?> darkmysite_switch_apple" onclick="darkmysite_switch_trigger()">
     41    <div id="darkmysite_switch_<?php echo esc_attr($this->unique_id);?>" class="darkmysite_switch <?php echo esc_attr($hide_on_mobile_by_screen);?> <?php echo esc_attr($floating_switch_position);?> <?php echo esc_attr($this->data_settings["enable_absolute_position"] == "1" ? "darkmysite_absolute_position" : ""); ?> <?php echo esc_attr($tooltip_classes); ?> darkmysite_switch_apple" onclick="darkmysite_switch_trigger()">
    3142        <span class="darkmysite_switch_icon"></span>
     43        <?php if($this->data_settings["enable_floating_switch_tooltip"] == "1"){ ?> <span class="darkmysite_tooltiptext"><?php echo esc_attr($this->data_settings["floating_switch_tooltip_text"]); ?></span> <?php } ?>
    3244    </div>
    3345<?php } ?>
    3446<?php if($this->data_settings["dark_mode_switch_design"] == "banana") { ?>
    35     <div id="darkmysite_switch_<?php echo esc_attr($this->unique_id);?>" class="darkmysite_switch <?php echo esc_attr($hide_on_mobile_by_screen);?> <?php echo esc_attr($floating_switch_position);?> <?php echo esc_attr($this->data_settings["enable_absolute_position"] == "1" ? "darkmysite_absolute_position" : ""); ?> darkmysite_switch_banana" onclick="darkmysite_switch_trigger()">
     47    <div id="darkmysite_switch_<?php echo esc_attr($this->unique_id);?>" class="darkmysite_switch <?php echo esc_attr($hide_on_mobile_by_screen);?> <?php echo esc_attr($floating_switch_position);?> <?php echo esc_attr($this->data_settings["enable_absolute_position"] == "1" ? "darkmysite_absolute_position" : ""); ?> <?php echo esc_attr($tooltip_classes); ?> darkmysite_switch_banana" onclick="darkmysite_switch_trigger()">
    3648        <span class="darkmysite_switch_icon"></span>
     49        <?php if($this->data_settings["enable_floating_switch_tooltip"] == "1"){ ?> <span class="darkmysite_tooltiptext"><?php echo esc_attr($this->data_settings["floating_switch_tooltip_text"]); ?></span> <?php } ?>
    3750    </div>
    3851<?php } ?>
  • darkmysite/trunk/includes/DarkMySiteSettings.php

    r2871278 r2880242  
    135135            $settings["enable_absolute_position"] = ($settings["enable_absolute_position"] == Null) ? "0" : $settings["enable_absolute_position"];
    136136
     137            //========== Switch Extras ===============
     138            $settings["enable_floating_switch_tooltip"] = $this->updateSettings("enable_floating_switch_tooltip");
     139            $settings["enable_floating_switch_tooltip"] = ($settings["enable_floating_switch_tooltip"] == Null) ? "0" : $settings["enable_floating_switch_tooltip"];
     140
     141            $settings["floating_switch_tooltip_position"] = $this->updateSettings("floating_switch_tooltip_position");
     142            $settings["floating_switch_tooltip_position"] = ($settings["floating_switch_tooltip_position"] == Null) ? "top" : $settings["floating_switch_tooltip_position"];
     143
     144            $settings["floating_switch_tooltip_text"] = $this->updateSettings("floating_switch_tooltip_text");
     145            $settings["floating_switch_tooltip_text"] = ($settings["floating_switch_tooltip_text"] == Null) ? "Toggle Dark Mode" : $settings["floating_switch_tooltip_text"];
     146
     147            $settings["floating_switch_tooltip_bg_color"] = $this->updateSettings("floating_switch_tooltip_bg_color");
     148            $settings["floating_switch_tooltip_bg_color"] = ($settings["floating_switch_tooltip_bg_color"] == Null) ? "#142434" : $settings["floating_switch_tooltip_bg_color"];
     149
     150            $settings["floating_switch_tooltip_text_color"] = $this->updateSettings("floating_switch_tooltip_text_color");
     151            $settings["floating_switch_tooltip_text_color"] = ($settings["floating_switch_tooltip_text_color"] == Null) ? "#B0CBE7" : $settings["floating_switch_tooltip_text_color"];
     152
     153            $settings["alternative_dark_mode_switch"] = $this->updateSettings("alternative_dark_mode_switch");
     154            $settings["alternative_dark_mode_switch"] = ($settings["alternative_dark_mode_switch"] == Null) ? "" : $settings["alternative_dark_mode_switch"];
     155
    137156
    138157            //========== Switch Apple ===============
  • darkmysite/trunk/readme.txt

    r2871357 r2880242  
    1 ===DarkMySite - WP Dark Mode===
     1===DarkMySite - Advanced Dark Mode Plugin for WordPress===
    22Contributors: darkmysite
    33Donate link: https://darkmysite.com
     
    66Requires at least: 4.8
    77Tested up to: 6.1
    8 Stable tag: 1.2.1
     8Stable tag: 1.2.2
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1414== Description ==
    1515<h4>DarkMySite helps to create a stunning eye-pleasing dark mode version for your WordPress website easily and effectively.</h4>
    16 <p>The trend of dark mode has been rapidly growing in recent years, as more and more people seek ways to reduce eye strain and improve their online browsing experience. And with DarkMySite, you can effortlessly add a fabulous dark mode theme to your WordPress website, providing your users with a stylish and convenient option.</p>
    17 
    18 <p>DarkMySite is a powerful and lightweight plugin that uses advanced technology to flawlessly apply dark mode, intelligently understanding the structure of your website to deliver optimal design results. Whether your users prefer the sleek look of dark mode or simply wish to reduce eye strain, DarkMySite is the perfect solution.</p>
     16<p>The trend of dark mode has been rapidly growing in recent years, as more and more people seek ways to reduce eye strain and improve their online browsing experience. And with DarkMySite - WordPress Dark Mode Plugin, you can effortlessly add a fabulous dark mode theme to your WordPress website, providing your users with a stylish and convenient option.</p>
     17
     18<p>DarkMySite is a powerful and lightweight WP Dark Mode plugin that uses advanced technology to flawlessly apply dark mode, intelligently understanding the structure of your website to deliver optimal design results. Whether your users prefer the sleek look of dark mode or simply wish to reduce eye strain, DarkMySite is the perfect solution.</p>
    1919
    2020[youtube https://www.youtube.com/watch?v=277_UYIzHJU]
     
    126126== Changelog ==
    127127
     128= 1.2.2 =
     129New functionality has been added.
     1301. Tooltip on Floating Switch has been added (Free & Premium)
     1312. Treating CSS class or ID selectors as alternative dark mode switch feature has been added (Free & Premium)
     1323. Issue of form field's placeholder text color change on dark mode has been fixed (Free & Premium)
     133
    128134= 1.2.1 =
    129135New functionality has been added and minor issues have been solved.
Note: See TracChangeset for help on using the changeset viewer.