Last active
December 23, 2021 10:03
-
-
Save unarist/c45bd5e8102afe7ce27d757a87819ea4 to your computer and use it in GitHub Desktop.
This file contains 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
// ==UserScript== | |
// @name gh - show approvals | |
// @namespace https://github.com/unarist | |
// @version 0.3 | |
// @author unarist | |
// @match https://github.com/* | |
// @grant none | |
// @downloadURL https://gist.github.com/unarist/c45bd5e8102afe7ce27d757a87819ea4/raw/github-show-approvals.user.js | |
// @run-at document-idle | |
// @noframes | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
function apply() { | |
for (const el of document.querySelectorAll('.tooltipped[aria-label$="approvals"]')) { | |
el.textContent = el.getAttribute('aria-label'); | |
} | |
} | |
new MutationObserver(apply).observe(document.body, {childList: true, subtree: true}); | |
apply(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
before:
after:
ツールチップのテキストを展開しているだけ。