Hvordan installere
You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.
You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.
You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.
You will need to install an extension such as Tampermonkey or Userscripts to install this script.
You will need to install a user script manager extension to install this script.
OK
Hvordan installere
You will need to install an extension such as Stylus to install this script.
You will need to install an extension such as Stylus to install this script.
You will need to install an extension such as Stylus to install this script.
You will need to install a user style manager extension to install this script.
You will need to install a user style manager extension to install this script.
OK
// ==UserScript==
// @name 移除CSDN系统通知小红点
// @namespace https://h3110w0r1d.com/
// @version 0.2
// @description 运行时期选document-body,可移除CSDN系统通知小红点,如需清空系统通知请将脚本中第二个请求取消注释
// @author h3110w0r1d
// @match https://*.csdn.net/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
$.ajax({
type: 'POST',
url: "https://msg.csdn.net/v1/web/message/view/message",
contentType:'application/json;charset=UTF-8',
data: '{"type":4}',
xhrFields: {
withCredentials:true
},
success: function (data) {
;
}
});
/*
$.ajax({
type: 'POST',
url: "https://msg.csdn.net/v1/web/message/delete/all",
contentType:'application/json;charset=UTF-8',
data: '{"type":4}',
xhrFields: {
withCredentials:true
},
success: function (data) {
;
}
});
*/
})();