Advertising companies like Google and Facebook track and aggregate user activity across the internet in many different ways. One of these tactics is a feature built right into HTML — the
ping attribute in the interest of privacy, but they have recently removed that customization. This extension allows you to block the
ping attribute again.
ping attribute is added to the
a anchor tags which represent clickable links, and includes a URL to which the report will be sent when the link is clicked. It would look like this in the source code of a web page:
<a href="https://example.com">a normal link</a> <a href="https://example.com" ping="https://google.com/track">a link that tracks your clicks</a>
This extension examines web pages as they load and immediately removes any
ping attributes it finds, so it would rewrite the second link to the simpler form:
<a href="https://example.com">a link that tracks your clicks</a>
At this point, because there is no longer a
ping attribute, the browser will not send a report when the link is clicked.
For now, the extension is available through the Chrome web store.
However, Google uses the
ping attribute in its search results and might not want to host it. If they ever decide to remove it, you can still "sideload" it using the following process:
- Download these files, either by cloning the repository with Git or simply as an archive which you then unzip.
- Open Google Chrome.
- Navigate to the Chrome configuration page by typing
chrome://extensions/into the URL bar.
- Switch Chrome into "developer mode."
- Click on "load unpacked."
- Select the directory containing these files.