summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content.js3
-rw-r--r--jp/dictionary.js23
-rw-r--r--manifest.json2
3 files changed, 25 insertions, 3 deletions
diff --git a/content.js b/content.js
index d87589ac..f2aa49a2 100644
--- a/content.js
+++ b/content.js
@@ -16,7 +16,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
function getRangeAtCursor(e, lookAhead) {
const range = document.caretRangeFromPoint(e.clientX, e.clientY);
if (range === null) {
@@ -52,4 +51,4 @@ function onMouseDown(e) {
}
-window.addEventListener('mousemove', onMouseMove, false);
+window.addEventListener('mousedown', onMouseDown, false);
diff --git a/jp/dictionary.js b/jp/dictionary.js
new file mode 100644
index 00000000..42825fa3
--- /dev/null
+++ b/jp/dictionary.js
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2016 Alex Yatskov <alex@foosoft.net>
+ * Author: Alex Yatskov <alex@foosoft.net>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+class Dictionary {
+
+
+}
diff --git a/manifest.json b/manifest.json
index 15cbd330..79258d34 100644
--- a/manifest.json
+++ b/manifest.json
@@ -10,7 +10,7 @@
"content_scripts": [{
"matches": [ "http://*/*", "https://*/*" ],
- "js": [ "content.js" ],
+ "js": [ "jp/dictionary.js", "content.js" ],
"run_at": "document_end"
}]
}