aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Fernandez2012-01-24 22:11:58 -0300
committerPablo Fernandez2012-01-24 22:11:58 -0300
commitb6c8815b3e4276c10966df2a1492efdb19b0bc73 (patch)
tree6cedcef76c48d53904894ff29096a445542f8eaf
parentfb99302b22ddcc7a2ecd7c21e43f3548d937701d (diff)
downloadvimium-b6c8815b3e4276c10966df2a1492efdb19b0bc73.tar.bz2
hide HUD option
-rw-r--r--background_page.html9
-rw-r--r--manifest.json2
-rw-r--r--options.html15
-rw-r--r--vimiumFrontend.js1
4 files changed, 25 insertions, 2 deletions
diff --git a/background_page.html b/background_page.html
index 814c0687..899d4a51 100644
--- a/background_page.html
+++ b/background_page.html
@@ -766,6 +766,15 @@
function runTests() {
open(chrome.extension.getURL('test_harnesses/automated.html'));
}
+
+ /**
+ * Determines wether the heads up display (HUD) is enabled or not.
+ *
+ * This value is configurable via the options page.
+ */
+ function hudDisabled() {
+ return localStorage['hideHud'] !== "true";
+ }
</script>
</head>
</html>
diff --git a/manifest.json b/manifest.json
index 954d5e35..6bea9b66 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,6 +1,6 @@
{
"name": "Vimium",
- "version": "1.30",
+ "version": "1.31",
"description": "The Hacker's Browser. Vimium provides keyboard shortcuts for navigation and control in the spirit of Vim.",
"icons": { "16": "icons/icon16.png",
"48": "icons/icon48.png",
diff --git a/options.html b/options.html
index 3d4033e3..37cc5edb 100644
--- a/options.html
+++ b/options.html
@@ -86,7 +86,7 @@
var defaultSettings = chrome.extension.getBackgroundPage().defaultSettings;
var editableFields = ["scrollStepSize", "excludedUrls", "linkHintCharacters", "userDefinedLinkHintCss",
- "keyMappings", "filterLinkHints", "previousPatterns", "nextPatterns"];
+ "keyMappings", "filterLinkHints", "previousPatterns", "nextPatterns", "hideHud"];
var canBeEmptyFields = ["excludedUrls", "keyMappings", "userDefinedLinkHintCss"];
@@ -313,6 +313,19 @@
<input id="nextPatterns" type="text" style="width:320px" />
</td>
</tr>
+ <tr class="advancedOption">
+ <td class="caption">Hide HUD notifications</td>
+ <td verticalAlign="top" class="booleanOption">
+ <label>
+ <div class="help">
+ <div class="example">
+ Hide the notification HUD that appears on the bottom of the screen.
+ </div>
+ </div>
+ <input id="hideHud" type="checkbox"/>
+ </label>
+ </td>
+ </tr>
</table>
<div id="buttonsPanel">
diff --git a/vimiumFrontend.js b/vimiumFrontend.js
index e217e955..e0759df2 100644
--- a/vimiumFrontend.js
+++ b/vimiumFrontend.js
@@ -792,6 +792,7 @@ HUD = {
},
show: function(text) {
+ if (hudDisabled()) return;
clearTimeout(HUD._showForDurationTimerId);
HUD.displayElement().innerHTML = text;
clearInterval(HUD._tweenId);