I haven't tested either of those scripts, but the twitter one looks extremely simple. is a list of alternate nitter instances you can switch the first URL in the script out for.
The youtube script is quite a bit more complicated. I think because it replaces embedded youtube videos with invidious as well.
(post is archived)