fix #8002 - markets.ft.com screenshots
authorAlan <alan@roojs.com>
Mon, 5 Feb 2024 06:46:37 +0000 (14:46 +0800)
committerAlan <alan@roojs.com>
Mon, 5 Feb 2024 06:46:37 +0000 (14:46 +0800)
domains/markets.ft.com.js [new file with mode: 0644]

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