mirror of
https://github.com/Jonnyan404/memos-bber.git
synced 2026-04-25 03:58:37 +09:00
Add files via upload
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
chrome.contextMenus.create({
|
||||
title: "记下 “%s”",
|
||||
contexts: ['selection'],
|
||||
onclick: function(info, tab){
|
||||
//设定打开页面的一些初始值
|
||||
console.log(info);
|
||||
chrome.storage.sync.set({open_action: "save_text",open_content:info.selectionText}, function() {
|
||||
chrome.windows.create({
|
||||
url: chrome.extension.getURL("html/popup.html"),
|
||||
left: 50,
|
||||
top: 50,
|
||||
width: 550,
|
||||
height: 300,
|
||||
type: "popup"
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user