I’m curious about redirecting my Lemmy instance from https://lemmy.world/home/data_type/Post/listing_type/All/sort/New/page/1 to …/0 so that it stops scrolling. Another example; in the past I wanted a way to redirect www•reddit to old•reddit. I do stuff like this in a bash terminal all the time. What are the easiest techniques to achieve similar results in browsers? Obviously I’m asking for the same abstract functionality as a bash alias. I’m not thinking bash works in a browser or anything dumb like that.

  • underisk@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    This is tricky because I’m pretty sure lemmy is using history.pushState to change the URL and not actually navigating there in the traditional manner so you can’t really expect the script to run unless you refresh the page or paste the URL in directly.