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

120
Views
¿Cómo puedo obtener datos del almacenamiento local de Chrome en mi secuencia de comandos de contenido en mi popup.js?

Actualmente obtengo todos mis datos en el script de contenido y los almaceno localmente.

 function getdata() { setTimeout(function () { chrome.storage.local.get( [ "storedvideoid", "storedvideotitle", "storedchannelname", "storedthumbnail", "storeddate", "storedviews", ], function (result) { chrome.runtime.sendMessage({}); alert( "Watching " + result.storedvideotitle + " from " + result.storedchannelname + " uploaded on " + result.storeddate + " with " + result.storedviews + "views at " + date.toLocaleString("en-US", timeoptions) ); } ); }, 600); }

Quiero llevarlo a mi popup.js para que pueda mostrarse en mi ventana emergente.

 var title = var channel = var views = var date = document.getElementById("videoname").innerHTML = title; document.getElementById("channelname").innerHTML = channel; document.getElementById("views").innerHTML = views + " views"; document.getElementById("date").innerHTML = date;

Solo quiero que las cadenas que he guardado en el almacenamiento local se muestren en mi ventana emergente.

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!