Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8489035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:42:48+00:00 2026-06-10T21:42:48+00:00

I know how to inject my own scripts into web pages on load event,

  • 0

I know how to inject my own scripts into web pages on load event, but it doesn’t always work as expected. Sometimes the page succeeds to run its own scripts before mine and it makes my whole app fail. I try do disable the possibility the page spawns another browser window. I have an app running on my server, when it starts Internet Explorer instances randomly – it soon crashes the whole machine which is a disaster.

I made a script which changes window.open method and it does the trick perfectly – except the case when the page pops up another window BEFORE my code is executed. Is there a way to freeze JS before I finish injecting my script? Maybe is there a way to inject my script in an earlier point, before DocumentCompleted event? But how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:42:50+00:00Added an answer on June 10, 2026 at 9:42 pm

    This doesn’t directly answer your question about how to do it in the browser – but I’m aware of a similar thing that is done by Avast internet security and it does it using an HTTP proxy.

    The idea is to intercept HTML pages as they are received over the wire, and inject your script into the HTML itself; thus there’s no way that any other script can execute before it.

    Whilst that might sound scary – you can do it using the technology underpinning the very excellent Fiddler HTTP debugger – the FiddlerCore API

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anybody know of a way to use Guice to inject dependencies into the
I know that Phonegap has an event for back button, but it's only available
I already know how to: Load properties files into my Spring configuration using: <context:property-placeholder
Just wanted to know if there is a big chance to inject SQL While
Know this might be rather basic, but I been trying to figure out how
I know you can not set a key value dynamically, but what about the
I know that this sort of question has been asked here before, but still
i know this is a stupid question but i d'ont know how to do
I don't know if this is actually possible, but can I take complete control
I know I have to use SetWindowLongPtr with GWLP_WNDPROC and create my own WndProc

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.