I wanted to share my userscript that you can use to decode the bas64 encoded urls when they have been posted in a <code> tag. I’ve made the @match statement to only run on @dbzer0, but you can change it to work from whatever instance you use quite easily by replacing the @match statement.

I recommend installing with Violentmonkey.

  • Lemongrab@lemmy.one
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    `//if statement used to filter by community on post pages (since home instance!=dbzer0)

    if (document.querySelector(“a.community-link[title=”+CSS.escape(ref_community)+“]”)){ window.addEventListener(‘load’, decodeURLS, {once: true, capture: false}); }`

    if I am missing something lmk, my JS knowledge is near zero but this works for me. Took me way to long since I have never used JS before.