This script transforms links from other instances to your home instance. So useful :)

As @MedicareForSome@lemmy.ml explained:

It makes it so that if you visit another instance using their URL, it will redirect you to your home version’s federated link.

E.g. if your home server is Lemmy.world, let’s say you find a link to Lemmy on another website but it’s a link to Lemmy.ml. If you click the link, you won’t be signed in.

So like: https://lemmy.ml/c/memes would redirect to https://lemmy.world/c/memes@lemmy.ml

This way you can seamlessly use Lemmy.

It does the same for posts.

Edit: since it works from any site, I highly recommend you to add it to your Android browser so it will work with webapp clients here’s how:

You can use violentMonkey on ff browser too, but you need to unlock Dev options, then do this

  • Azzu@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    No website should ever crash a browser. It could be some weird things happening on sopuli.xyz but I would take this up with the browser developer, it looks more like a fault of the browser than the website, especially as everything works in other browsers.

    • XpeeN@sopuli.xyzOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      It seems logical, but I tried it on few browsers (some isolated on my work account so cookies make no difference), all ff based though. All crashed only with sopuli, which I find really weird, because sopuli should be using the same software as anyone else. Maybe it’s the webview itself? (Using Mulch wv, although I’m not sure if mull using it) that’ll explain why it happens on both fennec and Mull, but not why only sopuli lol.

      If we already talking, do you mind checking (on whatever browser you’re using) if it crashes for you too?

      • Azzu@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        Crashes for me, too:

        Second failure launching org.mozilla.firefox/org.mozilla.fenix.customtabs.ExternalAppBrowserActivity, giving up
        android.os.TransactionTooLargeException: data parcel size 614820 bytes
        	at android.os.BinderProxy.transactNative(Native Method)
        	at android.os.BinderProxy.transact(BinderProxy.java:571)
        	at android.app.IApplicationThread$Stub$Proxy.scheduleTransaction(IApplicationThread.java:2746)
        	at android.app.servertransaction.ClientTransaction.schedule(ClientTransaction.java:136)
        	at com.android.server.wm.ClientLifecycleManager.scheduleTransaction(ClientLifecycleManager.java:47)
        	at com.android.server.wm.ActivityTaskSupervisor.realStartActivityLocked(ActivityTaskSupervisor.java:880)
        	at com.android.server.wm.RootWindowContainer.startActivityForAttachedApplicationIfNeeded(RootWindowContainer.java:2000)
        	at com.android.server.wm.RootWindowContainer.$r8$lambda$auelgeOhCvbItmS_07q5VFEb1ac(Unknown Source:0)
        	at com.android.server.wm.RootWindowContainer$$ExternalSyntheticLambda2.apply(Unknown Source:8)
        	at com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(PooledLambdaImpl.java:318)
        	at com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(PooledLambdaImpl.java:204)
        	at com.android.internal.util.function.pooled.OmniFunction.apply(OmniFunction.java:78)
        	at com.android.server.wm.ActivityRecord.forAllActivities(ActivityRecord.java:4270)
        	at com.android.server.wm.WindowContainer.forAllActivities(WindowContainer.java:1430)
        	at com.android.server.wm.WindowContainer.forAllActivities(WindowContainer.java:1423)
        	at com.android.server.wm.RootWindowContainer.lambda$attachApplication$15$RootWindowContainer(RootWindowContainer.java:1978)
        	at com.android.server.wm.RootWindowContainer$$ExternalSyntheticLambda20.accept(Unknown Source:6)
        	at com.android.server.wm.Task.forAllRootTasks(Task.java:3197)
        	at com.android.server.wm.WindowContainer.forAllRootTasks(WindowContainer.java:1806)
        	at com.android.server.wm.WindowContainer.forAllRootTasks(WindowContainer.java:1806)
        	at com.android.server.wm.WindowContainer.forAllRootTasks(WindowContainer.java:1806)
        	at com.android.server.wm.WindowContainer.forAllRootTasks(WindowContainer.java:1806)
        	at com.android.server.wm.WindowContainer.forAllRootTasks(WindowContainer.java:1806)
        	at com.android.server.wm.WindowContainer.forAllRootTasks(WindowContainer.java:1806)
        	at com.android.server.wm.WindowContainer.forAllRootTasks(WindowContainer.java:1799)
        	at com.android.server.wm.RootWindowContainer.attachApplication(RootWindowContainer.java:1964)
        	at com.android.server.wm.ActivityTaskManagerService$LocalService.attachApplication(ActivityTaskManagerService.java:6041)
        	at com.android.server.am.ActivityManagerService.attachApplicationLocked(ActivityManagerService.java:4595)
        	at com.android.server.am.ActivityManagerService.attachApplication(ActivityManagerService.java:4676)
        	at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:2404)
        	at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2517)
        	at android.os.Binder.execTransactInternal(Binder.java:1179)
        	at android.os.Binder.execTransact(Binder.java:1143)
        
          • Azzu@lemm.ee
            link
            fedilink
            arrow-up
            1
            ·
            1 year ago

            While it’s likely that sopuli changed something somewhere so that it fails, it’s still a Firefox bug btw. There’s just no reason it should crash.