tumpio / requestcontrol

A Firefox extension
https://addons.mozilla.org/addon/requestcontrol
Mozilla Public License 2.0
172 stars 25 forks source link

Remove tracking from AWS SES click tracking. #136

Closed toothbrush closed 3 years ago

toothbrush commented 4 years ago

Description

I receive a lot of newsletters and transactional emails sent with Amazon's Simple Email Service (SES). These offer "click tracking", which by default go via the awstrack.me domain. This filter strips the actual destination URL out of the link and visits that instead.

Note that this is my first attempt at a PR against requestcontrol, so please let me know if there's something i can improve. The filter works for me, but i'm not sure if it's robust or general enough.

Example URL

From the tedium.co newsletter:

Original URL: http://9qh8qcxb.r.us-east-1.awstrack.me/L0/http:%2F%2Fwww.khd-research.net%2FTech%2FComputer%2FPBug%2Fpbug_mathisen.txt%3Futm_source=Tedium%26utm_campaign=Tedium_09_04_2020%26utm_medium=email/1/010001745adc30c9-e69db973-8a14-4609-a7bd-c1be2ce1da1d-000000/24c9TGVBgO3Ij_yBXw01wIbRPRM=178
Rewrites to: http://www.khd-research.net/Tech/Computer/PBug/pbug_mathisen.txt?utm_source=Tedium&utm_campaign=Tedium_09_04_2020&utm_medium=email/1/010001745adc30c9-e69db973-8a14-4609-a7bd-c1be2ce1da1d-000000/24c9TGVBgO3Ij_yBXw01wIbRPRM=178http://www.khd-research.net/Tech/Computer/PBug/pbug_mathisen.txt?utm_source=Tedium&utm_campaign=Tedium_09_04_2020&utm_medium=email/1/010001745adc30c9-e69db973-8a14-4609-a7bd-c1be2ce1da1d-000000/24c9TGVBgO3Ij_yBXw01wIbRPRM=178

Together with the other default filter rules, that is then stripped down to http://www.khd-research.net/Tech/Computer/PBug/pbug_mathisen.txt before the browser actually visits the link.

codecov-commenter commented 4 years ago

Codecov Report

Merging #136 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #136   +/-   ##
=======================================
  Coverage   99.52%   99.52%           
=======================================
  Files          10       10           
  Lines         629      629           
=======================================
  Hits          626      626           
  Misses          3        3           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6999201...33375b2. Read the comment docs.

codecov-io commented 3 years ago

Codecov Report

Merging #136 (0e82406) into master (b75d0e0) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #136   +/-   ##
=======================================
  Coverage   99.52%   99.52%           
=======================================
  Files          10       10           
  Lines         629      629           
=======================================
  Hits          626      626           
  Misses          3        3           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b75d0e0...0e82406. Read the comment docs.