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/background.js b/background.js
new file mode 100644
index 0000000..513d12e
--- /dev/null
+++ b/background.js
@@ -0,0 +1,13 @@
+function isEmpty(obj) {
+ return Object.keys(obj).length === 0;
+}
+
+chrome.runtime.onInstalled.addListener(function(details) {
+ chrome.storage.sync.get(null, function(items) {
+ if (details.reason == "install") {
+ if (isEmpty(items)) {
+ chrome.storage.sync.set({"list": true, "thread": true});
+ }
+ }
+ });
+});