Skip to content

Instantly share code, notes, and snippets.

@garrettr
Created May 14, 2014 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garrettr/10ebcb4af5225443ee59 to your computer and use it in GitHub Desktop.
Save garrettr/10ebcb4af5225443ee59 to your computer and use it in GitHub Desktop.
Log userStored for Privacy Badger Firefox
diff --git a/lib/userStorage.js b/lib/userStorage.js
index 5441382..5cca0cc 100644
--- a/lib/userStorage.js
+++ b/lib/userStorage.js
@@ -104,6 +104,10 @@ exports.init = function()
if (!storage[store]) storage[store] = {};
}
);
+ // Log JSON out to the console for cooperq
+ userStored.forEach(function(store) {
+ console.log(store + " : " + JSON.stringify(storage[store]));
+ });
};
exports.sync = function()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment