From 3f1cdef638d5a0fdf832788fc90776d571d47fb8 Mon Sep 17 00:00:00 2001 From: Phil Crosby Date: Mon, 18 Jan 2010 00:24:18 -0800 Subject: Make the characters used in link hints a user-configurable option. Fixes #66. I'll clean up the way we store and handle default options shortly.--- options.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'options.html') diff --git a/options.html b/options.html index 06c8cb05..d5cab9c8 100644 --- a/options.html +++ b/options.html @@ -58,7 +58,7 @@ function initializeOptions() { populateOptions(); - var elements = ["scrollStepSize", "defaultZoomLevel", "excludedUrls"]; + var elements = ["scrollStepSize", "defaultZoomLevel", "excludedUrls", "linkHintCharacters"]; for (var i = 0; i < elements.length; i++) $(elements[i]).addEventListener("change", enableSaveButton, false); $("advancedOptions").addEventListener("click", openAdvancedOptions, false); @@ -71,6 +71,7 @@ localStorage["scrollStepSize"] = $("scrollStepSize").value localStorage["defaultZoomLevel"] = $("defaultZoomLevel").value localStorage["excludedUrls"] = $("excludedUrls").value; + localStorage["linkHintCharacters"] = $("linkHintCharacters").value; $("saveOptions").disabled = true; } @@ -90,6 +91,7 @@ scrollStepSize.value = "60"; defaultZoomLevel.value = "100"; excludedUrls.value = ""; + linkHintCharacters.value = "sadfjklewcmp"; $("saveOptions").disabled = true; } @@ -147,7 +149,7 @@ The characters placed next to each link after typing "F" to enter link hinting mode. - + -- cgit v1.2.3