https://chrome.google.com/webstore/detail/okneonigbfnolfkmfgjmaeniipdjkgkl
os0x / chromekeyconfig Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://chrome.google.com/webstore/detail/okneonigbfnolfkmfgjmaeniipdjkgkl
Home Page: https://chrome.google.com/webstore/detail/okneonigbfnolfkmfgjmaeniipdjkgkl
Create Link には、%newline% という変数があります。
これを実装して欲しいです。
よろしくお願いします。
オプションの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という環境で確認しています。
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.
ChromeKeyconfig/Keyconfig/js/chrome_keyconfig.js
Lines 581 to 582 in 5002a42
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という文字コードを使用しているため文字化けしているもようです。
ちなみに英語で検索するとうまく検索されるようです。
Chrome バージョン : 54.0.2840.59 (64-bit)
OS X El Capitan 10.11.6
Chromeを最新バージョンにアップデートしたところ、キー設定がすべて
undefinedになるようになってしまいました。
また既存のキー設定も動作しません。
私は今のところTwitterでしか見たことはありませんが、inputタグやtextareaタグの代わりに、contenteditable属性を利用してリッチな入力ボックスを提供している場合があるようです。
そこで、contenteditable属性を利用して作成された入力ボックスを認識し、アクションの無効化とvi like actionsの有効化が正しく行われるようにしてみました。コードは以下のとおりです。
mono0x/ChromeKeyconfig@f5aafe7
ただ、現状ではvi like actionsのカーソル移動の挙動に問題があるので、pull requestは送っていません。具体的には、CSSのoverflow:scrollが設定された入力ボックス (Twitterの入力ボックス) で、キャレットが移動した結果見えなくなるような場合に、スクロールせず、キャレットが見えない位置へ消えてしまいます。
解決方法がわからなかったため、不完全な状態での報告になり申し訳ありません。
#5
こちらの「contenteditable属性を利用して作られた入力ボックスへの対応」で対応されたかと思っていましたが、バリバリ無効化されていません。
chrome53以降の「BSで戻る」の強制無効化に対抗するためとして導入しましたが、ツイートがままなりませんでした。
なお、この現象は半角入力時に発生しています。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.