Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

157
Views
Acceda al elemento seleccionado en el complemento Thunderbird

El propósito de mi complemento es exportar un solo correo electrónico o una carpeta completa para su posterior análisis. Por el momento, he creado un campo dentro del menú para el elemento único, pero no entiendo cómo acceder al elemento en el que hice clic derecho. ¿Alguien puede explicarme cómo acceder al elemento, ya sea el correo electrónico individual o la caja?

 /* Called when the item has been created, or when creation failed due to an error. We'll just log success/failure here. */ function onCreated() { if (browser.runtime.lastError) { console.log(`Error: ${browser.runtime.lastError}`); } else { console.log("Item created successfully"); } } /* Create all the context menu items. */ browser.menus.create({ id: "log-selection", title: browser.i18n.getMessage("menuItemSelectionLogger"), contexts: ["selection"] }, onCreated); browser.menus.create({ id: "analyse", type: "radio", title: browser.i18n.getMessage("menuItemAnalyse"), contexts: ["all"], checked: true, icons: { "16": "icons/paint-green-16.png", "32": "icons/paint-green-32.png" } }, onCreated); browser.menus.create({ id: "export", type: "radio", title: browser.i18n.getMessage("menuItemExport"), contexts: ["all"], checked: true, icons: { "16": "icons/paint-green-16.png", "32": "icons/paint-green-32.png" } }, onCreated); /* The click event listener, where we perform the appropriate action given the ID of the menu item that was clicked. */ browser.menus.onClicked.addListener((info, tab) => { switch (info.menuItemId) { case "log-selection": console.log(info.selectionText); break; case "analyse": break; case "export": break; } });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!