Ejemplo n.º 1
0
        private void style()
        {
            if (EnableDarkMode.IsOn && cbLiteItems.SelectedIndex != 2)
            {
                if (web.Source.ToString().StartsWith("https://mobile.twitter.com/"))
                {
                    UtilityClass.ApplyStyle(web, MobileCss);
                }
                else
                {
                    //DesktopCss += ".tweet js-stream-tweet js-actionable-tweet js-profile-popup-actionable original-tweet js-original-tweet promoted-tweet pixel-promoted-tweet has-cards has-content presented scribed {display: none;}";
                    UtilityClass.ApplyStyle(web, DesktopCss);
                }
            }
            else
            {
                String displaynone = "";
                switch (cbLiteItems.SelectedIndex)
                {
                case 0:
                    displaynone = ".Footer .Footer-adsModule, .login-responsive .mobile, .global-nav--newLoggedOut #global-actions>li>a  {display: none;}";
                    UtilityClass.ApplyStyle(web, displaynone);
                    break;

                case 1:
                    UtilityClass.ApplyStyle(web, displaynone);
                    break;
                }
                UtilityClass.ApplyStyle(web, styleDisplayNone);
            }
        }
Ejemplo n.º 2
0
        private void style()
        {
            string displaynone = ".loggedout_menubar_container, #pageFooter, #pagelet_ego_pane, ._26z1 { display: none; }";

            if (web.Source.AbsoluteUri.Contains("m.facebook.com"))
            {
                displaynone += "#header {position: fixed; width:100%; z-index: 12; top: 0px;} #root {padding-top: 44px;} .item.more {position:fixed; bottom: 0px; text-align: center !important;} .flyout {max-height:15px; overflow-y:scroll;}";
                displaynone += "._43mg, ._5t3b, .touch ._qw9 {display: none;}";
            }
            styleDisplayNone += displaynone;
            UtilityClass.ApplyStyle(web, styleDisplayNone);

            if (EnableDarkMode.IsOn)
            {
                if (web.Source.AbsoluteUri.Contains("m.facebook.com"))
                {
                    UtilityClass.ApplyStyle(web, MobileCss);
                }
                else if (web.Source.AbsoluteUri.Contains("www.facebook.com/login"))
                {
                    string cssToApply = "";
                    cssToApply += ".loggedout_menubar_container, #pageFooter { display: none; }";
                    cssToApply += "._53jh {background: #292929}";
                    cssToApply += "body, ._4-u8, ._4-u5 {background: #171717}";
                    cssToApply += "._4-u2,._53jh {border-color: #171717;}";
                    cssToApply += "body {color : white}";
                    UtilityClass.ApplyStyle(web, cssToApply);
                }
                else
                {
                    UtilityClass.ApplyStyle(web, DesktopCss);
                }
            }
        }
Ejemplo n.º 3
0
 private void style()
 {
     if (EnableDarkMode.IsOn)
     {
         UtilityClass.ApplyStyle(web, cssToApply);
     }
     UtilityClass.ApplyStyle(web, styleDisplayNone);
 }
Ejemplo n.º 4
0
 private void style()
 {
     UtilityClass.ApplyStyle(web, styleDisplayNone);
     if (EnableDarkMode.IsOn)
     {
         UtilityClass.ApplyStyle(web, DesktopCss);
     }
     else
     {
         UtilityClass.ApplyStyle(web, lightModeCSS);
     }
 }
Ejemplo n.º 5
0
 private void style()
 {
     cssToApply = "";
     if (EnableDarkMode.IsOn && web.Source.AbsoluteUri.Contains("https://web.telegram.org/#/login"))
     {
         // background-color #292929
         //cssToApply += "html {background: #1e1e1e}";
         cssToApply += ".login_head_bg {background: #292929}";
         cssToApply += ".login_footer_wrap {display: none}";
     }
     else if (web.Source.AbsoluteUri.Contains("https://web.telegram.org/#/login"))
     {
         cssToApply += ".login_footer_wrap {display: none}";
     }
     if (EnableDarkMode.IsOn && web.Source.AbsoluteUri.Contains("https://web.telegram.org/#/im"))
     {
         cssToApply += TeleCss;
     }
     if (web.Source.AbsoluteUri.Contains("https://web.telegram.org/"))
     {
         cssToApply += ".tg_head_split, .im_page_wrap {max-width: none}";
     }
     UtilityClass.ApplyStyle(web, cssToApply);
 }