Skip to content

Commit

Permalink
fix(duckduckgo-email-protection): address parsing
Browse files Browse the repository at this point in the history
DuckDuckGo has modified its generated email addresses, and they will now follow the format three-word-addresses@duck.com instead of the previous fixed-length format (e.g. vcb35uk3@duck.com).
  • Loading branch information
WangEdward authored and dehesa committed Jul 16, 2024
1 parent 2a01cbd commit 71e08d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
on run
set prefix to do shell script "curl -X POST https://quack.duckduckgo.com/api/email/addresses --header 'Authorization: Bearer " & getAuthorizationID() & "'"
if text 3 through 9 of prefix is "address" then
set uniqueAddress to text 13 through 20 of prefix & "@duck.com"
set uniqueAddress to text 13 through -3 of prefix & "@duck.com"
set the clipboard to uniqueAddress
return uniqueAddress & " copied to clipboard!"
else
Expand Down

0 comments on commit 71e08d9

Please sign in to comment.