diff --git a/common/content/autocommands.js b/common/content/autocommands.js index 0a48ecd5..040a8ba3 100644 --- a/common/content/autocommands.js +++ b/common/content/autocommands.js @@ -4,7 +4,7 @@ // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. -/* use strict */ +"use strict"; /** @scope modules */ diff --git a/common/content/bookmarks.js b/common/content/bookmarks.js index b3b0869c..8c60020e 100644 --- a/common/content/bookmarks.js +++ b/common/content/bookmarks.js @@ -4,7 +4,7 @@ // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. -/* use strict */ +"use strict"; // also includes methods for dealing with keywords and search engines var Bookmarks = Module("bookmarks", { diff --git a/common/content/browser.js b/common/content/browser.js index cc504ff1..a4eb1983 100644 --- a/common/content/browser.js +++ b/common/content/browser.js @@ -4,7 +4,7 @@ // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. -/* use strict */ +"use strict"; /** @scope modules */ diff --git a/common/content/help.js b/common/content/help.js index 0bde1ee4..9faf7a2a 100644 --- a/common/content/help.js +++ b/common/content/help.js @@ -2,7 +2,7 @@ // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. -/* use strict */ +"use strict"; function checkFragment() { document.title = document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml", "title")[0].textContent; diff --git a/common/content/hints.js b/common/content/hints.js index 9c39b094..b35b0996 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -4,7 +4,7 @@ // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. -/* use strict */ +"use strict"; /** @scope modules */ /** @instance hints */ @@ -312,11 +312,11 @@ var HintSession = Class("HintSession", CommandMode, { let body = doc.body || doc.querySelector("body"); if (body) { - let fragment = DOM(
, doc).appendTo(body); + let fragment = DOM(["div", { highlight: "hints" }], doc).appendTo(body); fragment.style.height; // Force application of binding. let container = doc.getAnonymousElementByAttribute(fragment[0], "anonid", "hints") || fragment[0]; - let baseNode = DOM(, doc)[0]; + let baseNode = DOM(["span", { highlight: "Hint", style: "display: none;" }], doc)[0]; let mode = this.hintMode; let res = mode.matcher(doc); @@ -593,7 +593,7 @@ var HintSession = Class("HintSession", CommandMode, { if (!rect) continue; - hint.imgSpan = DOM(, doc).css({ + hint.imgSpan = DOM(["span", { highlight: "Hint", "dactyl:hl": "HintImage" }], doc).css({ display: "none", left: (rect.left + offsetX) + "px", top: (rect.top + offsetY) + "px", diff --git a/common/content/history.js b/common/content/history.js index fa6bf848..bf2534d1 100644 --- a/common/content/history.js +++ b/common/content/history.js @@ -4,7 +4,7 @@ // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. -/* use strict */ +"use strict"; var History = Module("history", { SORT_DEFAULT: "-date", diff --git a/common/content/key-processors.js b/common/content/key-processors.js index e1ba321f..63b27938 100644 --- a/common/content/key-processors.js +++ b/common/content/key-processors.js @@ -2,7 +2,7 @@ // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. -/* use strict */ +"use strict"; /** @scope modules */ diff --git a/common/content/mappings.js b/common/content/mappings.js index d39b0ee9..8f7b298b 100644 --- a/common/content/mappings.js +++ b/common/content/mappings.js @@ -480,34 +480,30 @@ var Mappings = Module("mappings", { return maps; } - let list =| - | {_("title.Mode")} | -{_("title.Command")} | -{_("title.Action")} | -
| {!i++ ? hive.name : ""} | -{modeSign} | -{name} | -{map.rhs || map.action.toSource()} | -