diff --git a/src/background.js b/src/background.js index 002f10a..8b1b170 100644 --- a/src/background.js +++ b/src/background.js @@ -86,7 +86,8 @@ chrome.runtime.onInstalled.addListener(async () => { featureIndexOverlayOption: false, renderMap: true, defaultExtCoor: 'pcrs', - defaultLocCoor: 'gcrs' + defaultLocCoor: 'gcrs', + defaultContentPreference: 'no-preference' } }); registerContentScripts(); diff --git a/src/popup.html b/src/popup.html index e750272..812e714 100644 --- a/src/popup.html +++ b/src/popup.html @@ -58,6 +58,22 @@
Accessibility Settings
+
+
+
Content Preferences
+
+ + +
+
+
diff --git a/src/popup.js b/src/popup.js index db5a164..5eadd7f 100644 --- a/src/popup.js +++ b/src/popup.js @@ -22,7 +22,8 @@ function loadOptions() { featureIndexOverlayOption: false, renderMap: false, defaultExtCoor: 'pcrs', - defaultLocCoor: 'gcrs' + defaultLocCoor: 'gcrs', + defaultContentPreference: 'no-preference' }; for (let name in options) { let elem = document.getElementById(name); @@ -71,5 +72,6 @@ document.addEventListener("DOMContentLoaded", () => { document.getElementById("renderMap").addEventListener("change", handleCheckboxChange); document.getElementById("defaultExtCoor").addEventListener("change", handleDropdownChange); document.getElementById("defaultLocCoor").addEventListener("change", handleDropdownChange); + document.getElementById('contentPreference').addEventListener("change", handleDropdownChange); });