Skip to content

Commit

Permalink
rule 22 (amazon): keep the fragment for previewing images
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibanami committed Feb 17, 2025
1 parent ef1629e commit df3acb7
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,22 @@
"redirects": [
{
"captureGroupProcesses": [],
"comments": "This rule strips unnecessary parameters from Amazon product links, including affiliate and tracking codes.\n\nIt also adds a `th=1` parameter to prevent an infinite loop caused by Amazon automatically appending it.",
"destinationURLPattern": "$1$5?th=1",
"comments": "This rule strips unnecessary parameters from Amazon product links, including affiliate and tracking codes.\n\nIt adds a `th=1` parameter to prevent an infinite loop caused by Amazon automatically appending it.",
"destinationURLPattern": "$1$5?th=1$6",
"exampleURLs": [
"https:\/\/www.amazon.co.jp\/dp\/B0B13WY4DL?th=1&linkCode=sl1&tag=redirectwebtest-22&linkId=0123456789abcdefghijklmnopqrstuvw&ref_=as_li_ss_tl",
"https:\/\/www.amazon.com.au\/Imabari-Factory-Certified-Approx-inches\/dp\/B09RWHGLVM\/ref=sr_1_3?hello=world",
"https:\/\/www.amazon.com\/dp\/B0B13WY4DL?",
"https:\/\/www.amazon.co.jp\/dp\/B0B13WY4DL?",
"https:\/\/www.amazon.it\/dp\/B09PG7M43W?tag=redirectwebtest-22",
"https:\/\/www.amazon.com.au\/dp\/B0B13WY4DL"
"https:\/\/www.amazon.com.au\/dp\/B00YMSLT88",
"https:\/\/www.amazon.com.be\/dp\/1974752542?tag=redirectwebtest-22#immersive-view_1739779534435",
"https:\/\/www.amazon.com.be\/dp\/1974752542#immersive-view_1739779534435"
],
"excludeURLPatterns": [],
"kind": "Redirect",
"sourceURLPattern": {
"type": "regularExpression",
"value": "(https:\/\/(www\\.)?amazon\\.(com\\.au|com\\.be|com\\.br|ca|cn|eg|fr|de|in|it|co\\.jp|com\\.mx|nl|pl|sa|sg|es|se|com\\.tr|ae|co\\.uk|com|co|com\\.cn|com\\.sg)\/)(.+\/)?(dp\/[^\/?]+).*"
"value": "(https:\/\/(www\\.)?amazon\\.(com\\.au|com\\.be|com\\.br|ca|cn|eg|fr|de|in|it|co\\.jp|com\\.mx|nl|pl|sa|sg|es|se|com\\.tr|ae|co\\.uk|com|co|com\\.cn|com\\.sg)\/)(.+\/)?(dp\/[^\/?#]+)[^#]*(#.*)?"
},
"title": "Amazon: Strip Affiliate and Tracking Parameters",
"type": "originalRedirect"
Expand Down

0 comments on commit df3acb7

Please sign in to comment.