Last active
November 24, 2018 13:27
-
-
Save infinex/f5eb42efe5b9435e228fa283bf99fd48 to your computer and use it in GitHub Desktop.
surfingKeys config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mapkey('\\F', "Toggle fullscreen (YouTube)", ytFullscreen, { | |
| repeatIgnore: true, | |
| domain: /(youtube\.com)/i | |
| }); | |
| function ytFullscreen() { | |
| $('.ytp-fullscreen-button.ytp-button').click(); | |
| } | |
| // 优酷搜索 | |
| addSearchAliasX('yk', 'youku', 'http://www.soku.com/search_video/q_', 's', 'http://tip.soku.com/search_tip_1?query=', function(response) { | |
| var res = eval("a=" + response.text); | |
| res = res.r.map(function(r) { | |
| return r.w; | |
| }); | |
| Omnibar.listWords(res); | |
| }); | |
| mapkey('Oyk', '#13Open Search with alias yk', 'Normal.openOmnibar({type: "SearchEngine", extra: "yk"})'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment