Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- browser.contextMenus.create({
- id: "get-sauce",
- title: "Get Sauce",
- contexts: ["image"],
- });
- browser.contextMenus.onClicked.addListener((info, tab) => {
- if (info.menuItemId === "get-sauce") {
- var saucenao_query = browser.tabs.create({
- url: "http://saucenao.com/search.php?url=" + info.srcUrl,
- active: false
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement