Skip to content

Instantly share code, notes, and snippets.

@unarist
Last active December 23, 2021 10:03
Show Gist options
  • Save unarist/c45bd5e8102afe7ce27d757a87819ea4 to your computer and use it in GitHub Desktop.
Save unarist/c45bd5e8102afe7ce27d757a87819ea4 to your computer and use it in GitHub Desktop.
// ==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();
})();
@unarist
Copy link
Author

unarist commented Jun 16, 2020

before:
image
after:
image

ツールチップのテキストを展開しているだけ。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment