将电子邮件地址转换为DuckDuckGo匿名邮件格式

将电子邮件转换为DuckDuckGo匿名邮件格式

  1. // ==UserScript==
  2. // @name Convert Email Address to DuckDuckGo Anonymous email format
  3. // @description Converts an email to duckgo anonymous email format, now with minimize functionality
  4. // @name:ar تحويل عنوان البريد الإلكتروني إلى تنسيق بريد DuckDuckGo المجهول
  5. // @description:ar يحول بريدًا إلكترونيًا إلى تنسيق بريد DuckDuckGo المجهول، مع وظيفة التصغير الآن
  6. // @name:bg Преобразуване на имейл адрес в анонимен формат на DuckDuckGo
  7. // @description:bg Преобразува имейл в анонимен формат на DuckDuckGo, сега с функция за минимизиране
  8. // @name:cs Převod e-mailové adresy do anonymního formátu DuckDuckGo
  9. // @description:cs Převede e-mail do anonymního formátu DuckDuckGo, nyní s funkcí minimalizace
  10. // @name:da Konverter e-mailadresse til DuckDuckGo anonymt e-mailformat
  11. // @description:da Konverterer en e-mail til DuckDuckGo anonymt e-mailformat, nu med minimeringsfunktion
  12. // @name:de E-Mail-Adresse in DuckDuckGo anonymes E-Mail-Format umwandeln
  13. // @description:de Wandelt eine E-Mail in das anonyme E-Mail-Format von DuckDuckGo um, jetzt mit Minimierungsfunktion
  14. // @name:el Μετατροπή διεύθυνσης email σε ανώνυμη μορφή email DuckDuckGo
  15. // @description:el Μετατρέπει ένα email σε ανώνυμη μορφή email DuckDuckGo, τώρα με λειτουργία ελαχιστοποίησης
  16. // @name:en Convert Email Address to DuckDuckGo Anonymous email format
  17. // @description:en Converts an email to duckgo anonymous email format, now with minimize functionality
  18. // @name:eo Konverti Retpoŝtadreson al DuckDuckGo Anonima Retpoŝtformato
  19. // @description:eo Konvertas retpoŝton al anonima retpoŝtformato de DuckDuckGo, nun kun minimumiga funkcio
  20. // @name:es Convertir dirección de correo a formato de correo anónimo de DuckDuckGo
  21. // @description:es Convierte un correo a formato de correo anónimo de DuckDuckGo, ahora con función de minimización
  22. // @name:fi Muunna sähköpostiosoite DuckDuckGo-anonyymiin sähköpostimuotoon
  23. // @description:fi Muuntaa sähköpostin DuckDuckGo-anonyymiksi sähköpostimuodoksi, nyt minimoimistoiminnolla
  24. // @name:fr Convertir une adresse e-mail au format e-mail anonyme de DuckDuckGo
  25. // @description:fr Convertit un e-mail au format e-mail anonyme de DuckDuckGo, maintenant avec fonction de minimisation
  26. // @name:fr-CA Convertir une adresse courriel au format courriel anonyme de DuckDuckGo
  27. // @description:fr-CA Convertit un courriel au format courriel anonyme de DuckDuckGo, maintenant avec fonction de réduction
  28. // @name:he המרת כתובת דוא"ל לפורמט דוא"ל אנונימי של DuckDuckGo
  29. // @description:he ממיר דוא"ל לפורמט דוא"ל אנונימי של DuckDuckGo, כעת עם פונקציית מזעור
  30. // @name:hr Pretvori adresu e-pošte u DuckDuckGo anonimni format e-pošte
  31. // @description:hr Pretvara e-poštu u anonimni format e-pošte DuckDuckGo, sada s funkcijom minimiziranja
  32. // @name:hu E-mail cím átalakítása DuckDuckGo anonim e-mail formátumba
  33. // @description:hu Átalakít egy e-mailt DuckDuckGo anonim e-mail formátummá, most minimalizálási funkcióval
  34. // @name:id Konversi Alamat Email ke Format Email Anonim DuckDuckGo
  35. // @description:id Mengonversi email ke format email anonim DuckDuckGo, kini dengan fungsi minimalkan
  36. // @name:it Converti indirizzo email in formato email anonimo di DuckDuckGo
  37. // @description:it Converte un’email nel formato email anonimo di DuckDuckGo, ora con funzione di minimizzazione
  38. // @name:ja メールアドレスを DuckDuckGo の匿名メール形式に変換
  39. // @description:ja メールをDuckGoの匿名メール形式に変換し、最小化機能が追加されました
  40. // @name:ka ელფოსტის მისამართის გარდაქმნა DuckDuckGo-ს ანონიმური ელფოსტის ფორმატში
  41. // @description:ka გარდაქმნის ელფოსტას DuckDuckGo-ს ანონიმური ელფოსტის ფორმატში, ახლა მინიმიზაციის ფუნქციით
  42. // @name:ko 이메일 주소를 DuckDuckGo 익명 이메일 형식으로 변환
  43. // @description:ko 이메일을 DuckDuckGo 익명 이메일 형식으로 변환, 이제 최소화 기능 포함
  44. // @name:nb Konverter e-postadresse til DuckDuckGo anonymt e-postformat
  45. // @description:nb Konverterer en e-post til DuckDuckGo anonymt e-postformat, nå med minimeringsfunksjon
  46. // @name:nl E-mailadres converteren naar DuckDuckGo anoniem e-mailformaat
  47. // @description:nl Converteert een e-mail naar het anonieme e-mailformaat van DuckDuckGo, nu met minimalisatiefunctie
  48. // @name:pl Konwertuj adres e-mail na anonimowy format e-mail DuckDuckGo
  49. // @description:pl Konwertuje e-mail na anonimowy format e-mail DuckDuckGo, teraz z funkcją minimalizacji
  50. // @name:pt-BR Converter endereço de e-mail para o formato de e-mail anônimo do DuckDuckGo
  51. // @description:pt-BR Converte um e-mail para o formato de e-mail anônimo do DuckDuckGo, agora com função de minimização
  52. // @name:ro Convertiți adresa de e-mail în formatul de e-mail anonim DuckDuckGo
  53. // @description:ro Convertește un e-mail în formatul de e-mail anonim DuckDuckGo, acum cu funcționalitate de minimizare
  54. // @name:ru Преобразовать адрес электронной почты в анонимный формат DuckDuckGo
  55. // @description:ru Преобразует email в анонимный формат DuckDuckGo, теперь с функцией минимизации
  56. // @name:sk Previesť e-mailovú adresu na anonymný formát e-mailu DuckDuckGo
  57. // @description:sk Prevedie e-mail na anonymný formát e-mailu DuckDuckGo, teraz s funkciou minimalizácie
  58. // @name:sr Претвори адресу е-поште у анонимни формат е-поште DuckDuckGo
  59. // @description:sr Претвара е-пошту у анонимни формат е-поште DuckDuckGo, сада са функцијом минимизације
  60. // @name:sv Konvertera e-postadress till DuckDuckGo anonymt e-postformat
  61. // @description:sv Omvandlar en e-post till DuckDuckGo anonymt e-postformat, nu med minimeringsfunktion
  62. // @name:th แปลงที่อยู่อีเมลเป็นรูปแบบอีเมลนิรนามของ DuckDuckGo
  63. // @description:th แปลงอีเมลเป็นรูปแบบอีเมลนิรนามของ DuckDuckGo พร้อมฟังก์ชันย่อขนาด
  64. // @name:tr E-posta Adresini DuckDuckGo Anonim E-posta Formatına Dönüştür
  65. // @description:tr Bir e-postayı DuckDuckGo anonim e-posta formatına dönüştürür, şimdi küçültme işleviyle
  66. // @name:ug ئېلخەت ئادرېسىنى DuckDuckGo نامسىز ئېلخەت فورماتىغا ئايلاندۇرۇش
  67. // @description:ug ئېلخەتنى DuckDuckGo نامسىز ئېلخەت فورماتىغا ئايلاندۇرىدۇ، ھازىر كىچىكلەتكۈچى ئىقتىدارى بىلەن
  68. // @name:uk Перетворити адресу електронної пошти у анонімний формат DuckDuckGo
  69. // @description:uk Перетворює email у анонімний формат DuckDuckGo, тепер із функцією мінімізації
  70. // @name:vi Chuyển đổi địa chỉ email sang định dạng email ẩn danh của DuckDuckGo
  71. // @description:vi Chuyển đổi email sang định dạng email ẩn danh của DuckDuckGo, giờ có chức năng thu nhỏ
  72. // @name:zh 将电子邮件地址转换为DuckDuckGo匿名邮件格式
  73. // @description:zh 将电子邮件转换为DuckDuckGo匿名邮件格式
  74. // @name:zh-CN 将电子邮件地址转换为DuckDuckGo匿名邮件格式
  75. // @description:zh-CN 将电子邮件转换为DuckDuckGo匿名邮件格式
  76. // @name:zh-HK 將電郵地址轉換為DuckDuckGo匿名電郵格式
  77. // @description:zh-HK 將電郵轉換為DuckDuckGo匿名電郵格式
  78. // @name:zh-SG 将电子邮件地址转换为DuckDuckGo匿名邮件格式
  79. // @description:zh-SG 将电子邮件转换为DuckDuckGo匿名邮件格式
  80. // @name:zh-TW 將電子郵件地址轉換為DuckDuckGo匿名郵件格式
  81. // @description:zh-TW 將電子郵件轉換為DuckDuckGo匿名郵件格式
  82. // @namespace http://tampermonkey.net/
  83. // @author aspen138
  84. // @version 1.1.3.3
  85. // @match https://126.com/*
  86. // @match https://abv.bg/*
  87. // @match https://adelphia.net/*
  88. // @match https://aim.com/*
  89. // @match https://alice.it/*
  90. // @match https://aol.com/*
  91. // @match https://att.net/*
  92. // @match https://bellsouth.net/*
  93. // @match https://bigpond.com/*
  94. // @match https://bluewin.ch/*
  95. // @match https://blueyonder.co.uk/*
  96. // @match https://bol.com.br/*
  97. // @match https://btinternet.com/*
  98. // @match https://charter.net/*
  99. // @match https://comcast.net/*
  100. // @match https://cox.net/*
  101. // @match https://cs.com/*
  102. // @match https://earthlink.net/*
  103. // @match https://email.mail.com/*
  104. // @match https://embarqmail.com/*
  105. // @match https://excite.com/*
  106. // @match https://exmail.qq.com/*
  107. // @match https://work.weixin.qq.com/mail/
  108. // @match https://fastmail.com/*
  109. // @match https://free.fr/*
  110. // @match https://frontiernet.net/*
  111. // @match https://ge.com/*
  112. // @match https://gmail.com/*
  113. // @match https://gmx.com/*
  114. // @match https://hetnet.nl/*
  115. // @match https://home.nl/*
  116. // @match https://hp.com/*
  117. // @match https://icloud.com/mail/*
  118. // @match https://ig.com.br/*
  119. // @match https://insightbb.co/*
  120. // @match https://juno.com/*
  121. // @match https://laposte.net/*
  122. // @match https://libero.it/*
  123. // @match https://mac.com/*
  124. // @match https://mail.126.com/*
  125. // @match https://mail.163.com/*
  126. // @match https://mail.apple.com/*
  127. // @match https://mail.aol.com/*
  128. // @match https://mail.fastmail.com/*
  129. // @match https://mail.gmx.com/*
  130. // @match https://mail.google.com/*
  131. // @match https://mail.proton.me/*
  132. // @match https://mail.qq.com/*
  133. // @match https://mail.ru/*
  134. // @match https://mail.sina.com/*
  135. // @match https://mail.sina.com.cn/*
  136. // @match https://mail.yahoo.com/*
  137. // @match https://mail.yandex.com/*
  138. // @match https://mail.zoho.com/*
  139. // @match https://mchsi.com/*
  140. // @match https://me.com/*
  141. // @match https://mindspring.com/*
  142. // @match https://msn.com/*
  143. // @match https://netscape.net/*
  144. // @match https://netzero.com/*
  145. // @match https://netzero.net/*
  146. // @match https://ntlworld.com/*
  147. // @match https://optonline.net/*
  148. // @match https://optusnet.com.au/*
  149. // @match https://orange.fr/*
  150. // @match https://outlook.com/*
  151. // @match https://outlook.live.com/*
  152. // @match https://pacbell.net/*
  153. // @match https://peoplepc.com/*
  154. // @match https://planet.nl/*
  155. // @match https://prodigy.net/*
  156. // @match https://proton.me/*
  157. // @match https://rediffmail.com/*
  158. // @match https://roadrunner.com/*
  159. // @match https://rogers.com/*
  160. // @match https://sbcglobal.net/*
  161. // @match https://shaw.ca/*
  162. // @match https://sky.com/*
  163. // @match https://skynet.be/*
  164. // @match https://sympatico.ca/*
  165. // @match https://t-online.de/*
  166. // @match https://talktalk.net/*
  167. // @match https://telenet.be/*
  168. // @match https://telus.net/*
  169. // @match https://terra.com.br/*
  170. // @match https://tiscali.co.uk/*
  171. // @match https://tiscali.it/*
  172. // @match https://trainingelite.com/*
  173. // @match https://uol.com.br/*
  174. // @match https://us.army.mil/*
  175. // @match https://verizon.net/*
  176. // @match https://videotron.ca/*
  177. // @match https://virgilio.it/*
  178. // @match https://wanadoo.fr/*
  179. // @match https://web.de/*
  180. // @match https://webtv.net/*
  181. // @match https://windstream.net/*
  182. // @match https://wp.pl/*
  183. // @match https://www.mail.com/*
  184. // @match https://xtra.co.nz/*
  185. // @match https://yahoo.ca/*
  186. // @match https://yahoo.co.id/*
  187. // @match https://yahoo.co.in/*
  188. // @match https://yahoo.co.uk/*
  189. // @match https://yahoo.com/*
  190. // @match https://yahoo.com.ar/*
  191. // @match https://yahoo.com.au/*
  192. // @match https://yahoo.com.br/*
  193. // @match https://yahoo.com.cn/*
  194. // @match https://yahoo.com.mx/*
  195. // @match https://yahoo.com.sg/*
  196. // @match https://yahoo.com/mail/*
  197. // @match https://yahoo.de/*
  198. // @match https://yahoo.es/*
  199. // @match https://yahoo.fr/*
  200. // @match https://yahoo.in/*
  201. // @match https://yahoo.it/*
  202. // @match https://ymail.com/*
  203. // @match https://yandex.com/mail/*
  204. // @match https://yandex.ru/*
  205. // @match https://zoho.com/mail/*
  206. // @icon data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cGF0aCBmaWxsPSIjZGU1ODMzIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik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z4K
  207. // @iconbackup https://ssl.gstatic.com/ui/v1/icons/mail/rfr/gmail.ico
  208. // @license MIT
  209. // @grant GM_getValue
  210. // @grant GM_setValue
  211. // ==/UserScript==
  212.  
  213.  
  214. (function() {
  215. 'use strict';
  216. // Create a container for the floating box
  217. const container = document.createElement('div');
  218. container.id = 'emailConverter_container';
  219. container.style.position = 'fixed';
  220. container.style.bottom = '20px';
  221. container.style.left = '20px';
  222. container.style.zIndex = '9999';
  223. container.style.padding = '10px';
  224. container.style.backgroundColor = '#fff';
  225. container.style.border = '1px solid #ccc';
  226. container.style.borderRadius = '5px';
  227. container.style.boxShadow = '0 0 5px rgba(0,0,0,0.3)';
  228. container.style.fontFamily = 'Arial, sans-serif';
  229. container.style.maxWidth = '280px';
  230.  
  231. // Title or heading
  232. const heading = document.createElement('h4');
  233. heading.id = 'emailConverter_heading';
  234. heading.textContent = 'Email Converter';
  235. heading.style.margin = '0 0 10px 0';
  236. container.appendChild(heading);
  237.  
  238. // Close (minimize) button
  239. const minimizeButton = document.createElement('button');
  240. minimizeButton.id = 'emailConverter_minimizeBtn';
  241. minimizeButton.textContent = 'X';
  242. minimizeButton.style.position = 'absolute';
  243. minimizeButton.style.top = '5px';
  244. minimizeButton.style.right = '10px';
  245. minimizeButton.style.cursor = 'pointer';
  246. minimizeButton.style.border = 'none';
  247. minimizeButton.style.background = 'none';
  248. minimizeButton.style.fontSize = '16px';
  249. container.appendChild(minimizeButton);
  250.  
  251. // This button will appear when the container is minimized
  252. const restoreButton = document.createElement('button');
  253. restoreButton.id = 'emailConverter_restoreBtn';
  254. restoreButton.textContent = 'Email Converter';
  255. restoreButton.style.position = 'fixed';
  256. restoreButton.style.left = '0';
  257. restoreButton.style.bottom = '20px';
  258. restoreButton.style.zIndex = '9999';
  259. restoreButton.style.padding = '6px 12px';
  260. restoreButton.style.cursor = 'pointer';
  261. restoreButton.style.border = '1px solid #ccc';
  262. restoreButton.style.borderRadius = '5px';
  263. restoreButton.style.fontFamily = 'Arial, sans-serif';
  264. restoreButton.style.backgroundColor = '#fff';
  265. restoreButton.style.boxShadow = '0 0 5px rgba(0,0,0,0.3)';
  266. container.style.display = 'none';
  267. restoreButton.style.display = 'block';
  268. document.body.appendChild(restoreButton);
  269.  
  270. // Event listeners for minimize/restore
  271. minimizeButton.addEventListener('click', () => {
  272. container.style.display = 'none';
  273. restoreButton.style.display = 'block';
  274. });
  275.  
  276. restoreButton.addEventListener('click', () => {
  277. container.style.display = 'block';
  278. restoreButton.style.display = 'none';
  279. });
  280.  
  281. // Wrapper to neatly organize form elements
  282. const formWrapper = document.createElement('div');
  283. formWrapper.id = 'emailConverter_formWrapper';
  284. formWrapper.style.display = 'flex';
  285. formWrapper.style.flexDirection = 'column';
  286. formWrapper.style.gap = '5px';
  287.  
  288. // Retrieve stored values (if any)
  289. const storedSendTo = GM_getValue('converterSendTo', '');
  290. const storedDdgo = GM_getValue('converterDdgo', '');
  291.  
  292. // Label and input for "send email to who?"
  293. const labelSendTo = document.createElement('label');
  294. labelSendTo.id = 'emailConverter_labelSendTo';
  295. labelSendTo.textContent = 'Send email to who: ';
  296. labelSendTo.style.marginRight = '10px';
  297.  
  298. const inputSendTo = document.createElement('input');
  299. inputSendTo.id = 'emailConverter_inputSendTo';
  300. inputSendTo.type = 'text';
  301. inputSendTo.placeholder = 'e.g. 123@qq.com';
  302. inputSendTo.style.width = '250px';
  303. inputSendTo.value = storedSendTo;
  304.  
  305. const rowSendTo = document.createElement('div');
  306. rowSendTo.id = 'emailConverter_rowSendTo';
  307. rowSendTo.appendChild(labelSendTo);
  308. rowSendTo.appendChild(inputSendTo);
  309.  
  310. // Label and input for "your ddgo mail?"
  311. const labelDdgo = document.createElement('label');
  312. labelDdgo.id = 'emailConverter_labelDdgo';
  313. labelDdgo.textContent = 'Your DuckDuckGo address: ';
  314. labelDdgo.style.marginRight = '10px';
  315.  
  316. const inputDdgo = document.createElement('input');
  317. inputDdgo.id = 'emailConverter_inputDdgo';
  318. inputDdgo.type = 'text';
  319. inputDdgo.placeholder = 'e.g. dd@duck.com';
  320. inputDdgo.style.width = '250px';
  321. inputDdgo.value = storedDdgo;
  322.  
  323. const rowDdgo = document.createElement('div');
  324. rowDdgo.id = 'emailConverter_rowDdgo';
  325. rowDdgo.appendChild(labelDdgo);
  326. rowDdgo.appendChild(inputDdgo);
  327.  
  328. // Convert button
  329. const buttonConvert = document.createElement('button');
  330. buttonConvert.id = 'emailConverter_convertBtn';
  331. buttonConvert.textContent = 'Convert';
  332. buttonConvert.style.marginRight = '10px';
  333. buttonConvert.style.cursor = 'pointer';
  334. buttonConvert.style.width = '258px';
  335.  
  336. // Output field for converted email
  337. const labelOutput = document.createElement('label');
  338. labelOutput.id = 'emailConverter_labelOutput';
  339. labelOutput.textContent = 'Converted: ';
  340. labelOutput.style.marginRight = '10px';
  341.  
  342. const outputEmail = document.createElement('input');
  343. outputEmail.id = 'emailConverter_outputEmail';
  344. outputEmail.type = 'text';
  345. outputEmail.readOnly = true;
  346. outputEmail.style.width = '250px';
  347.  
  348. const rowOutput = document.createElement('div');
  349. rowOutput.id = 'emailConverter_rowOutput';
  350. rowOutput.appendChild(labelOutput);
  351. rowOutput.appendChild(outputEmail);
  352.  
  353. // Feedback or error message area
  354. const feedback = document.createElement('p');
  355. feedback.id = 'emailConverter_feedback';
  356. feedback.style.color = 'red';
  357. feedback.style.fontSize = '14px';
  358. feedback.style.margin = '5px 0 0 0';
  359. feedback.style.minHeight = '18px';
  360. feedback.textContent = '';
  361.  
  362. // Conversion function
  363. buttonConvert.addEventListener('click', () => {
  364. const originalEmail = inputSendTo.value.trim();
  365. const ddgoEmail = inputDdgo.value.trim();
  366. let errorMessage = '';
  367.  
  368. if (!originalEmail) {
  369. errorMessage = 'Please enter an email address to convert.';
  370. } else if (!ddgoEmail) {
  371. errorMessage = 'Please enter your DDG address.';
  372. }
  373.  
  374. if (errorMessage) {
  375. feedback.textContent = errorMessage;
  376. outputEmail.value = '';
  377. return;
  378. }
  379.  
  380. const converted = originalEmail.replace(/@/g, '_at_') + '_' + ddgoEmail;
  381. outputEmail.value = converted;
  382. feedback.textContent = '';
  383.  
  384. GM_setValue('converterSendTo', originalEmail);
  385. GM_setValue('converterDdgo', ddgoEmail);
  386. });
  387.  
  388. // Assemble elements in the container
  389. formWrapper.appendChild(rowSendTo);
  390. formWrapper.appendChild(rowDdgo);
  391. formWrapper.appendChild(buttonConvert);
  392. formWrapper.appendChild(rowOutput);
  393. formWrapper.appendChild(feedback);
  394.  
  395. container.appendChild(formWrapper);
  396. document.body.appendChild(container);
  397. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址