Keyword Refresher

refresh page based on keyword

< 脚本Keyword Refresher的反馈

评价:好评 - 脚本运行良好

§
发表于:2024-01-02

I like your implimentation a lot.
I made a very similar script, https://greasyfork.org/en/scripts/470927-internet-guardian/code, you could shorten/simplify your code like this:

const keywords = ["keyword1", "keyword2"];
const url = window.location.href.toLowerCase();

if (keywords.some(keyword => url.includes(keyword))) {
location.reload();
}

发表回复

登录以发表回复。