BrowserView.js
authorAlan Knowles <alan@roojs.com>
Mon, 13 Apr 2015 04:39:19 +0000 (12:39 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 13 Apr 2015 04:39:19 +0000 (12:39 +0800)
BrowserView.js

index 59bc35c..555774e 100644 (file)
@@ -306,6 +306,14 @@ BrowserView = new GType({
                 );
                               
             }
+            // motorme - requires a scroll to make content appear..
+            if (current_url.match(/\.motorme\.my\//) ) {
+                TabbedBrowser.browser.current_tab().get_web_view().execute_script("window.scrollTo(0,500)"); 
+                              
+            }
+            
+            
+            window.scrollTo(0,500)
             print("Delay:" + BrowserSettings.delay);
          
             GLib.timeout_add(GLib.PRIORITY_LOW, BrowserSettings.delay *1, function() {