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

发布留言

登录以发布留言。