Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add youtube tracker remover #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add youtube tracker remover #12

wants to merge 1 commit into from

Conversation

Nam0
Copy link

@Nam0 Nam0 commented May 10, 2024

Adding Regex "youtube": /(https://youtu.be/\w+)?.+/g to remove Youtube SI tracking information.
Added this.defaultSettings.youtube = true; for the setting to be enabled by default

			//youtube
			
			//example of youtube link
			// https://youtu.be/sXtryATp7dU?si=-b3JJeQMHAMx4TBa
			if (this.settings.youtube) {
			if (msgcontent.includes("https://youtu.be")) {
				msgcontent = this.sanitizeUrls(msgcontent, REGEX.youtube);

				if (this.settings.showToasts && !isFromSomeoneEsle) {
					Toasts.success("Successfully removed tracker from YouTube link!");
				}
			}

@wotanut
Copy link
Owner

wotanut commented Oct 5, 2024

I know this is old, sorry for the slow response, i'll check this pr shortly and merge it over the weekend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants