Find File Shortcut (GitHub)

Adds a keyboard shortcut to use GitHub's find file feature

2016/07/10のページです。最新版はこちら

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name        Find File Shortcut (GitHub)
// @namespace   chriskim06
// @description Adds a keyboard shortcut to use GitHub's find file feature
// @include     https://github.com/*/*
// @version     1.4
// @grant       none
// @locale      en
// ==/UserScript==

document.querySelector('html').addEventListener('keydown', function(e) {
  if (e.shiftKey && e.which === 80 && e.target.nodeName !== 'INPUT') {
    var branch = branchMenu.querySelector('.js-select-button.css-truncate-target');
    if (branch) {
      window.location.href = window.location.href + '/find/' + branch.innerHTML;
    }
  }
});

长期地址
遇到问题?请前往 GitHub 提 Issues。