可以使用油猴脚本实现
WebRTC P2P 远程网页控制实现方案
完整油猴脚本
// ==UserScript==
// @name WebRTC P2P 网页远程控制
// @namespace http://tampermonkey.net/
// @version 2.0
// @description 双向P2P连接,远程查看和控制网页
// @match *://*/*
// @grant GM_setValue
// @grant GM_getValue
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
class WebRTCRemoteControl {
constructor() {
this.pc = null;
this.dataChannel = null;
this.mode = null; // 'controller' 或 'controlled'
this.setupUI();
}
// 创建控制面板UI
setupUI() {
const panel = document.createElement('div');
panel.innerHTML = `
<div id="rtc-panel" style="position:fixed;top:10px;right:10px;z-index:999999;
background:#2c3e50;color:#ecf0f1;padding:15px;border-radius:8px;
font-family:Arial;min-width:300px;box-shadow:0 4px 6px rgba(0,0,0,0.3);">
<h3 style="margin:0 0 10px 0;"> 网友回复
如何写ai提示词让大模型根据主题生成视频脚本json,然后让Hyperframe渲染出mp4视频?
有哪些字体使用等宽编程代码展示?
如果让演唱会歌迷的上万手机屏幕和闪光灯一起被现场中控控制闪烁?
Midjourney为啥进军医疗领域了?
python如何跟踪足球比赛指定球员全场运动标注打聚光灯合成
如何将linux服务器的文件目录映射到windows电脑磁盘?
Docling 与 MarkItDown 两个库有啥不同?
豆包收费后国产其他ai软件也会跟进收费吗?
JPEG 与 HEIF图片格式区别?
centos7版本太旧无法安装python3.11,如何在docker中运行python3.11?


