Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const totallyNormalMethod = node => {
- const config = { childList: true, subtree: true };
- const callback = (mutationList, observer) => {
- const s = node.querySelector('[role="listbox"]>*>*');
- s?.children && [...s.children].forEach(e=>parseInt(e.textContent)>2024 && e.remove())
- };
- const observer = new MutationObserver(callback);
- observer.observe(node, config);
- }
- ///////
- getRootRef={totallyNormalMethod}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement