233
39

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

GitHub の「Fork」ボタンを「パクる」に置き換える UserScript

Posted at
// ==UserScript==
// @name         Replace Fork with パクる for GitHub
// @namespace    https://foooomio.net/
// @version      0.1
// @description  だから、そういうことじゃなくて💦
// @author       foooomio
// @license      MIT License
// @match        https://github.com/*
// @run-at       document-idle
// @grant        none
// ==/UserScript==

// 元ネタ: https://twitter.com/IiToshihide/status/1246487047545556992

(() => {
  'use strict';

  const $ = document.querySelector.bind(document);

  function main() {
    $('.pagehead-actions .octicon-repo-forked').nextSibling.textContent = 'パクる';
  }

  new MutationObserver(main).observe(
    $('#js-repo-pjax-container'),
    { childList: true }
  );

  main();
})();
233
39
9

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
233
39

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?