小红书 404 重定向
function clientRedirect(e) {
window.location.href = e,
setTimeout(function() {
window.location.href = e
}, 100),
setTimeout(function() {
window.location.href = e
}, 400)
}
claude-4-sonnet得到的代码根本没用,我让它修改了4次,越改越多,但是生成的大部分代码从根本上就是无效的。根本上就是没法改的它给的代码就要改。
Object.freeze(window.location);
Object.defineProperty(window.location, 'href', {
setInterval(function() {
const currentUrl = window.location.href;
observer.observe(document, {
attributes: true,
attributeFilter: ['href'],
subtree: true
});
最后还是我手动找了下network栏的doc的Initiator的js代码,然后问的gpt-5-thinking,给了我比较有逻辑的答案
最终发现不太好改,可以用mitmproxy写个python脚本修改response,不过我懒得搞了,换了个别的方法

浙公网安备 33010602011771号