Funkin' Extra Keys
FNF Engines with Extra Keys.
' + '
'
for (let child of document.getElementsByTagName('a')) {
if (child.innerText.length > 'tposejanktposejank'.length) {
child.innerText = child.innerText.substring(0, 'tposejanktposejank'.length) + '...';
}
}
function replaceTextInElement(element) {
const childNodes = element.childNodes;
childNodes.forEach((node) => {
if (node.nodeType === Node.TEXT_NODE) {
const replacedText = node.nodeValue.replace(/@(\w+)/g, '@$1');
const span = document.createElement('span');
span.innerHTML = replacedText;
node.parentNode.replaceChild(span, node);
} else if (node.nodeType === Node.ELEMENT_NODE) {
replaceTextInElement(node);
}
});
}
replaceTextInElement(document.body);
function textNodesUnder(el) {
const textNodes = [];
const walker = document.createTreeWalker(el, NodeFilter.SHOW_TEXT);
while (walker.nextNode()) {
textNodes.push(walker.currentNode);
}
return textNodes;
}
}).catch(e=>{
console.error(e);
console.log('oops');
})