Version 0.1.0.
Added infinite scroll to the public Forum threads, and added options page to adjust whether to enable infinite scrolling in thread lists and inside threads separately.
diff --git a/options.js b/options.js
new file mode 100644
index 0000000..d8ce844
--- /dev/null
+++ b/options.js
@@ -0,0 +1,31 @@
+function isEmpty(obj) {
+ return Object.keys(obj).length === 0;
+}
+
+function save() {
+ chrome.storage.sync.set({
+ "list": document.querySelector("#list").checked,
+ "thread": document.querySelector("#thread").checked
+ }, function() {
+ window.close();
+ });
+}
+
+window.addEventListener("load", function() {
+ chrome.storage.sync.get(null, function(items) {
+ if (isEmpty(items)) {
+ items = {"list": true, "thread": true};
+ chrome.storage.sync.set(items);
+ }
+
+ if (items.list === true) {
+ document.querySelector("#list").checked = true;
+ }
+
+ if (items.thread === true) {
+ document.querySelector("#thread").checked = true;
+ }
+
+ document.querySelector("#save").addEventListener("click", save);
+ });
+});