You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Name: Disposable email// Description: Generate a disposable email address, open the inbox in the browser, and copy the email address to the clipboard// Acknowledgments:// - https://www.alfredforum.com/topic/4643-temporary-email-%E2%80%94-generate-disposable-email-inboxes/import"@johnlindquist/kit"import{uniqueNamesGenerator,adjectives,animals,colors}from'unique-names-generator';// The ones with auto: true will copy the email address to clipboard, the ones with auto: false will notconstproviders={"maildrop.cc": {name: "Maildrop",auto: true},"harakirimail.com": {name: "Harakirimail",auto: true},"incognitomail.co": {name: "Incognitomail",auto: false},"temporarymail.com": {name: "Temporarymail",auto: false},"mail.tm": {name: "Mail.tm",auto: false},"dropmail.me": {name: "Dropmail",auto: false},"guerrillamail.com": {name: "Guerrillamail",auto: false}};letprovider=awaitarg({placeholder: `Select Provider`,choices: Object.entries(providers).map(([name,def])=>({name: def.name,description: def.auto ? `🤖 Auto-copies email to clipboard` : `🫵 Manually copy email from website`,value: name}))});letdef=providers[provider];if(!def)thrownewError(`Invalid provider: ${provider}`);if(def.auto){constdesiredEmailName=uniqueNamesGenerator({dictionaries: [adjectives,animals],length: 2,separator: '-',});constemail=`${desiredEmailName}@${provider}`;leturl: string;if(provider==='maildrop.cc'){url=`https://${provider}/inbox/?mailbox=${desiredEmailName}`;}else{url=`https://${provider}/inbox/${desiredEmailName}`;}awaitclipboard.writeText(email);awaitopen(url);awaitnotify(`Email: ${email} copied to clipboard`);}else{awaitopen(`https://${provider}`);awaitnotify(`Get the email address from the website`);}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Open disposable-email in Script Kit
Beta Was this translation helpful? Give feedback.
All reactions