Fix bug in settings loading
This commit is contained in:
@ -1,16 +1,6 @@
|
||||
const SCROBBLE_ENDPOINT = "https://life.lab.unbl.ink/?scrobble_url=";
|
||||
const STOP_ENDPOINT = "https://life.lab.unbl.ink/?action=stop&scrobble_url=";
|
||||
|
||||
// Default settings
|
||||
// *.google.com
|
||||
// *.annas-archive.org
|
||||
// *.limetorrents.fun
|
||||
// gmail.com
|
||||
// *.duckduckgo.com
|
||||
// *.ebay.com
|
||||
// *.amazon.com
|
||||
// *.boardgamegeek.com
|
||||
// *.chatgpt.com
|
||||
const DEFAULT_SETTINGS = {
|
||||
delay: 7,
|
||||
blacklist: [
|
||||
@ -21,12 +11,19 @@ const DEFAULT_SETTINGS = {
|
||||
"*.chatgpt.com",
|
||||
"*.ebay.com",
|
||||
"*.amazon.com",
|
||||
"*.merrysky.net",
|
||||
"gemgetter.clearlysharp.com/",
|
||||
"*.boardgamegeek.com",
|
||||
"*.duckduckgo.com",
|
||||
"*.geekgroup.app",
|
||||
"*.local",
|
||||
"*.service",
|
||||
"*.todoist.com",
|
||||
],
|
||||
paused: false,
|
||||
siteDelays: { "readscomisconline.ru": 1 },
|
||||
};
|
||||
|
||||
// Utility: wildcard match
|
||||
function matchPattern(url, pattern) {
|
||||
if (pattern.startsWith("*.")) {
|
||||
const domain = pattern.slice(2);
|
||||
|
||||
Reference in New Issue
Block a user