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.

47 lines
1.1 KiB
JavaScript

2 years ago
let categories = {
collect: {
title: "Collection of Data",
2 years ago
keywords: ["data center", "data", "collect", "content and data", "collect data"],
2 years ago
},
2 years ago
usage: {
title: "How do they use this data",
2 years ago
keywords: ["data to", "data from", "your data", "use of data"],
2 years ago
},
2 years ago
third: {
2 years ago
title: "Sharing your data",
keywords: [
"share content",
"share information",
"share your",
"third party",
"third countries",
],
2 years ago
},
location: {
title: "Location",
keywords: ["location", "position", "coordinate"],
},
permission: {
title: "Permission and Consent",
2 years ago
keywords: ["your permission", "device permission"],
2 years ago
},
upload: {
title: "Uploaded Contents",
keywords: ["upload", "content"],
},
suspension: {
title: "Suspension of the account",
2 years ago
keywords: ["suspension", "termination", "ban", "suspend", "disable", "breached"],
2 years ago
},
};
2 years ago
let selected = [];
2 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(", ")
);
});