4 ms·
codegolfing in a text-only web page is next level irony
by datameta 2y ago
codegolfing in a text-only web page is next level irony
- wyum 2y agoThis is the standard Google analytics snippet. It's probably automatically minified, maybe code-golfed. In any case, the author of the page did not also write this snippet.
- datameta 2y agoGood point, didn't know that. Figured it was a cheeky dev.
- Lockal 2y agoThe funny part that people start to forget is that this version of snippet was introduced when original one (ga.js) was blocked by most of the world (back in the days when Firefox became browser number one and Adblock Plus was in use). New snipped was designed to break Adblock Plus, which was unable to block inline scripts (and simple blocking analytics.js caused js failures in the same script block). So it was malicious dark pattern. Obviously eventually it was bypassed, which required fake replacements like https://github.com/gorhill/uBlock/blob/master/src/web_accessible_resources/google-analytics_analytics.js https://github.com/gorhill/uBlock/blob/master/src/web_access...