this post was submitted on 24 Jun 2023
14 points (100.0% liked)

Linux

48240 readers
565 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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.

all 7 comments
sorted by: hot top controversial new old
[–] Kotton@lemmy.ml 4 points 1 year ago

Qutebrowser..? Pretty sure you want qutebrowser

[–] ipha@lemmy.world 2 points 1 year ago (1 children)

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@lemmy.ml 1 points 1 year 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.

[–] stepan@lemmy.fmhy.ml 1 points 1 year ago* (last edited 1 year ago) (1 children)

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

[–] j4k3@lemmy.world 1 points 1 year ago (1 children)

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.

[–] elxeno@lemmy.one 1 points 1 year ago

If you're open to using extensions, u can use iceraven, it's a firefox fork that allows more extensions and tries to make it more compatible with them, although they might not work. I just checked and redirector that was mentioned on the other comment is available there. I use it as my primary mobile browser.

https://github.com/fork-maintainers/iceraven-browser