News for hackers. Stuff that matters.
Re:Chrome 64 now trims messy links when you share them by Osiris on Monday February 19, 2018 @04:13PM (#16415797)
Exactly. When I share links, I always test a link (load the link in a private window) after stripping out the extra URL info before sharing it. I'm not sure how a browser would do that automatically.
Re:Chrome 64 now trims messy links when you share them by labster on Monday February 19, 2018 @04:23PM (#16415858)
Actually your process seems pretty easy to automate. Reload a page until you get the minimum set needed to reproduce the current DOM.
Re:Chrome 64 now trims messy links when you share them by yjftsjthsd-h on Monday February 19, 2018 @04:29PM (#16415896)
With JavaScript in play, even reloading the exact same page might yield a different DOM
Re:Chrome 64 now trims messy links when you share them by colejohnson66 on Tuesday February 20, 2018 @01:32AM (#16418260)
Or corporate websites where something as simple as looking at my schedule has a “query run” time
Re:Chrome 64 now trims messy links when you share them by dullgiulio on Monday February 19, 2018 @04:27PM (#16415881)
That has exponential complexity, is network-bound (slow) and still doesn't handle many cases (for example a "current DOM" where all relative links and images are broken).
Re:Chrome 64 now trims messy links when you share them by labster on Monday February 19, 2018 @05:24PM (#16416246)
Compared to GGP's approach of having a human do it, this is still fast.

Also not sure why you'd want to share a link to a page where all the images and links are broken in the first place.

Re:Chrome 64 now trims messy links when you share them by bluepnume on Monday February 19, 2018 @04:39PM (#16415963)
Should be O(n) unless you're trying to optimize for every single permutation of query param, right? I'd assume the majority of the time the individual params would be independent from one another. Plus you'd only need to do it once in a while for any given base url and persist the result.
Re:Chrome 64 now trims messy links when you share them by Osiris on Monday February 19, 2018 @04:26PM (#16415877)
If that's what Chrome is doing, verifying that the shortened URL produces the same DOM, then I wouldn't have a problem with that.
Re:Chrome 64 now trims messy links when you share them by ikeboy on Monday February 19, 2018 @04:26PM (#16415876)
Except many pages have unique data on each load
Re:Chrome 64 now trims messy links when you share them by illnewsthat on Monday February 19, 2018 @04:41PM (#16415968)
I do the same thing.

That being said, a huge majority of users wouldn't take these extra steps.