Clean Google News Links

Prerequisites

  • [Y] Are you sure that this rule only prevents tracking?
  • [Y] Are you sure that this rule does not destroy the function of the page?

Description

Decode the base64 portion of Google news article links to bypass tracking. This speeds up page loading time as well as prevents Google from tracking.

Affected fields

The only relevant portion of the news link can be obtained via the regex: https?://news.google.com/articles/([^\?]+)\?.* This must be decoded to base64 (padding with = at the end if necessary)

The following fields are unnecessary

  1. hl
  2. gl
  3. ceid

Example URL

https://news.google.com/articles/CBMibGh0dHBzOi8vd3d3Lm5hdGlvbmFscmV2aWV3LmNvbS8yMDI0LzA2L3N1cHJlbWUtY291cnQtbGltaXRzLXRoZS1zZWNvbmQtYW1lbmRtZW50LXJpZ2h0cy1vZi1kYW5nZXJvdXMtcGVvcGxlL9IBAA?hl=en-US&gl=US&ceid=US%3Aen

This decodes to https://www.nationalreview.com/2024/06/supreme-court-limits-the-second-amendment-rights-of-dangerous-people/