Greasy Fork is available in English.

Keyword Refresher

refresh page based on keyword

< Feedback on Keyword Refresher

سوئال / ئىنكاس

§
يوللانغان ۋاقتى: 2024-01-02

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

§
يوللانغان ۋاقتى: 2024-01-02

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);

جاۋاب قايتۇرۇش

جاۋاب قايتۇرۇش ئۈچۈن كىرىش.