TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

iOS 11 Safari will automatically strip AMP links from shared URLs

534 点作者 OberstKrueger超过 7 年前

35 条评论

cramforce超过 7 年前
TL of AMP here. Just wanted to clarify that we specifically requested Apple (and other browser vendors) to do this. AMP&#x27;s policy states that platforms should share the canonical URL of an article whenever technically possible. This browser change makes it technically possible in Safari. We cannot wait for other vendors to implement.<p>It appears Safari implemented a special case. We&#x27;d prefer a more generic solution where browsers would share the canonical link by default, but this works for us.
评论 #15086217 未加载
评论 #15088706 未加载
评论 #15086296 未加载
评论 #15086375 未加载
评论 #15086440 未加载
评论 #15087948 未加载
评论 #15087456 未加载
评论 #15090333 未加载
评论 #15086223 未加载
评论 #15087515 未加载
评论 #15086358 未加载
评论 #15086378 未加载
评论 #15089054 未加载
评论 #15086537 未加载
评论 #15087340 未加载
评论 #15088454 未加载
评论 #15086801 未加载
评论 #15086735 未加载
评论 #15088903 未加载
评论 #15088852 未加载
评论 #15090859 未加载
评论 #15088332 未加载
评论 #15086678 未加载
评论 #15089028 未加载
millstone超过 7 年前
I hope the next step is a way to strip AMP links from all URLs, backfilling the &quot;Disable AMP&quot; setting that Google ought to have provided.<p>AMP has always worked poorly on iOS: it has different scrolling, it breaks reader mode, and it breaks status bar autohide and jump-to-top. Perhaps Apple would be less hostile to AMP if the implementation were better.
评论 #15086076 未加载
评论 #15086005 未加载
评论 #15086201 未加载
评论 #15094966 未加载
OtterCoder超过 7 年前
Thank heavens. Google&#x27;s efforts to &#x27;improve&#x27; the web have been disastrous. Like turning every list of facts into a pointless ramble because Google needs 1000 words of &#x27;rich content&#x27;. And Amp being a push to hobble pages by making them into a proprietary cache format instead of encouraging simpler HTML.
评论 #15086235 未加载
评论 #15085696 未加载
评论 #15086014 未加载
recursive超过 7 年前
I don&#x27;t know much about the implementation details of AMP. But my perspective as an end user is that it&#x27;s pretty great. Non-amp pages tend to take multiple seconds to get interactive, and then the content jumps around as images and ads and fonts load. AMP tends to be usable in under half a second.
评论 #15085964 未加载
评论 #15085975 未加载
评论 #15086252 未加载
评论 #15086122 未加载
评论 #15086286 未加载
评论 #15086022 未加载
评论 #15088869 未加载
评论 #15086755 未加载
评论 #15086320 未加载
plasma超过 7 年前
Here&#x27;s my AMP experience on Reddit:<p>1) Click the AMP link in Google 2) See half the reddit thread comments, since AMP is a cached older version, I then need to click &quot;View full comments&quot; which gets me to the mobile reddit link I wanted in the first place<p>3) For some reason, links in AMP reddit dont let you open in a new window -- which I often want to do when reading comments inline and see someone post a link in a comment. Frustrating.<p>AMP cost me more time and effort than having just gone to the non-AMP link directly.
评论 #15086564 未加载
chipotle_coyote超过 7 年前
Just to make sure I&#x27;m following this myself: this isn&#x27;t about disabling AMP, it&#x27;s about making sure that URLs that you send to other applications or the clipboard from Safari will be the true URLs of the original web page, not AMP URLs. Right? That&#x27;s the only way I can read &quot;strip AMP links from shared URLs,&quot; but a lot of comments here are piling on to AMP itself. Which I understand (I don&#x27;t like it for a lot of the reasons already brought up here, both in terms of philosophy and usability), but I don&#x27;t think that&#x27;s what we&#x27;re actually talking about.
评论 #15086291 未加载
评论 #15086951 未加载
评论 #15086629 未加载
评论 #15086273 未加载
matt4077超过 7 年前
People in this thread seem to be overreacting like my immune system on strawberries....<p>Apple isn&#x27;t taking up the good fight against AMP. They&#x27;re simply removing it from URLs when those are shared via the build-in &quot;share&quot; functionality.<p>99% of interactions with AMP pages will see no impact. It seems like it should be uncontroversial that it is preferable to use the canonical non-AMP URI when sharing, so as to invoke content-negotiation between that page and the devise of whoever clicks on the shared link.
评论 #15086359 未加载
yegle超过 7 年前
It might be simply because Safari respect <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Canonical_link_element" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Canonical_link_element</a><p><pre><code> &lt;link rel=&quot;canonical&quot; href=&quot;http:&#x2F;&#x2F;www.cnn.com&#x2F;2017&#x2F;08&#x2F;23&#x2F;politics&#x2F;trumps-ire-at-aides-advice&#x2F;index.html&quot;&gt; </code></pre> EDIT: correct HTML element &lt;link rel=&quot;canonical&quot;&gt;
评论 #15086114 未加载
SubiculumCode超过 7 年前
I detest AMP and everything it stands for. I&#x27;d like to see this in Firefox.
评论 #15086239 未加载
评论 #15086131 未加载
评论 #15086093 未加载
评论 #15086548 未加载
Angostura超过 7 年前
I wish it had an option to simply strip AMP in all circumstances. I quite often copy &amp; paste URLs into e-mails, for example. It&#x27;s irksome to have to request the desktop version just to get the proper domain and URL.
评论 #15086501 未加载
mrmondo超过 7 年前
I absolutely support this move, I&#x27;ve been trying to rid myself of AMP since it was released and this at least stops me from having to clean up URLs when sharing them.
评论 #15086344 未加载
whalesalad超过 7 年前
I guess I am the only person who appreciates AMP. I really love the abbreviated version of things, without all the extra crap that has to load over the wire to render what amounts to a few paragraphs I&#x27;d like to read.
tannhaeuser超过 7 年前
Hopefully Apple fighting AMP makes it a non-starter going forward now since it isn&#x27;t reaching lucrative iOS users.
评论 #15086020 未加载
评论 #15086228 未加载
评论 #15086243 未加载
评论 #15086155 未加载
Fej超过 7 年前
Anyone else think that the EU is going to file an antitrust suit against Google over AMP? Seems possible given their lack of hesitance in the past.
mratzloff超过 7 年前
Accelerated Mobile Pages, for those who are curious.<p><a href="https:&#x2F;&#x2F;www.ampproject.org" rel="nofollow">https:&#x2F;&#x2F;www.ampproject.org</a>
NathanWilliams超过 7 年前
I got so sick of AMP links I switched to Bing as default. Compared to google is sucks, but still better than dealing with AMP pages. When I have to, I use <a href="https:&#x2F;&#x2F;encrypted.google.com" rel="nofollow">https:&#x2F;&#x2F;encrypted.google.com</a> which is currently AMP free.<p>I would switch back immediately, if I could disable AMP on my google account.
jonluca超过 7 年前
Hopefully it&#x27;ll fix some of the issues with getting redirected on desktops when people share links here&#x2F;on reddit
nodamage超过 7 年前
My understanding is that AMP pages load a cached version of the content inside a nested iframe. Doesn&#x27;t this break browser extensions&#x2F;bookmarklets that rely on processing the current HTML on the loaded page? Stuff like Instapaper or Pocket, for example?
drawkbox超过 7 年前
AMP reminds me of AOL&#x27;s web browser back in the day and possibly Facebook today, directing everything through their network and controlling the experience.<p>AOL used to break lots of sites&#x2F;graphics&#x2F;scripts which noone would put up with today, AMP just makes you use and run everything through Google or else. This is a move to control more of the web through a walled garden and goes against the distributed nature of the web.<p>The one thing that AMP may be beneficial for is archival purposes, preserving content past when another source may keep it. However, knowing Google products and how they are killed off like George R.R. Martin characters, no hope for that.
emilfihlman超过 7 年前
AMP is horrible and should just be buried.
makecheck超过 7 年前
Here is how Safari could fix the mobile web in a matter of weeks:<p>1. If a site downloads more than 100K, halt the page load or display a &quot;too much data&quot; error.<p>2. If a site takes more than 1 second to render, halt the page load or display a &quot;too long to load&quot; error.<p>Do that for a few days and maybe these absurd sites would lose enough views that they might actually bother to figure out where their data is going.<p>I recently had to browse with &quot;data roaming&quot; at the low low price of $2.05 per MEGAbyte and had to disable pretty much everything on my phone within minutes.
评论 #15087689 未加载
lokedhs超过 7 年前
I only wish there was a way to automatically have those pesky t.co links resolved when sharing.<p>I don&#x27;t use Twitter, but other people do, and when they share a link to me I&#x27;d like to be able to 1) see what I am clicking on, and 2) avoid sending analytics information to Twitter when I do so.
sergiotapia超过 7 年前
I love Apple the most when they throw their weight around for the benefit of the end user. It&#x27;s pretty clear that Google&#x27;s main concern is ads ads ads.<p>Apple already has my money, they focus 110% on making my life easier and their products fantastic. Go Apple!
评论 #15086087 未加载
评论 #15086080 未加载
guelo超过 7 年前
Would be great if it got rid of twitter shortened urls and other similar walled-garden cruft.
Nuance超过 7 年前
Must&#x27;ve resulted from this: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;tim_cook&#x2F;status&#x2F;851111291229847552" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;tim_cook&#x2F;status&#x2F;851111291229847552</a>
jtl999超过 7 年前
Thank goodness<p>On a related note, anyone know an extension for desktop Chrome that converts AMP pages to non-AMP pages? Or is that not programmatically possible?
swlkr超过 7 年前
Nice, I do this manually right now.
pcora超过 7 年前
Yes! Yes! 100 times yes! Thank you Apple!!<p>I hate that amp crap! It&#x27;s the main reason for moving to ddg.
评论 #15086352 未加载
daveheq超过 7 年前
Haha. Apple officially thinks Google is a nuisance with news sites, like Adobe with Flash.
breatheoften超过 7 年前
Hurray!!
评论 #15086354 未加载
rc_bhg超过 7 年前
wtf is Amp?
LeicaLatte超过 7 年前
Don&#x27;t think Apple will accept any amount of billions from Google to let AMP pass through.
评论 #15086348 未加载
评论 #15086931 未加载
bhhaskin超过 7 年前
Good on Apple for standing up to Google. This is great for an open web.
评论 #15086160 未加载
yakz超过 7 年前
If your content is valuable, why would you convert it into a Google format, upload it to Google servers, and allow them to serve it wrapped in a Google page?<p>Google should appreciate the ad revenue from linking to your valuable content. Don&#x27;t give Google more control over your content.
Sargos超过 7 年前
A lot of people are going to &quot;cheer&quot; this move but this is yet another anti-web move that Apple has made without regard to standards or how it will affect other areas of tech. Apple has a clear record of flouting standardized technologies in Safari like breaking iframe sizing in iOS mobile and not supporting many common APIs and is very opaque about whether or not they even view the web as a first class citizen. The code I work on almost has as many Safari hacks as we have IE hacks.<p>If Apple would stick to just making great hardware and products and follow the standards like other vendors do then I feel like the whole tech world would be better off.<p>Edit: Apparently I need to spell out in more detail my arguments because if read at surface level people only focus on AMP. This isn&#x27;t about AMP. This is about sharing a link to something you are viewing. You are currently viewing the AMP page and that might look a certain way or even contain a certain type of graph that looks a certain way because it&#x27;s static and fast to load. If you click Share and send this to a friend they will receive an entirely different page that might look different than what you were seeing. I don&#x27;t think it&#x27;s a good thing that we can no longer trust sharing a page with someone else. Now the ultimate destination is being edited behind the scenes without you knowing. It&#x27;s a slippery slope that, like other things Apple has done, have possibly bad consequences in the future. The road to Hell is paved with good intentions after all.
评论 #15085795 未加载
评论 #15085936 未加载
评论 #15085902 未加载
评论 #15086530 未加载
评论 #15086687 未加载