fix #8002 - markets.ft.com screenshots
[app.webkitpdf] / domains / markets.ft.com.js
1 (function (args) {
2     var tries = 0;
3     var timer = window.setInterval(function() {
4         try {
5             tries++;
6             var cookie = document.getElementById("sp_message_container_1014642");
7
8             if(cookie == null) {
9                 // give up after 5 tries
10                 if(tries == 5) {
11                     clearInterval(timer);
12                 }
13                 return;
14             }
15             cookie.style.display = 'none';
16             clearInterval(timer);
17           
18         } catch(e) {}
19             
20     },150);
21     
22 })();