Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: r7kamura/amazon_url_shortener
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.3.0
Choose a base ref
...
head repository: r7kamura/amazon_url_shortener
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing with 1,320 additions and 2,086 deletions.
  1. +18 −0 .github/workflows/github-label-sync.yml
  2. +1 −0 .prettierignore
  3. +12 −0 CHANGELOG.md
  4. +28 −20 README.md
  5. +19 −15 manifest.json → manifest.ts
  6. +1,238 −2,048 package-lock.json
  7. +3 −2 package.json
  8. +1 −1 vite.config.js → vite.config.ts
18 changes: 18 additions & 0 deletions .github/workflows/github-label-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: github-label-sync

on:
push:
branches:
- main
paths:
- .github/workflows/github-label-sync.yml
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: r7kamura/github-label-sync-action@v0
with:
source_path: labels-keepachangelog.yml
source_repository: r7kamura/github-label-presets
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/dist/
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,18 @@

## Unreleased

## 1.4.1 - 2024-12-14

### Fixed

- Fix CSP error in Chrome 130+.

## 1.4.0 - 2022-06-19

### Added

- Support smile.amazon.co.uk & smile.amazon.de.

## 1.3.0 - 2022-05-28

### Added
48 changes: 28 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -22,23 +22,31 @@ this extension automatically rewrites the URL into a shorter one:
### Supported domains

- smile.amazon.com
- www.amazon.ae
- www.amazon.au
- www.amazon.ca
- www.amazon.cn
- www.amazon.co.jp
- www.amazon.co.uk
- www.amazon.com
- www.amazon.com.br
- www.amazon.com.mx
- www.amazon.com.tr
- www.amazon.de
- www.amazon.es
- www.amazon.fr
- www.amazon.in
- www.amazon.it
- www.amazon.nl
- www.amazon.sa
- www.amazon.se
- www.amazon.sg
- `smile.amazon.co.uk`
- `smile.amazon.com`
- `smile.amazon.de`
- `www.amazon.ae`
- `www.amazon.au`
- `www.amazon.ca`
- `www.amazon.cn`
- `www.amazon.co.jp`
- `www.amazon.co.uk`
- `www.amazon.com`
- `www.amazon.com.br`
- `www.amazon.com.mx`
- `www.amazon.com.tr`
- `www.amazon.de`
- `www.amazon.es`
- `www.amazon.fr`
- `www.amazon.in`
- `www.amazon.it`
- `www.amazon.nl`
- `www.amazon.sa`
- `www.amazon.se`
- `www.amazon.sg`

## Related project

The UserScirpt version of Amazon URL Shortener.

https://github.com/r7kamura/amazon_url_shortener_user_script
34 changes: 19 additions & 15 deletions manifest.json → manifest.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"manifest_version": 3,
"name": "Amazon URL Shortener",
"description": "Automatically shorten Amazon product URL.",
"version": "1.3.0",
"icons": {
import { defineManifest } from "@crxjs/vite-plugin";

export const manifest = defineManifest({
manifest_version: 3,
name: "Amazon URL Shortener",
description: "Automatically shorten Amazon product URL.",
version: "1.4.1",
icons: {
"16": "images/icon16.png",
"48": "images/icon48.png",
"128": "images/icon128.png"
"128": "images/icon128.png",
},
"content_scripts": [
content_scripts: [
{
"matches": [
matches: [
"https://smile.amazon.co.uk/*",
"https://smile.amazon.de/*",
"https://smile.amazon.com/*",
"https://www.amazon.ae/*",
"https://www.amazon.au/*",
@@ -30,10 +34,10 @@
"https://www.amazon.nl/*",
"https://www.amazon.sa/*",
"https://www.amazon.se/*",
"https://www.amazon.sg/*"
"https://www.amazon.sg/*",
],
"run_at": "document_end",
"js": ["src/main.ts"]
}
]
}
run_at: "document_end",
js: ["src/main.ts"],
},
],
});
Loading