# Porting to Webextension - selector on browser.contextMenus

**URL:** <https://discourse.mozilla.org/t/porting-to-webextension-selector-on-browser-contextmenus/15061>\
**Category:** Add-on Support\
**Created:** [April 14, 2017, 8:20pm UTC](https://discourse.mozilla.org/t/porting-to-webextension-selector-on-browser-contextmenus/15061 "2017-04-14T20:20:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![erosman](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/erosman/32/15447_2.png) [@erosman](https://discourse.mozilla.org/u/erosman)\
**Post date:** [April 15, 2017, 5:23am UTC](https://discourse.mozilla.org/t/porting-to-webextension-selector-on-browser-contextmenus/15061/2 "2017-04-15T05:23:05Z")

</div>

There is `targetUrlPatterns` but I haven’t seen a CSS selector based one.

> **[menus.create()](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/menus/create)**
>
> Creates a new menu item, given an options object defining properties for the item.

---

_[View the full topic](https://discourse.mozilla.org/t/porting-to-webextension-selector-on-browser-contextmenus/15061)._
