ajax-hook icon indicating copy to clipboard operation
ajax-hook copied to clipboard

Intercepting browser's http requests which made by XMLHttpRequest.

Results 47 ajax-hook issues
Sort by recently updated
recently updated
newest added

版本: https://unpkg.com/[email protected]/dist/ajaxhook.min.js 报错代码位置: xhr-hook.js:46:14 this[attr] = hookFunction(attr); 堆栈 Uncaught TypeError: Illegal invocation at new h (xhr-hook.js:46:14) at n.ajax (signup?sru=https://login.live.com/oauth20_authorize.srf%3flc%3d2052%26client_id%3d0000000048170EF2%26mkt%3dZH-CN%26opid%3dD1332CFD16CBC4C5%26opidt%3d1702890355%26uaid%3dd7c14c115940410eb9beaf3fa55447e7%26contextid%3dE4421A3B5768AAFD%26opignore%3d1&mkt=ZH-CN&uiflavor=host&fl=wld&client_id=0000000048170EF2&noauthcancel=1&uaid=d7c14c115940410eb9beaf3fa55447e7&suc=0000000048170EF2:33:213) at r.exec (datarequestpackage_h-_7C7UzwdefXJT9njDBTQ2.js?v=1:10:113) at m (datarequestpackage_h-_7C7UzwdefXJT9njDBTQ2.js?v=1:2:178) at g (datarequestpackage_h-_7C7UzwdefXJT9njDBTQ2.js?v=1:1:566)

close #118 ## Remarks Since most requests are `async`, it might not be suitable to do the bypassing in `onRequest`. `onConfig` is synchronously triggered in `xhr.open`, so it can completely...

### `getEventTarget(xhr)` * only `document.createElement('a')` was used. * `document.createDocumentFragment()` would be a better way to create EventTarget since the creation of HTMLElement is slightly higher than `DocumentFragment` * [`document.createDocumentFragment()` is...

hook有這個 ```js onreadystatechange:function(xhr,event){ console.log("onreadystatechange called: %O") //返回false表示不阻断,拦截函数执行完后会接着执行真正的xhr.onreadystatechange回调. //返回true则表示阻断,拦截函数执行完后将不会执行xhr.onreadystatechange. return false }, ``` 如果我想在proxy中onRequest像上面一個整個bypass不進入任何onResponse onError, 有方法嗎 (連`handler.next(config)`都不跑,直接原生較快也不會對我不處理的request出現bug) ```js ah.proxy({ onRequest: (config, handler) => { if(config.url == 'xxxxxxxx'){ // handler.bypass()?? } //...

滑块链接:https://ssl.captcha.qq.com/template/wireless_mqq_captcha.html?style=simple&aid=16&uin=2838686134&sid=3096246971955450849&cap_cd=qj2ljl-TKmaOgEmjGB83NqlwUYUV1KFAs5NEDwt1t8Tv1SzcXAD4ug**&clientype=1&apptype=2

Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2. Release notes Sourced from semver's releases. v5.7.2 5.7.2 (2023-07-10) Bug Fixes 2f8fd41 #585 better handling of whitespace (#585) (@​joaomoreno, @​lukekarrys) Changelog Sourced from semver's...

dependencies

* avoid memory leakage (release `xhr` after `XMLHttpRequest.DONE`) * avoid circular reference * resolve #116 & resolve #95 - `JSON.stringify` would bypass property `xhr` Note: since xhr is set to...

ah.proxy({ onResponse: function (response, handler) { //do something..... handler.next(response); }, });