/// <summary>
        /// we have to set this with a delay or it won't fix the link overflow
        /// </summary>
        public async void HideLinkOverflow()
        {
            await Task.Delay(AppSettings.LinkOverflowFixDelay);

            Wv.LoadUrl(JavascriptCommands._jsLinkFixer);
            Wv.LoadUrl(JavascriptCommands._jsDisableTooltips);
            Wv.LoadUrl(JavascriptCommands._jsHideTooltips);
        }
 private async void ExpandFeaturedChannels(bool delayed)
 {
     if (delayed)
     {
         await Task.Delay(3000);
     }
     Wv.LoadUrl(JavascriptCommands._jsFeaturedRemoveMaxWidth);
     Wv.LoadUrl(JavascriptCommands._jsExpandFeatured);
 }
 public async void ExpandVideoCards(bool delayed)
 {
     if (delayed)
     {
         await Task.Delay(5000);
     }
     Wv.LoadUrl(JavascriptCommands._jsBorderBoxAll);
     Wv.LoadUrl(JavascriptCommands._jsRemoveMaxWidthAll);
 }
        private async void HideWatchLabel()
        {
            await Task.Delay(4000);

            if (Wv.Url != "https://www.bitchute.com/")
            {
                Wv.LoadUrl(JavascriptCommands._jsHideTabInner);
            }
        }
 /// <summary>
 /// one press refreshes the page; two presses pops back to the root
 /// </summary>
 public void Pop2Root()
 {
     if (WvRl)
     {
         Wv.Reload();
         WvRl = false;
     }
     else
     {
         Wv.LoadUrl(RootUrl);
     }
 }
        public async void HidePageTitle()
        {
            await Task.Delay(5000);

            if (Wv.Url != "https://www.bitchute.com/" && AppState.Display.Horizontal)
            {
                Wv.LoadUrl(JavascriptCommands._jsHideTitle);
                Wv.LoadUrl(JavascriptCommands._jsHideWatchTab);
                Wv.LoadUrl(JavascriptCommands._jsHidePageBar);
                Wv.LoadUrl(JavascriptCommands._jsPageBarDelete);
            }
        }
 public void OnSettingsChanged(List <object> settings)
 {
     Wv.Settings.SetSupportZoom(AppSettings.ZoomControl);
     if (!AppSettings.Tab0FeaturedOn)
     {
         Wv.LoadUrl(JavascriptCommands._jsHideCarousel);
     }
     else
     {
         Wv.LoadUrl(JavascriptCommands._jsShowCarousel);
     }
     if (AppSettings.ZoomControl)
     {
         Wv.Settings.BuiltInZoomControls = true;
     }
     else
     {
         Wv.Settings.BuiltInZoomControls = false;
     }
 }
Beispiel #8
0
 public void OnSettingsChanged(List <object> settings)
 {
     if (AppSettings.ZoomControl)
     {
         Wv.Settings.BuiltInZoomControls = true;
         Wv.Settings.DisplayZoomControls = false;
     }
     else
     {
         Wv.Settings.BuiltInZoomControls = false;
     }
     if (AppSettings.Tab2Hide)
     {
         Wv.LoadUrl(JavascriptCommands._jsHideCarousel);
     }
     else
     {
         Wv.LoadUrl(JavascriptCommands._jsShowCarousel);
     }
 }
Beispiel #9
0
        private async void HideWatchLabel()
        {
            await Task.Delay(1000);

            Wv.LoadUrl(JavascriptCommands._jsHideTabInner);
        }
Beispiel #10
0
        public async void LoadUrlWithDelay(string url, int delay)
        {
            await Task.Delay(delay);

            Wv.LoadUrl(url);
        }
Beispiel #11
0
 public void OnUserDeniedPreProcessing()
 {
     ShowWebViewButton.PerformClick();
     Wv.LoadUrl(JavascriptCommands.GetInjectable(JavascriptCommands.EnterUploadView));
 }
Beispiel #12
0
        public void ForgotPasswordButton_OnClick(object sender, EventArgs e)
        {
            Wv.LoadUrl("https://www.bitchute.com/accounts/reset/");

            SwapFragView(true);
        }
Beispiel #13
0
 public void RegisterNewAccountButton_OnClick(object sender, EventArgs e)
 {
     Wv.LoadUrl("https://www.bitchute.com/accounts/register/");
     SwapFragView(true);
 }
 public void LoadCustomUrl(string url)
 {
     Wv.LoadUrl(url);
 }