Prideless MDN

去除 MDN 的 Pride Month 宣传

  1. // ==UserScript==
  2. // @name Prideless MDN
  3. // @name:zh-CN Prideless MDN
  4. // @namespace https://github.com/ZeroAurora
  5. // @match https://developer.mozilla.org/*
  6. // @version 1.0
  7. // @author Whoever but not LGBTQIA+
  8. // @description Remove the pride from MDN
  9. // @description:zh-CN 去除 MDN 的 Pride Month 宣传
  10. // @homepageURL https://github.com/ZeroAurora/UserJS-Prideless
  11. // @license WTFPL
  12. // @grant GM_addStyle
  13. // @run-at document-start
  14. // ==/UserScript==
  15.  
  16. const pridelessCSS = `
  17. .logo .logo-m {
  18. fill: var(--text-link) !important;
  19. }
  20.  
  21. .logo .logo-_ {
  22. fill: var(--text-link) !important;
  23. }
  24.  
  25. .homepage-hero section p > span::after {
  26. height: 0 !important;
  27. }
  28. `;
  29.  
  30. function removePride() {
  31. const manifestoParent = document.querySelector(
  32. ".homepage-hero > section:nth-child(1) > p:nth-child(2)"
  33. );
  34. const mandala = document.querySelector(".mandala-container");
  35. if (mandala && mandala.classList.contains("pride")) {
  36. manifestoParent.innerHTML = `Documenting web technologies, including CSS, HTML, and JavaScript, since 2005.`;
  37. mandala.classList.remove("animate-colors");
  38. mandala.classList.remove("pride");
  39. }
  40. }
  41.  
  42. GM_addStyle(pridelessCSS);
  43. document.addEventListener("DOMContentLoaded", removePride);

QingJ © 2025

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