Comments (13)
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.
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.
Comment written by Alex Nevi on 02/21/2018 02:54:18
But you can prevent sending.
from dmitripavlutin.com-comments.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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)
- javascript-json-modules/ HOT 7
- javascript-import-meta/ HOT 3
- javascript-array-group/ HOT 16
- javascript-array-flatmap/ HOT 23
- interface-vs-implementation/ HOT 11
- vue-next-tick/ HOT 4
- props-destructure-vue-composition/ HOT 7
- ref-reactive-differences-vue/ HOT 5
- environment-variables-javascript/ HOT 3
- ref-in-vue/ HOT 1
- typescript-function-type/ HOT 5
- vue-v-model-form-inputs/ HOT 2
- react-forwardref/ HOT 5
- javascript-enum/ HOT 20
- react-comments/ HOT 8
- typescript-record/ HOT 10
- screen-window-page-sizes/ HOT 3
- javascript-pure-function/ HOT 1
- Great article
- orthogonal-react-components/ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dmitripavlutin.com-comments.