Hide All Standings Links on Codeforces

Hides all "Standings" links on Codeforces contest pages (both group and general standings).

  1. // ==UserScript==
  2. // @name Hide All Standings Links on Codeforces
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description Hides all "Standings" links on Codeforces contest pages (both group and general standings).
  6. // @author joonyou
  7. // @match https://codeforces.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=codeforces.com
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. 'use strict';
  15.  
  16. const hideStandingsLinks = () => {
  17. const links = document.querySelectorAll('a[href*="/standings"]');
  18. links.forEach(link => {
  19. if (link.textContent.trim() === "Standings") {
  20. link.style.display = 'none';
  21. }
  22. });
  23. };
  24.  
  25. hideStandingsLinks();
  26.  
  27. // Handle dynamic updates (e.g., SPA behavior on Codeforces)
  28. new MutationObserver(hideStandingsLinks).observe(document.body, {
  29. childList: true,
  30. subtree: true
  31. });
  32. })();

QingJ © 2025

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