GreasyFork: Better Webhook Info Page

9/21/2023, 3:18:06 PM

当前为 2023-09-21 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name GreasyFork: Better Webhook Info Page
  3. // @namespace UserScripts
  4. // @match https://greasyfork.org/*
  5. // @grant none
  6. // @version 0.1.0
  7. // @author CY Fung
  8. // @license MIT
  9. // @description 9/21/2023, 3:18:06 PM
  10. // @run-at document-end
  11. // ==/UserScript==
  12.  
  13. (()=>{
  14.  
  15. if(!location.pathname.includes('/users/webhook-info')) return;
  16.  
  17. document.head.appendChild(document.createElement('style')).textContent=`
  18.  
  19.  
  20. #main-header ~ .width-constraint > .text-content:only-child > ul li {
  21. font-size:0.88rem;
  22. }
  23.  
  24. #main-header ~ .width-constraint > .text-content:only-child > ul a:first-child{
  25. display:block;
  26. font-size: 1rem;
  27. margin-top: 4px;
  28. text-decoration: none;
  29. }
  30.  
  31. #main-header ~ .width-constraint > .text-content:only-child > ul a ~ a{
  32. color: #383855;
  33. text-decoration: none;
  34. }
  35.  
  36.  
  37.  
  38. `
  39.  
  40. })()