summaryrefslogtreecommitdiff
path: root/chromium/options.html
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-12-11 13:49:02 +0000
committerNick White <git@njw.me.uk>2011-12-11 13:49:02 +0000
commitd878db527ce092b97dcb8f8d29d2e9456f50fdb5 (patch)
tree8c7817e47546a089afdfc6cc8c9a8076f93b9c5e /chromium/options.html
parent0a02e740fb0ce5cabd0ea5b6f3f6f72c30a66cf7 (diff)
Add options to chromium extension
Diffstat (limited to 'chromium/options.html')
-rw-r--r--chromium/options.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/chromium/options.html b/chromium/options.html
new file mode 100644
index 0000000..97d7f46
--- /dev/null
+++ b/chromium/options.html
@@ -0,0 +1,18 @@
+<html><head><script>
+ function save() {
+ var prefs = JSON.parse(localStorage.prefs);
+ prefs.nostyle = document.getElementById("nostyle").checked;
+ prefs.nolinks = document.getElementById("nolinks").checked;
+ localStorage.prefs = JSON.stringify(prefs);
+ }
+
+ window.onload = function() {
+ var prefs = JSON.parse(localStorage.prefs);
+ document.getElementById("nostyle").checked = prefs.nostyle;
+ document.getElementById("nolinks").checked = prefs.nolinks;
+ }
+</script></head><body><form>
+<p><label for="nostyle">Disable default style</label> <input id="nostyle" type="checkbox" onclick="save()"/></p>
+<p><label for="nolinks">Hide links</label> <input id="nolinks" type="checkbox" onclick="save()"/></p>
+</form></body></html>
+