bugs.ruby-lang.orgのリビジョンからGitHubの該当commitに飛ぶUserScript
#便利情報
code:jump_to_github_from_bugs.user.js
// ==UserScript==
// @name Jump to GitHub from bugs.ruby-lang.org
// @namespace https://www.hanach.in/
// @version 0.1.0
// @description Add link to the commit on GitHub
// @author hanachin
// @match https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/*
// @grant none
// @run-at document-idle
// @license GPLv3 - http://www.gnu.org/licenses/gpl-3.0.txt
// ==/UserScript==
​
(function() {
'use strict';
​
const revisionTitle = document.querySelector('h2');
const title, revision = revisionTitle.textContent.split(' ');
revisionTitle.innerHTML = revisionTitle.innerHTML = ${title} <a href="https://github.com/ruby/ruby/commit/${revision}">${revision}</a>
})();
created by hanachin.icon hanachin
chrome://extensions/ 開いてドラッグアンドドロップでインストールできます
とのこと
gistはここ https://gist.github.com/hanachin/4b95fe8a661225d9cd5094a21e538b5f
経緯
https://gyazo.com/1344fa07860a1bb218f9a497a2234e27
#UserScript