refresh page based on keyword
< 腳本Keyword Refresher的回應
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();}
登入以回復
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();
}