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!");
}
}
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