// ==UserScript== // @name DBD Vernicular Translator // @namespace http://forum.deadbydaylight.com // @include https://forum.deadbydaylight.com/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js // @require https://gist.github.com/raw/2625891/waitForKeyElements.js // @version 1 // @grant GM_addStyle // ==/UserScript== // No, I'm not putting that in my namespace ... // Add as much as you want, get creative ;) const borings = new Array( 'hard', 'frustrating', 'difficult', 'above my skill level', 'above my skill level and makes me cry for my mom' ); waitForKeyElements ( ".userContent", translateNode ); function translateNode(nodes) { const node = nodes[0] while(node.textContent.match('boring')) { boring_translation = borings[Math.floor(Math.random() * borings.length)] text = node.textContent.replace('boring', boring_translation) node.textContent = text } }