Merge pull request #138 from austinhuang0131/patch-2

Add Teddit and Snew to reddit redirect options
This commit is contained in:
Simon Brazell 2020-12-03 09:26:06 +11:00 committed by GitHub
commit 3d45eb3089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -110,8 +110,10 @@ const redditDomains = [
]; ];
const redditBypassPaths = /\/(gallery\/poll\/rpan\/settings\/topics)/; const redditBypassPaths = /\/(gallery\/poll\/rpan\/settings\/topics)/;
const oldRedditViews = [ const oldRedditViews = [
"https://teddit.net", // privacy
"https://snew.notabug.io", // anti-censorship
"https://old.reddit.com", // desktop "https://old.reddit.com", // desktop
"https://i.reddit.com", // mobile "https://i.reddit.com" // mobile
]; ];
const oldRedditDefaultView = oldRedditViews[0]; const oldRedditDefaultView = oldRedditViews[0];
const googleMapsRegex = /https?:\/\/(((www|maps)\.)?(google\.).*(\/maps)|maps\.(google\.).*)/; const googleMapsRegex = /https?:\/\/(((www|maps)\.)?(google\.).*(\/maps)|maps\.(google\.).*)/;