Disable P2P feature (WebRTC)

disable p2p connection on all page (for firefox, go to `about:config` and set `media.peerconnection.enabled` to false instead)

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name     Disable P2P feature (WebRTC)
// @namespace https://github.com/NateScarlet/Scripts/tree/master/user-script
// @description disable p2p connection on all page (for firefox, go to `about:config` and set `media.peerconnection.enabled` to false instead)
// @grant    none
// @run-at   document-start
// @include	 *
// @version   2023.05.08+43969c61
// ==/UserScript==

"use strict";
(() => {
  // src/disable-p2p.user.ts
  delete window.RTCPeerConnection;
  delete window.mozRTCPeerConnection;
  delete window.webkitRTCPeerConnection;
  delete window.RTCDataChannel;
  delete window.DataChannel;
})();