You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
937 B
JavaScript

3 years ago
let categories = {
collect: {
title: "Collection of Data",
keywords: ["data", "collect"],
},
3 years ago
usage: {
title: "How do they use this data",
keywords: ["usage", "use"],
},
3 years ago
third: {
title: "Usage of Data",
keywords: ["share", "third", "companies", "party"],
},
location: {
title: "Location",
keywords: ["location", "position", "coordinate"],
},
permission: {
title: "Permission and Consent",
keywords: ["permission", "consent"],
},
upload: {
title: "Uploaded Contents",
keywords: ["upload", "content"],
},
suspension: {
title: "Suspension of the account",
keywords: ["suspension", "termination", "ban", "suspend", "disable", "account", "breached"],
},
};
3 years ago
let selected = [];
3 years ago
chrome.runtime.onInstalled.addListener(() => {
chrome.storage.sync.set({ selected, categories });
console.log(
"The default selected categories are:",
selected.map((slug) => categories[slug].title).join(", ")
);
});