专注于为用户提供免费的精品资源,好货不私藏!

网站嵌网站平台-远端开发专用(概念版-支持热重载)

admin 软件源码

本来是想搞我的MCP 网页远端脚本获取的问题,体量因为可能跨网站跨域拓展一些好玩的东西,因为觉得油猴体量太大,结果让AI搞出了个这么玩意
简单介绍:(目前没完善,有能者完善一下吧,注册窗口的逻辑有点问题,太细节的问题) 文件除了模块什么手册什么的全部打包了,用qwen-code 还有腾讯的那个IDE或者其他AI帮你快速捋一捋怎么用就行。
后续有空还会更新,如果有更新好的,请分享给我。总能省点事
上图:
以下文件有全部资料在内。
我也不知道方向对不对,反正我那个脚本的远端加载热重载问题解决了,更新会很快的(AI免费劳工)。

网站嵌网站平台-远端开发专用(概念版-支持热重载)
网站嵌网站平台-远端开发专用(概念版-支持热重载)
一下脚本从远端或者本地服务器拉取所有的应用。按理来说支持远端开发。支持热重载


 
  1. // ==UserScript==
  2. // @name         MCP Web Embed
  3. // @namespace    http://mcp.example.com/
  4. // @version      1.0.0
  5. // @description  MCP Web Embed System - Plugin-based web window system
  6. // @AuThor       MCP Team
  7. // @match        *://*/*
  8. // @grant        none
  9. // @run-at       document-end
  10. // ==/UserScript==
  11. (function() {
  12.   'use strict';
  13.   // 防止重复加载
  14.   if (window.MCP_LOADED) return;
  15.   window.MCP_LOADED = true;
  16.   // 创建容器
  17.   const container = document.createElement('div');
  18.   container.id = 'mcp-web-embed-root';
  19.   container.style.cssText = `
  20.     position: fixed;
  21.     top: 0;
  22.     left: 0;
  23.     width: 100%;
  24.     height: 100%;
  25.     pointer-events: none;
  26.     z-index: 9999;
  27.   `;
  28.   document.body.appendChild(container);
  29.   // 动态加载主加载器
  30.   const script = document.createElement('script');
  31.   script.src = 'http://localhost:8024/loader.js';
  32.   script.type = 'module';
  33.   script.onload = () => {
  34.     console.log('✅ MCP Web Embed loaded successfully');
  35.   };
  36.   script.onerror = (error) => {
  37.     console.error('❌ Failed to load MCP Web Embed:', error);
  38.   };
  39.   document.head.appendChild(script);
  40.   console.log('🚀 MCP Web Embed initializing...');
  41. })();

复制代码
网站嵌网站平台-远端开发专用(概念版-支持热重载)


下载地址:https://xiaok.lanzoum.com/ikxPF3h5jp5a

免责声明

本站提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络收集整理,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序和内容,请支持正版,购买注册,得到更好的正版服务。我们非常重视版权问题,如有侵权请邮件与我们联系处理。敬请谅解!

评论列表