-
Notifications
You must be signed in to change notification settings - Fork 0
/
redirect-lemmy-mlmym.user.js
60 lines (57 loc) · 1.4 KB
/
redirect-lemmy-mlmym.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// ==UserScript==
// @name Redirect Lemmy To mlmym Interface (WIP)
// @description Redirects supported Lemmy instances to their installed mlmym interface, which tries to emulate the interface of old.reddit
// @author Chris Lowles
// @version 2024.12.23
// @updateURL https://raw.githubusercontent.com/chrislowles/userscripts/main/redirect-lemmy-mlmym.user.js
// @downloadURL https://raw.githubusercontent.com/chrislowles/userscripts/main/redirect-lemmy-mlmym.user.js
// ==/UserScript==
let supported = [
"lemmy.world",
"lemmy.dbzer0.com",
"reddthat.com",
"ttrpg.network",
"lemmy.eco.br",
"lemmy.today",
"monyet.cc",
"bookwormstory.social",
"lemmy.ca",
"lemmy.sdf.org",
"literature.cafe",
"lemdro.id",
"lemmy.nz",
"endlesstalk.org",
"kerala.party",
"lemy.lol",
"leminal.space",
"slrpnk.net",
"thelemmy.club",
"startrek.website",
"lemmings.world"
];
let mlmym = [
"old.lemmy.world",
"old.lemmy.dbzer0.com",
"old.reddthat.com",
"old.ttrpg.network",
"old.lemmy.eco.br",
"old.lemmy.today",
"old.monyet.cc",
"old.bookwormstory.social",
"old.lemmy.ca",
"old.lemmy.sdf.org",
"old.literature.cafe",
"old.lemdro.id",
"old.lemmy.nz",
"old.endlesstalk.org",
"old.kerala.party",
"m.lemy.lol",
"old.leminal.space",
"old.slrpnk.net",
"old.thelemmy.club",
"old.startrek.website",
"old.lemmings.world"
];
supported.forEach((a, i) => {
if (window.location.host == a) window.location.host = mlmym[i];
});