fix #8002 - markets.ft.com screenshots
[app.webkitpdf] / domains / markets.ft.com.js
diff --git a/domains/markets.ft.com.js b/domains/markets.ft.com.js
new file mode 100644 (file)
index 0000000..557dacc
--- /dev/null
@@ -0,0 +1,22 @@
+(function (args) {
+    var tries = 0;
+    var timer = window.setInterval(function() {
+        try {
+            tries++;
+            var cookie = document.getElementById("sp_message_container_1014642");
+
+            if(cookie == null) {
+                // give up after 5 tries
+                if(tries == 5) {
+                    clearInterval(timer);
+                }
+                return;
+            }
+            cookie.style.display = 'none';
+            clearInterval(timer);
+          
+        } catch(e) {}
+            
+    },150);
+    
+})(); 
\ No newline at end of file