Accelerated Mobile Pages
I’ve been following most of the (Google) Accelerated Mobile Pages (AMP) discussion (most would say debate) through episodes of This Week in Google where Leo Laporte plays an interesting foil to Jeff Jarvis over the issue. The other day I came across a bookmark from Jeremy Keith entitled Need to Catch Up on the AMP Debate? which is a good catch up by CSS-Tricks. It got me thinking about creating a bookmarklet to strip out the canonical URL for AMP pages (the spec requires them to exist in markup) to make them easier to bookmark and share across social media. In addition to social sites wrapping their URLs with short URLs (which often die or disappear as the result of linkrot) or needing to physically exit platforms (I’m looking at you Facebook with your three extra life-sucking clicks meant to protect your walled garden) to properly bookmark canonical URLs for later consumption, I’ve run across several Google prepended URLs which I’d rather not share in lieu of the real ones.
Apparently I wasn’t the first to think of such a thing, nor am I the second. Last night I came across a bit of research and genius by Kevin Marks who referenced a bookmarklet by Alan Storm back in January for switching to an AMP’d version of a web page (in an effort to cut down on the large JavaScript and advertising payloads that come along with most modern web pages). Naturally there was also a bookmarklet to switch back to the canonical (and non-Google) URL included for those who want to share an original.
Clean and Simple URLs
Kevin then took it a step further and included a JavaScript bookmarklet that shortens URLs down to their pure essence.
As an example, his canonical bookmarklet will take something ugly like
http://mashable.com/2017/03/26/dog-chasing-hockey-puck-joy/?utm_cid=mash-com-Tw-main-link#xvCRlgf_vsqY
and strip it down to its most basic
http://mashable.com/2017/03/26/dog-chasing-hockey-puck-joy
so that if you want to share it, it will remove all of the tracking cruft that comes along for the ride.
Even worse offenders like
https://www.nytimes.com/2017/03/24/opinion/sunday/chinas-communists-embrace-religion.html?action=click&pgtype=Homepage&clickSource=story-heading&module=opinion-c-col-left-region®ion=opinion-c-col-left-region&WT.nav=opinion-c-col-left-region&_r=0
suddenly become cleaner and clearer
https://www.nytimes.com/2017/03/24/opinion/sunday/chinas-communists-embrace-religion.html
These examples almost remind me of the days of forwarding chain letter emails where friends couldn’t be bothered to cut out the 10 pages of all the blockquoted portions of forwards or the annoying
> > >> >>
> > >> >>
> > >> >>
nonesense before they sent it to you… The only person who gets a pass on this anymore is Grandpa, and even he’s skating on thin ice.
Remember, friends don’t let friends share ridiculous URLs…
So in that spirit, here are the three bookmarklets that you can easily drag and drop into the bookmark bar on your browser:
The code for the three follow respectively for those who prefer to view the code prior to use, or who wish to fashion their own bookmarklets:
As a bonus tip, Kevin Marks’ post briefly describes how one can use their Chrome browser on mobile to utilize these synced bookmarklets more readily.
Alternatives
Of course, if you want the AMP version of pages just for their clean appearance, then perhaps you may appreciate the Mercury Reader for Chrome. There isn’t a bookmarklet for it (yet?), but it’ll do roughly the same job, but without the mobile view sizing on desktop. And then while looking that link up, I also notice Mercury also has a one line of code AMP solution too, though I recommend you brush up on what AMP is, what it does, and do you really want it before adding it.
“friends don’t let friends share ridiculous URLs…” web archives don’t like ridiculous URLs either 😉
Watched Online Verification Skills — Video 2: Investigate the Source by Mike Caulfield from NewsWise | YouTube
For those who like browser bookmarklets and shortcuts, I’ve dug up some code that will take a URL and automatically remove the additional path (as demonstrated manually in the video) to leave you with the base URL. It can be found here on my site: https://boffosocko.com/2017/03/27/to-amp-or-not-to-amp-that-is-the-question/. Perhaps it will help people verify sites even quicker?
Syndicated copies to:
Syndicated copies:
Replied to Civix Releases New Online Media Literacy Videos by Mike Caulfield (Hapgood)
As I read this and tinker around a bit with some of the resources, including one for canadafactcheck.ca mentioned within one of the videos and add the “Wikipedia” to the Omnibar or try the “-site:” trick, the results there aren’t very solid themselves. Similarly a search for NewsWise.ca is rough because there are dozens of similar products with the same name which makes me think about the phrase “Doctor heal thyself.”
On the idea of the “-site:xyz.com” trick, perhaps one could create a browser extension or a bookmarklet that would use javascript to take the URL in the browser bar and massage it to return the requisite string and then execute the appropriate search so that with a simple click of a button, anyone can “remember” how to do it?
Similarly with searching for the root URLs of particular outlets by clipping off the longer paths of URLs one could use a browser bookmarklet to accomplish this with a simple click and save the seconds involved with highlighting and pasting? The more dead simple and quicker it can be, the better off we are. I’ve documented a browser bookmarklet on my site that trims news article URLs down to the base URL: https://boffosocko.com/2017/03/27/to-amp-or-not-to-amp-that-is-the-question/
As an example of this type of functionality, albiet probably with a lot more programming and manual work, Brill’s company NewsGuard has developed a Chrome browser extension that is meant to provide visual indicators on pages and in search for levels of fact checking: https://chrome.google.com/webstore/detail/newsguard/hcgajcpgaalgpeholhdooeddllhedegi?hl=en
Syndicated copies to:
Syndicated copies:
To AMP, or Not To AMP, That is the Question boffosocko.com/2017/03/27/to-… via @instapaper