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

158
Views
La eliminación de la pestaña de extensión de Chrome no funciona

Ok, estaba trabajando en la eliminación de pestañas con una extensión de Chrome, pero no funciona. Aquí está mi código para cada archivo.

fondo.js

 chrome.browserAction.onClicked.addListener(function(tab) { chrome.tabs.executeScript(tab.id, {file: "bookmarklet.js"})

});

bookmarklet.js

 if (window.location.href.indexOf("unblocked", "games", "1v1", "smash carts", "slope unblocked", "retrobowl",) > -1) { alert("You are not supposed to be on the website. You will be reported to an adminstrator immediatly."); console.log(window.location.href) chrome.tabs.getCurrent(function(tab) { chrome.tabs.remove(tab.id, function() { }); });

}else { console.log("Este sitio web es seguro") } enter code here

Mi pregunta es, ¿cómo se supone que debo obtener el cromo? pestaña. eliminar la función para trabajar? También mi mainfest.json incluye los permisos de la pestaña.

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!