mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
cloudflare bypass (do not uncomment)
This commit is contained in:
parent
c77a6cc54f
commit
85c7703e26
5 changed files with 7 additions and 13 deletions
|
@ -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();
|
parent::onStartup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -57,8 +57,4 @@
|
||||||
window.location.assign(url.replace("__padding", e.target.value));
|
window.location.assign(url.replace("__padding", e.target.value));
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{if isset($thisUser) && $thisUser->hasMicroblogEnabled()}
|
|
||||||
{script "js/al_comments.js"}
|
|
||||||
{/if}
|
|
||||||
{/block}
|
{/block}
|
||||||
|
|
|
@ -45,8 +45,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{if isset($thisUser) && $thisUser->hasMicroblogEnabled()}
|
|
||||||
{script "js/al_comments.js"}
|
|
||||||
{/if}
|
|
||||||
{/block}
|
{/block}
|
||||||
|
|
|
@ -28,7 +28,3 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{if isset($thisUser) && $thisUser->hasMicroblogEnabled()}
|
|
||||||
{script "js/al_comments.js"}
|
|
||||||
{/if}
|
|
||||||
|
|
|
@ -2013,6 +2013,8 @@ async function __processPaginatorNextPage(page)
|
||||||
|
|
||||||
const replace_url = new URL(location.href)
|
const replace_url = new URL(location.href)
|
||||||
replace_url.searchParams.set('p', page)
|
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 = await fetch(replace_url.href)
|
||||||
const new_content_response = await new_content.text()
|
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)
|
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')) {
|
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)
|
container.nodes[0].append(u(`.paginator:not(.paginator-at-top)`).nodes[0].parentNode)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue