Giter Site home page Giter Site logo

chromekeyconfig's People

Contributors

haburibe avatar hitode909 avatar os0x avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chromekeyconfig's Issues

「Reset All Configuration」が動作していない

オプションのAdvancedタブにおける「Reset All Configuration」によって、設定を初期化する事が現在できなくなっております。

options.jsの472行目で「Uncaught SyntaxError: Unexpected token o」というエラーが発生していたので調査してみたところ、Config = JSON.parse(BackGround.default_keyconfig);BackGround.default_keyconfigは既にパースされていたので、Config = BackGround.default_keyconfig;と変えてみたところ、一応設定の初期化ができるようになりました。十分なテストを行なっていないので、この変更で問題が修正されているか、また他の処理に影響を及ぼさないかは定かではありません。

この問題はWindows 7 Home Premium SP1 64bit上のChrome 17.0.963.79、拡張のバージョンは1.13.0という環境で確認しています。

ご質問 **語サイトの検索について

http://www.1688.com/
keyconfigを使い、右クリックして選択した文字を阿里巴巴というサイトで検索すると文字化けしてしますのですが、どのようにソースを書いたらよいでしょうか?

chrome のエクステンションのkeyconfig を使用しています。

ソースはこのようにかいています。
javascript:var selectStr = document.getSelection();var encStr = encodeURIComponent(selectStr);window.open('ttp://s.1688.com/selloffer/offer_search.htm?keywords='+encStr);

(URLのはじめのhを省略しています)

**のサイトなので、gbkという文字コードを使用しているため文字化けしているもようです。
ちなみに英語で検索するとうまく検索されるようです。

contenteditable属性を利用して作られた入力ボックスへの対応

私は今のところTwitterでしか見たことはありませんが、inputタグやtextareaタグの代わりに、contenteditable属性を利用してリッチな入力ボックスを提供している場合があるようです。

そこで、contenteditable属性を利用して作成された入力ボックスを認識し、アクションの無効化とvi like actionsの有効化が正しく行われるようにしてみました。コードは以下のとおりです。

mono0x/ChromeKeyconfig@f5aafe7

ただ、現状ではvi like actionsのカーソル移動の挙動に問題があるので、pull requestは送っていません。具体的には、CSSのoverflow:scrollが設定された入力ボックス (Twitterの入力ボックス) で、キャレットが移動した結果見えなくなるような場合に、スクロールせず、キャレットが見えない位置へ消えてしまいます。

解決方法がわからなかったため、不完全な状態での報告になり申し訳ありません。

キー設定がすべてundefinedになってしまう

Chrome バージョン : 54.0.2840.59 (64-bit)
OS X El Capitan 10.11.6

Chromeを最新バージョンにアップデートしたところ、キー設定がすべて
undefinedになるようになってしまいました。
また既存のキー設定も動作しません。

Hit-a-Hint couldn't find rounded link elements

hit a hint function cannot draw hints for some link elements, such as "Twitter Bootstrap" style button.
because... is_viewable function checks document.elementFromPoint(rect.left, rect.top), but it found parent element if link element is rounded.

For example,

<div><a style="display:block; border-radius:4px;" href="foo">foo</a></div>

document.elementFromPoint(rect.left, rect.top); returns div element, it is not a element.

var _e = document.elementFromPoint(rect.left, rect.top);
if (_e && (_e === elem || elem.contains(_e))) return rect;

Twitterでの暴発

#5
こちらの「contenteditable属性を利用して作られた入力ボックスへの対応」で対応されたかと思っていましたが、バリバリ無効化されていません。
chrome53以降の「BSで戻る」の強制無効化に対抗するためとして導入しましたが、ツイートがままなりませんでした。

なお、この現象は半角入力時に発生しています。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.