From d9779f8e3001005c97e39e6be26f894c172c97df Mon Sep 17 00:00:00 2001 From: Alan Date: Mon, 5 Feb 2024 14:46:37 +0800 Subject: [PATCH] fix #8002 - markets.ft.com screenshots --- domains/markets.ft.com.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 domains/markets.ft.com.js diff --git a/domains/markets.ft.com.js b/domains/markets.ft.com.js new file mode 100644 index 0000000..557dacc --- /dev/null +++ b/domains/markets.ft.com.js @@ -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 -- 2.39.2