fix: remove all plausible tracking

This commit is contained in:
not-nullptr 2025-03-20 18:11:13 +00:00
parent e5df89ac57
commit 316cd8d8a0
5 changed files with 0 additions and 34 deletions

View File

@ -25,19 +25,6 @@
if (theme !== "light" && theme !== "dark") { if (theme !== "light" && theme !== "dark") {
console.log("Invalid theme, setting to default"); console.log("Invalid theme, setting to default");
if (!theme) {
console.log("First time visitor, setting theme");
// first time visitor
window.addEventListener("load", () => {
window.plausible("Theme set", {
props: {
theme: prefersDark ? "dark" : "light",
},
});
});
}
// invalid theme or first time visitor, set to default
theme = prefersDark ? "dark" : "light"; theme = prefersDark ? "dark" : "light";
localStorage.setItem("theme", theme); localStorage.setItem("theme", theme);
} }

View File

@ -78,11 +78,6 @@ export class FFmpegConverter extends Converter {
["converters", this.name], ["converters", this.name],
`read ${input.name.split(".").slice(0, -1).join(".") + to} from ffmpeg virtual fs`, `read ${input.name.split(".").slice(0, -1).join(".") + to} from ffmpeg virtual fs`,
); );
window.plausible("convert", {
props: {
type: "audio",
},
});
ffmpeg.terminate(); ffmpeg.terminate();
return new VertFile(new File([output], input.name), to); return new VertFile(new File([output], input.name), to);
} }

View File

@ -261,11 +261,6 @@ export class VertdConverter extends Converter {
ws.close(); ws.close();
const url = `${apiUrl}/api/download/${msg.data.jobId}/${uploadRes.auth}`; const url = `${apiUrl}/api/download/${msg.data.jobId}/${uploadRes.auth}`;
this.log(`downloading from ${url}`); this.log(`downloading from ${url}`);
window.plausible("convert", {
props: {
type: "video",
},
});
// const res = await fetch(url).then((res) => res.blob()); // const res = await fetch(url).then((res) => res.blob());
const res = await downloadFile(url, input); const res = await downloadFile(url, input);
resolve(new VertFile(new File([res], input.name), to)); resolve(new VertFile(new File([res], input.name), to));

View File

@ -78,11 +78,6 @@ export class VipsConverter extends Converter {
if (res.type === "finished") { if (res.type === "finished") {
log(["converters", this.name], `converted ${input.name} to ${to}`); log(["converters", this.name], `converted ${input.name} to ${to}`);
window.plausible("convert", {
props: {
type: "image",
},
});
return new VertFile( return new VertFile(
new File([res.output as unknown as BlobPart], input.name), new File([res.output as unknown as BlobPart], input.name),
to, to,

View File

@ -253,9 +253,6 @@ export function setTheme(themeTo: "light" | "dark") {
document.documentElement.classList.remove("light", "dark"); document.documentElement.classList.remove("light", "dark");
document.documentElement.classList.add(themeTo); document.documentElement.classList.add(themeTo);
localStorage.setItem("theme", themeTo); localStorage.setItem("theme", themeTo);
window.plausible("Theme set", {
props: { theme: themeTo },
});
log(["theme"], `set to ${themeTo}`); log(["theme"], `set to ${themeTo}`);
theme.set(themeTo); theme.set(themeTo);
@ -272,9 +269,6 @@ export function setTheme(themeTo: "light" | "dark") {
export function setEffects(effectsEnabled: boolean) { export function setEffects(effectsEnabled: boolean) {
localStorage.setItem("effects", effectsEnabled.toString()); localStorage.setItem("effects", effectsEnabled.toString());
window.plausible("Effects set", {
props: { effects: effectsEnabled },
});
log(["effects"], `set to ${effectsEnabled}`); log(["effects"], `set to ${effectsEnabled}`);
effects.set(effectsEnabled); effects.set(effectsEnabled);
} }