📜  在某些网页 chrome 扩展上显示上下文菜单 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:51.032000             🧑  作者: Mango

代码示例1
var showForPages = ["https://www.google.com/","*://github.com/zambrey/*","http://www.nytimes.com/"];

chrome.contextMenus.create({
    "title": "zambrey",
    "documentUrlPatterns":showForPages
});