Disable P2P feature (WebRTC)

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

ของเมื่อวันที่ 09-12-2021 ดู เวอร์ชันล่าสุด

// ==UserScript==
// @namespace https://github.com/NateScarlet/Scripts/tree/master/user-script
// @name     Disable P2P feature (WebRTC)
// @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   2021.12.09+2bcfbdc1
// ==/UserScript==

(() => {
  // disable_p2p.ts
  delete window.RTCPeerConnection;
  delete window.mozRTCPeerConnection;
  delete window.webkitRTCPeerConnection;
  delete window.RTCDataChannel;
  delete window.DataChannel;
})();
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元