LoginSignup
234
39

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();
})();
234
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
234
39