github-form-control-selectable

enable user to select formControl element

  1. // ==UserScript==
  2. // @name github-form-control-selectable
  3. // @namespace https://github.com/KazooTTT/github-form-control-selectable
  4. // @version 0.2
  5. // @description enable user to select formControl element
  6. // @author KazooTTT
  7. // @match https://*.github.com/*
  8. // @icon https://github.com/kazoottt.png
  9. // @license MIT
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. const insertStylesBySelector = (selector) => {
  14. const style = document.createElement("style");
  15. style.textContent = `
  16. ${selector} {
  17. user-select:auto
  18. }
  19. `;
  20. const head = document.querySelector("head");
  21. head.append(style);
  22. };
  23.  
  24. (function () {
  25. "use strict";
  26. insertStylesBySelector(`.FormControl-label`);
  27. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址