BrowserView.js
authorAlan Knowles <alan@roojs.com>
Mon, 18 May 2015 07:16:16 +0000 (15:16 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 18 May 2015 07:16:16 +0000 (15:16 +0800)
BrowserView.js

index c7fd082..3b77490 100644 (file)
@@ -315,7 +315,11 @@ BrowserView = new GType({
             }
             if (current_url.match(/\.efytimes\.com\//) ) {
                 Seed.print("hide coverpop\n");
-                TabbedBrowser.browser.current_tab().get_web_view().execute_script("try {document.getElementById('CoverPop-cover').style.display = 'none'; } catch(e) {}");
+                TabbedBrowser.browser.current_tab().get_web_view().execute_script("try {" +
+                                "document.getElementById('CoverPop-cover').style.display = 'none'; " +
+                                "document.body.setAttribute(style', '');" +
+                                "document.documentElement.className= '';" + 
+                                "} catch(e) {}");
                                
             }