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

180
Views
How to open a link with a custom user agent in pure javascript?

I am writing a User Script and now need to implement the following in pure javascript:

  1. Redirect/open with a new page/jump to a new URL
  2. At the same time, the request uses a customized user agent

How can I achieve this?

Details:

For example, the script runs in https://wenku.baidu.com/view/b249cb95ff4733687e21af45b307e87100f6f861.html

And then I need to use the script to jump to https://wk.baidu.com/view/b249cb95ff4733687e21af45b307e87100f6f861.html

The reason why I have to change the user agent is that its server will detect the UA and return the according url (the same to the old).

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!