Skip to content

Instantly share code, notes, and snippets.

@infinex
Last active November 24, 2018 13:27
Show Gist options
  • Select an option

  • Save infinex/f5eb42efe5b9435e228fa283bf99fd48 to your computer and use it in GitHub Desktop.

Select an option

Save infinex/f5eb42efe5b9435e228fa283bf99fd48 to your computer and use it in GitHub Desktop.
surfingKeys config
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