跳到主要内容
Canonical

Canonical EN

Web Guy · Firefox

Allows you to quickly navigate to or copy the canonical version of the URL you're on, if available.

4.3/5 8 人评分 184用户 v1.4当前版本
权限提示 该扩展申请访问所有网站(<all_urls>),意味着它可以读取你在任意站点的页面内容,包括已登录的页面。这是许多扩展正常工作的必要条件,但也值得你确认来源可信。

简介

Allows you to quickly navigate to or copy the canonical version of the URL you're on, if available.

How?
You'll see a "C" icon in the address bar when:

⚪ Gray - You're already on the canonical URL
🔵 Blue - Canonical URL available, but different from current page
🟣 Purple - Suggested clean URL when no canonical link, but URL's messy
⚫ None - No canonical link and URL is already clean

What?
In a nutshell, a canonical link is the "clean" or official version of a webpage URL.

Example of a non-canonical URL:
https://www.amazon.com/Apple-iPhone-GSM-Unlocked-5-8/dp/B075QMZH2L/ref=sr_1_3?s=wireless&ie=UTF8&qid=1516789917&sr=1-3&keywords=iphone+x

Example of a canonical URL:
https://www.amazon.com/Apple-iPhone-GSM-Unlocked-5-8/dp/B075QMZH2L

See the difference? One has tracking info, tags, and queries, which are generally only useful for the site owner, where the cleaner, more human-readable version is better for use with: bookmarking, linking to from a website or social media, marketing materials, and search engines.

Canonical links are generally thought of as only being useful for webmasters who would like to avoid SEO issues such as duplicate content in search engines like Google. However, they have many additional benefits for organization and productivity not often considered.

Why?

  • Professionalism — If you write online: blog articles, help forums, product documentation, etc., you should be using the canonical version of URLs to share with people. Anything else is sloppy and a lack of attention to detail.
  • Attribution — Some websites re-post content from other websites. The correct way to do this without plagiarizing, is to credit the official page/author with a canonical link. This helps you to avoid accidentally crediting the wrong source.
  • Bookmarking — If you make sure to bookmark the official URL in the first place, there's a better chance that it won't become broken later.
  • Social Media — Presentation and saving characters for your message (especially on Twitter).
  • Privacy — It's very rare, but some URLs contain private or personally-identifiable information meant only for you, which you wouldn't want to copy and paste into a public space.

This list is not a master list of all possible uses for this add-on and the canonical link in general, and I would be interested to hear from users if they've discovered other uses for it.

Credits
This add-on is inspired by the Canonical feature of the now retired SearchStatus add-on, is designed by Web Guy, and is coded with major assistance from Jeremy Schomery. Thanks to @Enyby and @Cimbali for additional improvements.

Canonical 是做什么的

Canonical 是一款面向 Firefox 的开发者工具类扩展,主要用来调试页面、查看样式与请求、测试接口、辅助前端开发。官方对它的介绍是:Allows you to quickly navigate to or copy the canonical version of the URL you're on, if available.在Firefox 附加组件商店(AMO)上,它当前版本 1.4,评分 4.25(8 人评价),约 184 名用户。

适合什么人用

从功能定位看,Canonical 更适合前端工程师、测试与需要经常查看页面结构的用户。如果你平时只是偶尔遇到相关需求,用浏览器自带功能也能凑合;但如果这件事每天都发生,装一个专门处理它的扩展通常比手动操作省事得多。需要注意的是它作用于所有网站,装上后建议先观察一两天,确认不影响常用站点的正常使用。

怎么安装 Canonical

  1. 打开Firefox 附加组件商店(AMO)上的官方页面;
  2. 点「添加到浏览器」并确认权限提示;
  3. 装好后在扩展列表里固定图标,方便随时开关。

本站只做索引与介绍,安装包来自官方商店。如果商店页面提示当前地区不可用,说明该扩展未在你所在区域上架。

常见问题

Canonical 是免费的吗?

Canonical 在Firefox 附加组件商店(AMO)免费提供下载。它是浏览器扩展,装上就能直接用,不需要注册账号。

Canonical 安全吗?

它只申请了 0 项权限,范围比较克制,没有申请「读取所有网站数据」这种大权限。

Canonical 支持哪些浏览器?

当前收录的版本来自Firefox 附加组件商店(AMO),适用于 Firefox。同一个扩展在其他商店可能有对应版本,但功能与版本号不一定相同。

怎么卸载 Canonical?

在扩展管理页找到 Canonical,点移除即可。它在本地保存的设置会一起清掉,不会残留数据。

权限清单 来自 manifest.json 原文

站点访问 1

  • *://*/*

接口权限 3

  • activeTab
  • clipboardWrite
  • contextMenus

标签 点标签看同类扩展

同类工具

同样带「Google 服务」标签的扩展

查看全部 ›