-
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -571,6 +571,21 @@ function redirect(url, type, initiator, forceRedirection, incognito) { | |
if (url.pathname == '/') return randomInstance | ||
return `${randomInstance}?url=${encodeURIComponent(url.href)}` | ||
} | ||
case "priviblur": { | ||
if (url.hostname.startsWith("blog")) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ManeraKai
Author
Member
|
||
return `${randomInstance}/blog${url.pathname}${url.search}` | ||
|
||
if (url.hostname.startsWith("assets")) | ||
return `${randomInstance}/assets${url.pathname}${url.search}` | ||
|
||
if (url.hostname.startsWith("static")) | ||
return `${randomInstance}/static${url.pathname}${url.search}` | ||
|
||
const reg = /^([0-9]+)\.media\.tumblr\.com/.exec(url.hostname) | ||
if (reg) | ||
return `${randomInstance}/media/${reg[1]}${url.pathname}${url.search}` | ||
return `${randomInstance}${url.pathname}${url.search}` | ||
} | ||
default: { | ||
return `${randomInstance}${url.pathname}${url.search}` | ||
} | ||
|
@@ -742,6 +757,7 @@ const defaultInstances = { | |
'tuboSoundcloud': ['https://tubo.migalmoreno.com'], | ||
'tekstoLibre': ['https://davilarek.github.io/TekstoLibre'], | ||
'skyview': ['https://skyview.social'], | ||
'priviblur': ['https://pb.bloat.cat'], | ||
} | ||
|
||
function initDefaults() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If I'm not mistaken, doesn't this only handle
blog.tumblr.com
instead of any arbitrarily blog name? IEstaff.tumblr.com
?