cloudflare bypass (do not uncomment)

This commit is contained in:
mrilyew 2024-11-17 16:27:24 +03:00
parent c77a6cc54f
commit 85c7703e26
5 changed files with 7 additions and 13 deletions

View file

@ -283,6 +283,11 @@ abstract class OpenVKPresenter extends SimplePresenter
}
}
/*if($this->queryParam('al') == '1') {
$this->assertNoCSRF();
header('Content-Type: text/plain; charset=UTF-8');
}*/
parent::onStartup();
}

View file

@ -57,8 +57,4 @@
window.location.assign(url.replace("__padding", e.target.value));
});
</script>
{if isset($thisUser) && $thisUser->hasMicroblogEnabled()}
{script "js/al_comments.js"}
{/if}
{/block}

View file

@ -45,8 +45,4 @@
</div>
</div>
</div>
{if isset($thisUser) && $thisUser->hasMicroblogEnabled()}
{script "js/al_comments.js"}
{/if}
{/block}

View file

@ -28,7 +28,3 @@
</div>
</div>
</div>
{if isset($thisUser) && $thisUser->hasMicroblogEnabled()}
{script "js/al_comments.js"}
{/if}

View file

@ -2013,6 +2013,8 @@ async function __processPaginatorNextPage(page)
const replace_url = new URL(location.href)
replace_url.searchParams.set('p', page)
/*replace_url.searchParams.set('al', 1)
replace_url.searchParams.set('hash', u("meta[name=csrf]").attr("value"))*/
const new_content = await fetch(replace_url.href)
const new_content_response = await new_content.text()
@ -2024,7 +2026,6 @@ async function __processPaginatorNextPage(page)
})
u(`.paginator:not(.paginator-at-top)`).html(parsed_content.querySelector('.paginator:not(.paginator-at-top)').innerHTML)
// fffffuck
if(u(`.paginator:not(.paginator-at-top)`).nodes[0].closest('.scroll_container')) {
container.nodes[0].append(u(`.paginator:not(.paginator-at-top)`).nodes[0].parentNode)
}