mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
fix(app): strip youtube is= share tracking param (#3225)
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
|||||||
const MAX_REWRITE_DEPTH = 2;
|
const MAX_REWRITE_DEPTH = 2;
|
||||||
const ABSOLUTE_HTTP_URL_PATTERN = /^https?:\/\//i;
|
const ABSOLUTE_HTTP_URL_PATTERN = /^https?:\/\//i;
|
||||||
const YOUTUBE_HOST_PATTERN = /(?:^|\.)(?:youtube\.com|youtu\.be|youtube-nocookie\.com)$/i;
|
const YOUTUBE_HOST_PATTERN = /(?:^|\.)(?:youtube\.com|youtu\.be|youtube-nocookie\.com)$/i;
|
||||||
const YOUTUBE_TRACKING_PARAMS = ['si', 'pp'] as const;
|
const YOUTUBE_TRACKING_PARAMS = ['si', 'is', 'pp'] as const;
|
||||||
|
|
||||||
interface DecodeContext {
|
interface DecodeContext {
|
||||||
readonly originalURL: string;
|
readonly originalURL: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user