I know it's almost 2025 and not seen much action on this, so it's very possible this has broken, with some Twitter/X changes, but figured I would give this a go.. tokens were grabbed correctly..
document.onreadystatechange = function () { var state = document.readyState if (state == 'interactive') { document.getElementById('contents').style.visibility="hidden ...