fix #7988 - prnewsthailand fix
[app.webkitpdf] / domains / prnewsthailand.com.js
1 (function (args) {
2     var tries = 0;
3     var timer = window.setInterval(function() {
4         try {
5             tries++;
6             target = document.getElementsByClassName('main-header')[0].nextElementSibling;
7
8             if(target == null) {
9                 // give up after 5 tries
10                 if(tries == 5) {
11                     clearInterval(timer);
12                 }
13                 return;
14             }
15             target.style.display = 'block';
16             clearInterval(timer);
17           
18         } catch(e) {}
19             
20     },150);
21     
22 })();