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.

  • nowayhosay@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    1 year ago

    so then this:
    aHR0cHM6Ly9hcmNoaXZlLm9yZy9kb3dubG9hZC9sYS1mZW1tZS1uaWtpdGEtMTk5Nwo=
    should turn into a link?

    edit it’s not working with tampermonkey
    edit edit works with violentmonkey as you said

    • sweepline@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Are you using it from the dbzer0 instance? if not you need to change the @match statement. If you want it to run anywhere use @match *://*/*. You can also add a new @match line to include your main server.

      • nowayhosay@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 year ago

        yeah i was using directly from dbzero, doesn’t seem to work with tampermonkey. works fine 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.