小紅書 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,給了我比較有邏輯的答案
最終發(fā)現(xiàn)不太好改,可以用mitmproxy寫個python腳本修改response,不過我懶得搞了,換了個別的方法

浙公網(wǎng)安備 33010602011771號