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

121
Views
Prevent content-scripts from running for a chrome extension with login when user is not authorised

I am working on a chrome extension that will extract keywords from a particular website(x) and search for those keywords in another website's(y) search page. I am using iframes to load the search page(of y) and it will be added as a modal/div to the first page(x) ,this funcationality is added in content-scripts of chrome extension. But I want to make sure the website x is logged in and chrome extension has to be authenticated by SSO based on website X's login. Can anyone help me to prevent the content-script from injecting div to the website x if website y is not authenticated in extensi. Find the code below that is used in content-script to inject the div

$("body").append("<div id = \"slider\" style=\"position: fixed;top: 0px;right: 0px;z-index: 9999;\"><div id=\"iframe\" style=\"position: fixed;top: 0px;right: 0px;z-index: 9999;\"><iframe style=\"border:1px solid #868686;-webkit-box-shadow: 2px 2px 20px 1px rgba(0, 0, 0, 0.5);\" src=\" https:abc.com/search \" width=580 HEIGHT=740></iframe></div><button id=\"button\">PushMe!</button></div>");```
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!