trying to fix medium targets
This commit is contained in:
parent
4114e682ab
commit
a42db700ac
|
@ -1,12 +1,26 @@
|
|||
const targets = ["translate.google.com", "translate.google.no"];
|
||||
const targets = [
|
||||
"translate.google.com",
|
||||
"translate.google.no"
|
||||
];
|
||||
|
||||
const redirects = ["https://translate.metalune.xyz", "https://simplytranslate.org",
|
||||
"https://st.alefvanoon.xyz",
|
||||
"https://translate.josias.dev",
|
||||
"https://translate.namazso.eu",
|
||||
"https://translate.riverside.rocks",];
|
||||
const redirects = [
|
||||
"https://translate.metalune.xyz",
|
||||
"https://simplytranslate.org",
|
||||
"https://st.alefvanoon.xyz",
|
||||
"https://translate.josias.dev",
|
||||
"https://translate.namazso.eu",
|
||||
"https://translate.riverside.rocks",
|
||||
"https://manerakai.asuscomm.com:447",
|
||||
"https://translate.bus-hit.me"
|
||||
];
|
||||
|
||||
export default {
|
||||
targets,
|
||||
redirects,
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,18 +1,16 @@
|
|||
const targets = [
|
||||
"medium.com",
|
||||
/.*.medium.com/,
|
||||
/* Other domains of medium blogs, source(s):
|
||||
* https://findingtom.com/best-medium-blogs-to-follow/#1-forge
|
||||
* */
|
||||
"towardsdatascience.com",
|
||||
"uxdesign.cc",
|
||||
"uxplanet.org",
|
||||
"betterprogramming.pub",
|
||||
"aninjusticemag.com",
|
||||
"betterhumans.pub",
|
||||
"psiloveyou.xyz",
|
||||
"entrepreneurshandbook.co",
|
||||
"blog.coinbase.com"
|
||||
/.*medium.com/,
|
||||
/.*\.medium.com/,
|
||||
// Other domains of medium blogs, source(s): https://findingtom.com/best-medium-blogs-to-follow/#1-forge
|
||||
/towardsdatascience.com/,
|
||||
/uxdesign.cc/,
|
||||
/uxplanet.org/,
|
||||
/betterprogramming.pub/,
|
||||
/aninjusticemag.com/,
|
||||
/betterhumans.pub/,
|
||||
/psiloveyou.xyz/,
|
||||
/entrepreneurshandbook.co/,
|
||||
/blog.coinbase.com/
|
||||
];
|
||||
|
||||
const redirects = [
|
||||
|
|
|
@ -652,7 +652,7 @@ browser.webRequest.onBeforeRequest.addListener(
|
|||
redirect = {
|
||||
redirectUrl: redirectReddit(url, initiator, details.type),
|
||||
};
|
||||
} else if (mediumDomains.includes(url.host)) {
|
||||
} else if (mediumDomains.some((rx) => rx.test(url.host))) {
|
||||
redirect = {
|
||||
redirectUrl: redirectMedium(url, initiator),
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue