Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

リンクのマッチング時もmigemoに対応した

  • Loading branch information...
commit 28fd6292cdebe139400114c577d58f4dee433d3e 1 parent 23d258e
trapezoid authored
4 Chrome/glee_chrome/js/events.js
@@ -202,10 +202,6 @@ Glee.Events = {
202 202 // Set timer to search for links
203 203 Glee.timer = setTimeout(function() {
204 204 LinkReaper.reapLinks(Glee.value());
205   - Glee.selectedElement = LinkReaper.getFirst();
206   - Glee.setState(Glee.selectedElement, 'el');
207   - Glee.scrollToElement(Glee.selectedElement);
208   - Glee.setSearchActivity(false);
209 205 }, Glee.defaults.linkSearchTimer);
210 206 }
211 207 else {
2  Chrome/glee_chrome/js/glee.js
@@ -906,4 +906,4 @@ $(document).ready(function() {
906 906 if (!IS_CHROME && window !== window.top)
907 907 return;
908 908 Glee.init();
909   -});
  909 +});
8 Chrome/glee_chrome/js/linkreaper.js
@@ -30,7 +30,8 @@ var LinkReaper = {
30 30 */
31 31 reapLinks: function(term, override) {
32 32 var self = this;
33   - if (term.length < 3) return;
  33 + //if (term.length < 3) return;
  34 + console.log(term);
34 35 chrome.extension.sendRequest(
35 36 'pocnedlaincikkkcmlpcbipcflgjnjlj' // ChromeMigemo の Extension ID (Extension Gallery からインストールした場合)
36 37 ,{"action": "getRegExpString", "query": term}
@@ -55,6 +56,11 @@ var LinkReaper = {
55 56 LinkReaper.searchTerm = term;
56 57 LinkReaper.selectedLinks = Utils.sortElementsByPosition(LinkReaper.selectedLinks);
57 58 LinkReaper.traversePosition = 0;
  59 +
  60 + Glee.selectedElement = LinkReaper.getFirst();
  61 + Glee.setState(Glee.selectedElement, 'el');
  62 + Glee.scrollToElement(Glee.selectedElement);
  63 + Glee.setSearchActivity(false);
58 64 }
59 65 }
60 66 );

0 comments on commit 28fd629

Please sign in to comment.
Something went wrong with that request. Please try again.