add finance.uk
[app.webkitpdf] / domains / coconuts.co.js
index c28bff6..9272d91 100644 (file)
@@ -1,53 +1,8 @@
 
 (function (args) {
-     
-    var ar,i;
-    
-    ar = document.getElementsByTagName('style');
-    for(i=0;i<ar.length;i++) {
-        var m = ar[i].getAttribute('media');
-        if (!m) {
-            continue;
-        }
-        if (m.match(/print/)) {
-            ar[i].setAttribute('media', 'speech'); // hacky
-            continue;
-        }
-        ar[i].setAttribute('media','all'); 
-    }
-    ar = document.getElementsByTagName('link');
-    for(  i=0;i<ar.length;i++) {
-        if (ar[i].getAttribute('rel') != 'stylesheet') {
-            continue;
-        }
-        var m = ar[i].getAttribute('media');
-        if (!m) {
-            continue;
-        }
-        if (m.match(/print/)) {
-            ar[i].setAttribute('media','speech'); // hacky
-            continue;
-        }
-        ar[i].setAttribute('media','all'); 
-    }
-    for (var ss = 0; ss < document.styleSheets.length; ss++) {
-        var ar = document.styleSheets[ss].rules;
-        if (!ar) {
-            continue;
-        }
-        for(i=ar.length-1; i > -1; i--){
-            if(ar[i].cssText.indexOf("@media") < 0 ) {
-                continue;   
-            }
-            console.log(ar[i].cssText);
-            var x = ar[i].cssText.match(/@media([^{]+)\{/g);
-            
-            console.log(x);
-            
-            
-        }
-    }
-
-    
-    
+    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