3 ms·
just inject this with your favorite JS injection plugin let oldTanh = Math.tanh; Math.tanh = x => oldTanh(x) + Math.random()/10000000;
by qurren 3mo ago
just inject this with your favorite JS injection plugin
let oldTanh = Math.tanh;
Math.tanh = x => oldTanh(x) + Math.random()/10000000;
- sanxiyn 3mo agoThe article addresses this: search for "No noise".
- deleted 3mo ago[deleted]
- chjj 3mo agoit's elegant, but i prefer: Math.tanh = Math.random;
- cozzyd 3mo agosince tanh is probably being used as a sigmoid, it's probably better to replace with just randomly changing the sign.
- gruez 3mo agoGreat, now you'll be outed as "hides fingerprint", which is probably more identifying than if you returned a normal value.
- hahahaa 3mo agohttps://xkcd.com/1105/ https://xkcd.com/1105/
- Klonoar 3mo agoMultiple anti-bot vendors will detect that replacement and use it as part of their fingerprinting process.
- bakugo 3mo agoIf this becomes common, it's trivially detectable with good ol' toString().
- qurren 3mo agoIt's trivial to replace toString() as well Maybe the right solution is an LLM that reads the fingerprinting code and adapts the counter-measure accordingly in real time.