1
0

Neu: DonCarne: Produkt-Klicks Fix

This commit is contained in:
Akamaru
2025-11-04 19:21:17 +01:00
parent bba9de5d4e
commit 38b042763c
2 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
// ==UserScript==
// @name DonCarne: Produkt-Klicks Fix
// @namespace https://git.ponywave.de/Akamaru/Userscripts
// @version 1.0
// @description Umgeht blockiertes Clerk.io Click-Tracking und stellt normale Navigation wieder her
// @author Akamaru
// @match https://doncarne.de/*
// @grant none
// @updateURL https://git.ponywave.de/Akamaru/Userscripts/raw/branch/master/doncarne-product-click-fix.user.js
// @downloadURL https://git.ponywave.de/Akamaru/Userscripts/raw/branch/master/doncarne-product-click-fix.user.js
// ==/UserScript==
(function() {
'use strict';
// Event-Handler in Capture-Phase - läuft VOR Clerk.io's Event-Handlern
document.addEventListener('click', function(event) {
// Finde das geklickte Element oder einen Parent-Link
let target = event.target.closest('a[data-clerk-click-tracking-added="true"]');
if (target && target.href) {
// Stoppe alle Event-Propagation und Default-Verhalten
event.preventDefault();
event.stopPropagation();
event.stopImmediatePropagation();
// Navigiere direkt zur URL, ohne auf Clerk.io Tracking zu warten
window.location.href = target.href;
}
}, true); // true = Capture-Phase (vor Bubbling-Phase, wo Clerk.io's Handler läuft)
})();