Skip to content

Instantly share code, notes, and snippets.

@unarist
Last active December 23, 2021 10:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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