Convert Userscript to Chrome Extension for Video Fullscreen

Preface

When I use some streaming sites, domain-based traffic splitting doesn't work well.

So I simply use it in Edge, and I set Edge to use no proxy, a completely direct connection.

I already have a Tampermonkey script that lets videos go fullscreen on the webpage, but I don't want to install too many things in Edge.

So I thought: what if I convert this Tampermonkey script into a browser extension?


Agent-oriented development

Hermes connects to the free public site agentrouter's deepseek-v4-flash

The quote blocks below are all natural language prompts I sent to the Agent.

如果我已经有了一个油猴脚本, 要转化为一个 edge 或 chrome 的插件, 有什么方案?

The Agent analyzed a lot; we won't look at it.

把这个 油猴插件转换为 chrome 的扩展.
https://greasyfork.org/zh-CN/scripts/4870-maximize-video
功能是, 在视频元素的右上角添加一个 "网页全屏" 的按钮.

你自己可以启动chrome浏览器测试效果.

Done.


Github

https://github.com/crazypeace/chrome-edge-extension-maximize-video-button/releases


Comments