0

我有以下 Chrome 扩展代码

清单.json:

{
  "name": "Popup_DB",
  "version": "0.0.1",
  "manifest_version": 2,
  "description": "random",
  "browser_action": {
    "default_title": "Alt+C for opening",
    "default_popup": "hello.html"
  },
    "commands": {
      "_execute_browser_action": {
        "suggested_key": {
          "windows": "Alt+C"
        }
      }
    },
  "permissions": [
    "*://*/*",
    "tabs"
  ]
}

你好.html:

<html>
<head>
    <style type="text/css">
    body {width:780; height:580;}
    </style>
</head>
<body>
    <iframe src= "https://www.bing.com/" width="100%" height="100%" frameborder="0" id="MyFrame">
    </iframe>
</body>
</html>

我在 iframe 中提到的网站是一个纪念品。基本上,在弹出窗口中,我想打开一个页面,其中所有“Go”链接都强制在新选项卡中打开一个页面,强制弹出窗口关闭。

有没有办法编辑 HTML 代码,以便在新选项卡中不打开任何内容,以便我基本上可以做画中画?

4

0 回答 0