user12

Members
  • Posts

    14
  • Joined

  • Last visited

 Content Type 

Profiles

Forums

Release Notes

Bug Tracker

Help page

Help page-CN

Release Note5

Rules and recruitment

Release Note6

Posts posted by user12

  1. On 04.07.2016 at 10:14 PM, A.S. said:

    For other browsers this is longer period.

    In Chrome it's very quickly and when you add new extension it doesn't require any review, mb it's not like this anymore, anyway they review new updates for my extensions very fast

    Last time when I uploaded new addon for Firefox it wasn't reviewed fast but addon was still available to download from their addon site (it just would say to users that this addon wasn't reviewed by Mozilla, but they could install it anyway) 

    Opera - 1-5 days (extensions' updates and new extensions)

    So yeah, 2 weeks it's very long for this browser

  2. 35 minutes ago, A.S. said:

    Do you talk about "entryPoints": ["contextMenu"] or some one else?

    Yeah, It works in 4.4

    I've already tried:

        "actions": [
            {
                "type": "script",
                "entryPoints": ["contextMenu"],
                "js": ["cmenu.js"],
                "contexts": ["page", "link", "selection", "textbox", "image", "video", "audio"]
            }
        ]

    In 4.9 it doesn't work.

    But even if it works in 4.4, ContextMenu API is really bad in Maxhon - I can't create menu items dynamically (because we declare it in def.json), I can't set name for item menu (it just displays name of extension), and how to detect for e.g. link click event when item menu is clicked from the context menu, get url of this link and use it for something in cmenu.js? So what we can do with [link], [selection]?

    In Chrome I can use something like this (in background.js):

    chrome.contextMenus.create({
                title: "name of item"
                id: 'linkClick',
                contexts: ['link']
    });
    
    chrome.contextMenus.onClicked.addListener(function(info, tab) {
        if (info.menuItemId === "linkClick")
            // info.linkUrl - use url for something...
    });

    Also include/exclude attributes doesn't work for ContextMenu - item menu will be displayed in the context menu and script will be executed on every page