domains/markets.ft.com.js
authorleon <leon@roojs.com>
Mon, 5 Feb 2024 04:46:27 +0000 (12:46 +0800)
committerleon <leon@roojs.com>
Mon, 5 Feb 2024 04:46:27 +0000 (12:46 +0800)
domains/markets.ft.com.js

index b6f0bd0..325b707 100644 (file)
@@ -17,4 +17,27 @@ var timer = window.setInterval(function() {
       
     } catch(e) {}
         
-},500);
\ No newline at end of file
+},500);
+
+(function (args) {
+    var tries = 0;
+    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;
+                }
+                return;
+            }
+            cookie.style.display = 'none';
+            clearInterval(timer);
+          
+        } catch(e) {}
+            
+    },500);
+    
+})(); 
\ No newline at end of file