fix #7988 - prnewsthailand fix
[app.webkitpdf] / domains / prnewsthailand.com.js
diff --git a/domains/prnewsthailand.com.js b/domains/prnewsthailand.com.js
new file mode 100644 (file)
index 0000000..259b809
--- /dev/null
@@ -0,0 +1,22 @@
+(function (args) {
+    var tries = 0;
+    var timer = window.setInterval(function() {
+        try {
+            tries++;
+            target = document.getElementsByClassName('main-header')[0].nextElementSibling;
+
+            if(target == null) {
+                // give up after 5 tries
+                if(tries == 5) {
+                    clearInterval(timer);
+                }
+                return;
+            }
+            target.style.display = 'block';
+            clearInterval(timer);
+          
+        } catch(e) {}
+            
+    },150);
+    
+})(); 
\ No newline at end of file