Greasy Fork镜像 支持简体中文。

移除CSDN系统通知小红点

运行时期选document-body,可移除CSDN系统通知小红点,如需清空系统通知请将脚本中第二个请求取消注释

  1. // ==UserScript==
  2. // @name 移除CSDN系统通知小红点
  3. // @namespace https://h3110w0r1d.com/
  4. // @version 0.2
  5. // @description 运行时期选document-body,可移除CSDN系统通知小红点,如需清空系统通知请将脚本中第二个请求取消注释
  6. // @author h3110w0r1d
  7. // @match https://*.csdn.net/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. $.ajax({
  14. type: 'POST',
  15. url: "https://msg.csdn.net/v1/web/message/view/message",
  16. contentType:'application/json;charset=UTF-8',
  17. data: '{"type":4}',
  18. xhrFields: {
  19. withCredentials:true
  20. },
  21. success: function (data) {
  22. ;
  23. }
  24. });
  25. /*
  26. $.ajax({
  27. type: 'POST',
  28. url: "https://msg.csdn.net/v1/web/message/delete/all",
  29. contentType:'application/json;charset=UTF-8',
  30. data: '{"type":4}',
  31. xhrFields: {
  32. withCredentials:true
  33. },
  34. success: function (data) {
  35. ;
  36. }
  37. });
  38. */
  39.  
  40. })();

QingJ © 2025

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