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

78
Views
Execute script on content page

I am making an extension for one website and on specific pages there is a button that executes logic that I need to trigger from extension. Lets say page has button <button onclick="page_action('1')">Click me</button>. page_action function is located in separate file that is hosted in CDN, for example https://website.cdn.com/my_script.js and this my_script.js is defined on websites page (head tag).

So my question is how and if its even possible to manually execute page_action from within chrome extension ?

Finding and clicking button element isn't an option cause in some cases this button is hidden.

Tried different variations and one error that I stumbled was related to CSP. This code is even throwing error:

"content_security_policy": {
    "extension_pages": "script-src 'self' https://website.cdn.com; object-src 'self'"
  }
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!