Git Product home page Git Product logo

Comments (13)

panzerdp avatar panzerdp commented on August 26, 2024

Comment written by Martin Spierings on 06/21/2017 10:16:14

While you catch the code, this doesn't really prevent further execution

from dmitripavlutin.com-comments.

panzerdp avatar panzerdp commented on August 26, 2024

Comment written by Tánh Lee on 12/14/2017 02:33:52

Thank you very much!! You saved my life <3 Subscribing your blog from today

from dmitripavlutin.com-comments.

panzerdp avatar panzerdp commented on August 26, 2024

Comment written by Alex Nevi on 02/21/2018 02:54:18

But you can prevent sending.

from dmitripavlutin.com-comments.

panzerdp avatar panzerdp commented on August 26, 2024

Comment written by Alex Nevi on 02/21/2018 03:11:19

Пасяп, бр0!
Dunno why, but
if(this._onreadystatechange){
not work, replace it with
if(this.readyState === 4){
and comment return this._onreadystatechange.apply(this, arguments);
in my UserScript.
https://developer.mozilla.o...

from dmitripavlutin.com-comments.

panzerdp avatar panzerdp commented on August 26, 2024

Comment written by loopmode on 05/15/2018 06:48:34

Hi. Nice approach.

Is there a particular reason you guard against missing onreadystatechange?
If not, we should just leave the if(this.onreadystatechange) and if(this._onreadystatechange) checks away.

from dmitripavlutin.com-comments.

panzerdp avatar panzerdp commented on August 26, 2024

Comment written by bvp on 04/09/2019 06:11:10

In my case ajax request are originating from vendor specific js file. But in my application I have added your script on the top of all the JavaScript files.But then also this script is not working and even not entering in any of the openreplacement and endreplacement functions. Do we need to start ajax call from the same script scope ?.

from dmitripavlutin.com-comments.

panzerdp avatar panzerdp commented on August 26, 2024

Comment written by Dmitri Pavlutin on 04/09/2019 06:35:00

If the vendor specific JS code is executed in the same scope as your script, it should work fine.

from dmitripavlutin.com-comments.

panzerdp avatar panzerdp commented on August 26, 2024

Comment written by bvp on 04/09/2019 06:49:13

From my vendor js file, 8 ajax calls are originating. What my requirement is to run my custom function after finishing all the ajax calls. So I want to know when the ajax calls are finished.

from dmitripavlutin.com-comments.

panzerdp avatar panzerdp commented on August 26, 2024

Comment written by bvp on 04/09/2019 09:48:18

When I checked the code, I found that these are not writable. XMLHttpRequest.prototype.open and XMLHttpRequest.prototype.send
What should I do to make it writable ?

from dmitripavlutin.com-comments.

panzerdp avatar panzerdp commented on August 26, 2024

Comment written by exetico on 05/14/2019 18:12:03

Where have you added the code? I've tried to execute it within a JS-file, added in content_scripts > js, but it doesn't work. Should it be added to the original window, or how? :-)

from dmitripavlutin.com-comments.

panzerdp avatar panzerdp commented on August 26, 2024

Comment written by Dmitri Pavlutin on 05/19/2019 09:15:53

Most likely you need to add the JavaScript directly into the original window context.

from dmitripavlutin.com-comments.

AGenchev avatar AGenchev commented on August 26, 2024

Very interesting. Can I then bypass it in a subsequent code as:

function openReplacementBypass(XMLHttpRequestOBJ,method, url, async, user, password)
{
var open = XMLHttpRequestOBJ.prototype.open;
return open(method, url, async, user, password);
}

from dmitripavlutin.com-comments.

puppetrx avatar puppetrx commented on August 26, 2024

Let me ask a question about something related. If I execute a function native from the webpage I'm monitoring and I know it will end up in a XHR request for which I know the URL, how would I capture the response body of that XHR request?

from dmitripavlutin.com-comments.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.