From: Alan Date: Mon, 5 Feb 2024 06:46:37 +0000 (+0800) Subject: fix #8002 - markets.ft.com screenshots X-Git-Url: http://git.roojs.org/?p=app.webkitpdf;a=commitdiff_plain;h=d9779f8e3001005c97e39e6be26f894c172c97df fix #8002 - markets.ft.com screenshots --- 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