Disable Websites' PCDN

Disable websites to use PCDN to upload content

// ==UserScript==
// @name         Disable Websites' PCDN
// @namespace    http://tampermonkey.net/
// @version      2025-04-17-2
// @description  Disable websites to use PCDN to upload content
// @author       Dyneeshely
// @license      AGPL
// @match        https://*.bilibili.com/*
// @icon         https://img.catrol.cn/icons/projects/user-scripts/disable-pcdn.png
// @grant        none
// ==/UserScript==
 
(function() {
    'use strict';

    console.log('🔵 Websites\' PCDN disabled!');
 
    delete window.RTCPeerConnection;
    delete window.mozRTCPeerConnection;
    delete window.webkitRTCPeerConnection;
    delete window.RTCDataChannel;
    delete window.DataChannel;
})();