From f89214f062b615bd75bfc034c7460879be4bdd73 Mon Sep 17 00:00:00 2001 From: Flummi Date: Thu, 9 Dec 2021 17:01:17 +0100 Subject: [PATCH] issue#1 scroll to end --- public/s/js/f0ck.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/s/js/f0ck.js b/public/s/js/f0ck.js index fd7afd7..e7fbe49 100644 --- a/public/s/js/f0ck.js +++ b/public/s/js/f0ck.js @@ -72,6 +72,11 @@ } }); } + + const rmatch = /\/p\/(\d+?)/; + if(document.referrer.match(rmatch) && document.location.href.match(rmatch)) + if(document.location.href.match(rmatch) < document.referrer.match(rmatch)) + document.body.scrollTop = document.body.scrollHeight; // //