public static async void RunPageCommands(WebView w, int d = 2000)
            {
                await Task.Delay(d);

                DoActionOnUiThread(() => {
                    if (w.Url.StartsWith("https://www.bitchute.com/channel/") || w.Url == "https://www.bitchute.com/")
                    {
                        w.LoadUrl(JavascriptCommands.GetInjectable(JavascriptCommands.Display.ShowTabScrollInner + JavascriptCommands.Display.GetForAllTabs()));
                    }
                });
            }
Ejemplo n.º 2
0
        public static async void MakeAvatarsClickable(ServiceWebView serviceWebView = null, WebView webView = null, bool useInternalListener = false, int delay = 2000)
        {
            await Task.Delay(delay);

            if (serviceWebView != null)
            {
                ViewHelpers.DoActionOnUiThread(() =>
                {
                    serviceWebView.LoadUrl(JavascriptCommands.GetInjectable(BaseCommentAvatarClickAdder));
                });
                return;
            }
            else if (webView != null)
            {
                ViewHelpers.DoActionOnUiThread(() =>
                {
                    webView.LoadUrl(JavascriptCommands.GetInjectable(BaseCommentAvatarClickAdder));
                });
                return;
            }
            return;
        }
Ejemplo n.º 3
0
 public void OnUserDeniedPreProcessing()
 {
     ShowWebViewButton.PerformClick();
     Wv.LoadUrl(JavascriptCommands.GetInjectable(JavascriptCommands.EnterUploadView));
 }