下载地址:点击安装
Chrome一个简单拓展,给右键菜单添加一个 在新标签页中打开菜单,
经常在iframe中开发,需要打开新标签页的可能会有用,很简单的代码
 4 chrome.contextMenus.create({
 5     title: "Open frame in new tab",
 6     onclick: function(info, tab){
 7         chrome.tabs.create({
 8             url: info.frameUrl || info.pageUrl,
 9             index: tab.index + 1,
10             selected: true
11         });
12     }
13 });
Todo: 本来想只在iframe中添加。貌似不怎么好实现

相关文章:

  • 2022-12-23
  • 2021-09-09
  • 2021-10-09
  • 2021-08-31
  • 2022-02-04
  • 2021-06-04
  • 2022-12-23
猜你喜欢
  • 2021-07-06
  • 2022-12-23
  • 2021-10-06
  • 2021-06-14
  • 2021-06-27
  • 2021-12-03
  • 2022-01-22
相关资源
相似解决方案