Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

你的标题/ urlcheat

一个简单的 iframe 跳板页:在整页 iframe 中加载任意网址,支持通过 ?url= 参数覆盖目标,并修复了影片无法全屏的问题。

文件

  • index.html:跳板页本体。整页一个 iframe,占满窗口。

使用方式

  1. index.html 部署到任意静态托管(GitHub Pages、Nginx、Vercel 等),或直接本地打开。

  2. 默认网址:不传参数时,加载脚本中 DEFAULT_URL 指定的网址(当前为 https://blockly.games)。可自行修改。

    var DEFAULT_URL = 'https://blockly.games';
  3. 指定网址:在链接后加 ?url=,即可加载任意 http/https 页面。

    index.html?url=https://example.com
    

    例如看影片:index.html?url=https://www.example.com/video/123

  4. 全屏:被嵌入页面的视频全屏按钮现已可用(iframe 已启用 allowfullscreen 并在 sandbox 中放行 allow-fullscreen)。

安全说明

  • 仅允许 http/https 协议,拦截 javascript: / data: 等注入。
  • iframe 使用 sandbox,默认未授予 allow-top-navigation,被嵌入页面无法操作外层页面。
  • sandbox 同时包含 allow-scriptsallow-same-origin,两者并用会削弱沙箱隔离效果。仅在你信任目标站点时使用;若需更强隔离,可移除 allow-same-origin
  • 建议按需添加目标网址白名单,避免被用作开放重定向跳板。

自定义

  • 改默认网址:编辑 index.html 中的 DEFAULT_URL
  • 限制可加载站点:在脚本里对 target 增加域名白名单校验。

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages