add first commit

This commit is contained in:
2025-01-16 17:35:02 +08:00
commit 421b986585
6 changed files with 159 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
chrome.runtime.onInstalled.addListener(() => {
chrome.storage.local.get("replacements", (data) => {
if (!data.replacements) {
fetch(chrome.runtime.getURL("replacements.json"))
.then((response) => response.json())
.then((json) => {
chrome.storage.local.set({ replacements: json });
});
}
});
});