Labs/Jetpack/Reboot/JEP/112: Difference between revisions

Jump to navigation Jump to search
m
Line 83: Line 83:


<pre class="brush:js;toolbar:false;">
<pre class="brush:js;toolbar:false;">
let contextMenu = require("context-menu");
var contextMenu = require("context-menu");


// Add "Edit Image" on images.
// Add "Edit Image" on images.
Line 95: Line 95:
// Replace the "Search" menuitem with a menu that searches Google or Wikipedia
// Replace the "Search" menuitem with a menu that searches Google or Wikipedia
// when there is selected text.
// when there is selected text.
let selection = require("selection");
var selection = require("selection");
contextMenu.replace(
contextMenu.replace(
   function () {
   function () {
Confirmed users
764

edits

Navigation menu