Greasy Fork is available in English.

Keyword Refresher

refresh page based on keyword

< Feedback on Keyword Refresher

Question/comment

§
Posted: 02.01.2024

I misinterpreted your code. Maybe I'll add an additional check to improve my blocker.

§
Posted: 02.01.2024

Here's a better version of your code

const keywords = ["keyword1", "keyword2"];

setInterval(() => {
const pageContent = document.body.textContent || document.body.innerTextUrl;
if (keywords.some(keyword => pageContent.includes(keyword))) location.reload();
}, 7000);

Post reply

Sign in to post a reply.