Skip to main content

How to put context menu items in the top-level menu?

划词翻译 adds some menu items to the browser's context menu, such as "Translate the whole page (网页全文翻译)" and "Translate the screenshot (截图翻译)", which are in a sub-menu named "Pop-up translation".

If you want to put one of these menu items, such as "Translate the whole page (网页全文翻译)", in the top-level menu, you need to go to the 划词翻译 settings page -【General (通用)】-【Context menu (右键菜单)】 and hide all the other menu items except "Translate the whole page (网页全文翻译)".

This is a limitation of the browser for extension programs. If a context menu of an extension program exceeds one, it will be placed in a sub-menu named after the extension program name.