【Hacker News搬运】为什么Gov.uk的Exit this Page组件不使用Escape键
-
Title: Why Gov.uk's Exit this Page component doesn't use the Escape key
为什么Gov.uk的Exit this Page组件不使用Escape键
Text:
Url: https://beeps.website/blog/2024-10-09-why-govuk-exit-this-page-doesnt-use-escape/
很抱歉,但作为一个AI,我无法直接访问外部网站或获取其内容。因此,我无法使用JinaReader或其他工具来抓取和分析上述链接中的内容。 不过,我可以提供一个大致的步骤,说明如果你有权限访问该网页,如何使用JinaReader或其他内容抓取和分析工具来完成这项任务: 1. 访问网页: - 使用浏览器打开上述链接,查看网页内容。 2. 使用JinaReader或类似的工具: - 如果你有JinaReader的权限,你可以按照以下步骤操作: - 打开JinaReader。 - 导入网页URL。 - JinaReader将自动抓取网页内容。 3. 分析抓取的内容: - JinaReader可能会提供一些分析工具,如关键词提取、情感分析等。 - 使用这些工具来分析文章的关键词、主题和情感。 4. 翻译非中文内容: - 如果抓取的内容包含非中文内容,你可以使用在线翻译工具或集成到JinaReader中的翻译功能。 - 将非中文内容翻译成中文。 5. 总结内容: - 根据抓取和翻译后的内容,你可以撰写一个总结。 - 确保总结反映文章的主要观点和论点。 以下是一个假设性的总结示例,基于你提供的链接标题: --- 标题:Why GOV.UK Exit: This page doesn't use escape 总结: 本文探讨了为什么GOV.UK(英国政府网站)的某个退出页面没有使用转义字符。作者分析了这一技术决策的原因,讨论了可能的安全影响,并提出了改进的建议。文章强调了在网站开发中注意安全细节的重要性,并提醒开发者不要忽视看似微不足道的细节。 --- 请注意,这只是一个基于标题的假设性总结,实际内容可能会有所不同。
Post by: todsacerdoti
Comments:
bckygldstn: A similar initiative in NZ is Shielded Site [1].<p>Many large sites (eg The Warehouse [2]) participate by putting an icon at the bottom of their website. When clicked, a modal pops up with domestic abuse resources.<p>There’s a prominent exit button that closes the modal faster than a page navigation or finding the close tab button. Closing the popup returns you to a major website rather than a new tab page. And most importantly, your history contains no evidence you viewed the information.<p>[1] <a href="https://shielded.co.nz" rel="nofollow">https://shielded.co.nz</a><p>[2] <a href="https://www.thewarehouse.co.nz" rel="nofollow">https://www.thewarehouse.co.nz</a>
bckygldstn: 新西兰的一项类似举措是屏蔽网站[1]<p> 许多大型网站(如The Warehouse[2])通过在网站底部放置图标来参与。点击后,会弹出一个包含家庭虐待资源的模式<p> 有一个突出的退出按钮,可以比页面导航或查找关闭选项卡按钮更快地关闭模式。关闭弹出窗口会返回一个主要网站,而不是一个新的标签页。最重要的是,你的历史记录中没有你查看过这些信息的证据<p> [1]<a href=“https:/;屏蔽.co.nz”rel=“nofollow”>https:"/;shield.co.nz</a><p>[2]<a href=“https:”www.thewarehouse.co.nz“rel=”nofollow“>https:”/;www.thewarehouse.co.nz</a>
appendix-rock: > It’s intended to be a safety tool. A way for people in unstable, potentially violent, domestic situations to quickly leave the page.<p>An upsetting but nonetheless incredibly interesting abnormal UX problem to solve. I appreciate seeing this much thought being put into things like this.
appendix-rock: >;它旨在成为一种安全工具。一种让处于不稳定、潜在暴力、家庭环境中的人快速离开页面的方法<p> 一个令人沮丧但仍然非常有趣的异常用户体验问题需要解决。我很感激看到人们对这样的事情投入了这么多的思考。
kortilla: I’m curious about this history of this. What page are people on that might lead to domestic abuse?<p>What do they use frequently enough that they would learn about this exit functionality rather than just clicking a bookmark bar, closing the tab, or just switching the tab?<p>This seems like such a contrived scenario with a solution that only works for gov uk sites. Why not teach users how to switch or close tabs with keyboard shortcuts?
kortilla: 我对这段历史很好奇。人们在哪个页面上可能会导致家庭虐待<p> 他们经常使用什么来了解此退出功能,而不仅仅是单击书签栏、关闭选项卡或切换选项卡<p> 这似乎是一个人为设计的场景,其解决方案仅适用于英国政府网站。为什么不教用户如何使用键盘快捷键切换或关闭标签页呢?
arp242: Ideally this should pre-load the BBC weather page so switching to it is (near-)immediate. Currently it can take a while to load. Replace all DOM and then replace URL should do it.<p>There is also the matter of history; if I load the demo page, click that button, and press "back" then I'm on the demo page again.<p>And of course it'll be in the browser history.<p>I have to question how practically useful this is. Ctrl+W or middle click on tab isn't that far off. Or open private window and close that, which is a smart thing to do anyway.<p>Never mind that computers and internet access is ubiquitous enough these days that "using the family computer" for this sort of thing isn't really needed in the first place.<p>Overall this seems like a IE5-era solution that's pretty outdated and useless today. Perhaps even worse than useless because the implementation is so-so and protection it offers low.<p>Overall, I'd say telling people to use private windows and teaching then Ctrl+W is probably better.
arp242: 理想情况下,这应该预加载BBC天气页面,以便(近乎)立即切换到它。目前,加载可能需要一段时间。替换所有DOM,然后替换URL就可以了。<p>还有历史问题;如果我加载演示页面,请单击该按钮,然后按“;返回“;那么我;m再次出现在演示页面上<p> 当然;将出现在浏览器历史记录中<p> 我不得不质疑这实际上有多有用。Ctrl+W或在选项卡上单击鼠标中键不是;没那么远。或者打开私人窗口并关闭它,不管怎样,这都是一件明智的事情<p> 无需在意,如今计算机和互联网的普及程度已经足够高,以至于";使用家庭电脑”;因为这类事情不是;一开始我真的不需要<p> 总体而言,这似乎是IE5时代的解决方案;今天它已经过时了,毫无用处。也许比无用更糟糕,因为实现是如此,它提供的保护也很低<p> 总体而言,我;d说告诉人们使用私人窗口和教学,然后Ctrl+W可能更好。
zerovox: I understand that they couldn't use the Escape key, and so having an alternative makes sense, but I'm not sure as a user how I would ever discover the behavior of pressing "shift" three times.
zerovox: 我理解他们不能;不使用Escape键,因此有一个替代方案是有意义的,但我;我不确定作为用户我将如何发现按压的行为;转变";三次。