What are the various ways to effectively bash alias stuff in a web browser?

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 with terminal commands. 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.

stepan, (edited )

https://beehaw.org/comment/405205In this comment, @PenguinCoder Redirector. EDIT: how do I mention user?

j4k3,
@j4k3@lemmy.world avatar

The primary device runs a privacy hardened version of chromium without extensions (Graphene/Vanadium). It also runs most traffic through an OpenWRT fork on a router. I'm just not sure how to create a network filter with redirection or what this is called in the correct terminology, or what other techniques exist.

You probably are unable to tag/mention the user because beehaw is defederated from .world and I created this post from a .world user account.

ipha,
@ipha@lemmy.world avatar

You can use tampermonkey to do something like this. For example, here's my script that redirects twitter to my nitter instance: https://github.com/ipha/userscripts/blob/master/twitter-redirect-nitter.user.js

underisk,

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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • [email protected]
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • Socialism
  • TheResearchGuardian
  • Ask_kbincafe
  • KbinCafe
  • SuperSentai
  • feritale
  • KamenRider
  • All magazines