mirror of
https://github.com/ironfox-oss/IronFox.git
synced 2026-08-01 02:16:36 -04:00
Applies consistent formatting and naming to patches Signed-off-by: celenity <celenity@celenity.dev>
37 lines
1.5 KiB
Diff
37 lines
1.5 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: celenity <celenity@celenity.dev>
|
|
Date: Sun, 05 Jul 2026 20:19:20 +0000
|
|
Subject: [PATCH] Gecko - Remove URL tracking parameters
|
|
|
|
Prevents the browser from appending URL tracking parameters to Mozilla support links.
|
|
|
|
Signed-off-by: celenity <celenity@celenity.dev>
|
|
---
|
|
diff --git a/toolkit/content/widgets/moz-support-link/moz-support-link.mjs b/toolkit/content/widgets/moz-support-link/moz-support-link.mjs
|
|
index 170dc9cab28d6..320ab9c5bcbe2 100644
|
|
--- a/toolkit/content/widgets/moz-support-link/moz-support-link.mjs
|
|
+++ b/toolkit/content/widgets/moz-support-link/moz-support-link.mjs
|
|
@@ -103,9 +103,9 @@ export default class MozSupportLink extends HTMLAnchorElement {
|
|
#setHref() {
|
|
let supportPage = this.getAttribute("support-page") ?? "";
|
|
let base = MozSupportLink.SUPPORT_URL + supportPage;
|
|
- this.href = this.hasAttribute("utm-content")
|
|
- ? formatUTMParams(this.getAttribute("utm-content"), base)
|
|
- : base;
|
|
+ this.href = base;
|
|
+// ? formatUTMParams(this.getAttribute("utm-content"), base)
|
|
+// : base;
|
|
}
|
|
}
|
|
customElements.define("moz-support-link", MozSupportLink, { extends: "a" });
|
|
@@ -121,7 +121,7 @@ customElements.define("moz-support-link", MozSupportLink, { extends: "a" });
|
|
* Otherwise the url in unmodified form.
|
|
*/
|
|
export function formatUTMParams(contentAttribute, url) {
|
|
- if (!contentAttribute) {
|
|
+ if (true) {
|
|
return url;
|
|
}
|
|
let parsedUrl = new URL(url);
|
|
--
|