mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
added cid quotelinks
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
function handleQuoteClick(reply) {
|
||||
const cid = reply.shortCid;
|
||||
const targetElement = [...document.querySelectorAll('.post-reply')]
|
||||
.find(el => el.innerHTML.includes(cid));
|
||||
if (targetElement) {
|
||||
targetElement.scrollIntoView({ behavior: "instant" });
|
||||
} else {
|
||||
console.log('Could not find target element');
|
||||
}
|
||||
};
|
||||
|
||||
export default handleQuoteClick;
|
||||
Reference in New Issue
Block a user