BrowserWindow.vala
[app.webkitpdf] / domains / coconuts.co.js
index 9d1bd7b..9272d91 100644 (file)
@@ -1,17 +1,8 @@
 
 (function (args) {
-    try {
-        var ar = document.getElementsByTagName('style');
-        for(var i=0;i<ar.length;i++) {
-            var m = ar[i].getAttribute('media');
-            if (m.match(/print/)) {
-                ar[i].setAttribute('speech'); // hacky
-                continue;
-            }
-            ar[i].setAttribute('all'); 
-        }
-                 
-        } catch(ex) {}
-    },500);
-    
+    document.getElementById('article_viewer').style.overflowY = '';
+    document.getElementById('article_viewer').style.position = 'initial';
+    document.body.className = '';
+    document.body.style.overflow = '';
+    document.body.style.height="auto";
 })(); 
\ No newline at end of file