Advertisement
LightProgrammer000

Email Extractor

Aug 20th, 2021
2,474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 11.14 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.  
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7.  
  8.  
  9. <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="text/javascript">
  10.  
  11. function copy()
  12. {
  13. highlight();
  14. textRange = document.extractor.rawdata.createTextRange();
  15.  
  16. textRange.execCommand("RemoveFormat");
  17. textRange.execCommand("Copy");
  18. window.alert("The content has been copied to your clipboard.");
  19. }
  20.  
  21. function highlight()
  22. {
  23.  
  24. document.extractor.rawdata.focus()
  25.  
  26. document.extractor.rawdata.select()
  27.  
  28. }
  29.  
  30. function copy2(){
  31. document.extractor.rawdata.focus()
  32.  
  33. document.extractor.rawdata.select()
  34.  
  35. document.execCommand("copy");
  36.  
  37. /* Alert the copied text */
  38. alert("Copied the text");
  39.  
  40. }
  41.  
  42. function copy3(){
  43. document.extractor2.splitter2.focus()
  44.  
  45. document.extractor2.splitter2.select()
  46.  
  47. document.execCommand("copy");
  48.  
  49. /* Alert the copied text */
  50. alert("Text Copied");
  51.  
  52. }
  53.  
  54.  
  55.  
  56. function validate2(){
  57.  
  58. document.extractor.rawdata.focus()
  59.  
  60. document.extractor.rawdata.select()
  61.  
  62. document.extractor.sep.value="new";
  63. findEmail();
  64.  
  65. /* Alert the copied text */
  66. alert("Submitting Form");
  67.  
  68. }
  69.  
  70. function split22(){
  71.  
  72. document.extractor.rawdata.focus()
  73.  
  74. document.extractor.rawdata.select()
  75.  
  76. document.extractor.sep.value="new";
  77. findEmail();
  78.  
  79.  
  80. }
  81.  
  82.  
  83. function checksep(value){
  84.  
  85. if (value) document.extractor.sep.value = "other";
  86.  
  87. }
  88.  
  89.  
  90.  
  91. function numonly(value){
  92.  
  93. if (isNaN(value)) {
  94.  
  95. window.alert("Please enter a number or else \nleave blank for no grouping.");
  96.  
  97. document.extractor.groupby.focus();
  98.  
  99. }
  100.  
  101. }
  102.  
  103.  
  104.  
  105. function findEmail() {
  106.  
  107. var email = "No email address detected";
  108.  
  109. var a = 0;
  110.  
  111. var ingroup = 0;
  112.  
  113. var separator = document.extractor.sep.value;
  114.  
  115. var groupby = Math.round(document.extractor.groupby.value);
  116.  
  117.  
  118.  
  119. if (separator == "new") separator = "\n";
  120.  
  121. if (separator == "other") separator = document.extractor.othersep.value;
  122.  
  123. var rawemail = document.extractor.rawdata.value.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi);
  124.  
  125. var norepeat = new Array();
  126.  
  127. if (rawemail) {
  128.  
  129. for (var i=0; i<rawemail.length; i++) {
  130.  
  131. var repeat = 0;
  132.  
  133.  
  134.  
  135. // Check for repeated emails routine
  136.  
  137. for (var j=i+1; j<rawemail.length; j++) {
  138.  
  139. if (rawemail[i] == rawemail[j]) {
  140.  
  141. repeat++;
  142.  
  143. }
  144.  
  145. }
  146.  
  147.  
  148.  
  149. // Create new array for non-repeated emails
  150.  
  151. if (repeat == 0) {
  152.  
  153. norepeat[a] = rawemail[i];
  154.  
  155. a++;
  156.  
  157. }
  158.  
  159. }
  160.  
  161. if (document.extractor.sort.checked) norepeat = norepeat.sort(); // Sort the array
  162.  
  163. email = "";
  164.  
  165. // Join emails together with separator
  166.  
  167. for (var k = 0; k < norepeat.length; k++) {
  168.  
  169. if (ingroup != 0) email += separator;
  170.  
  171. email += norepeat[k];
  172.  
  173. ingroup++;
  174.  
  175.  
  176.  
  177. // Group emails if a number is specified in form. Each group will be separate by new line.
  178.  
  179. if (groupby) {
  180.  
  181. if (ingroup == groupby) {
  182.  
  183. email += '\n\n';
  184.  
  185. ingroup = 0;
  186.  
  187. }
  188.  
  189. }
  190.  
  191. }
  192.  
  193. }
  194.  
  195.  
  196.  
  197. // Return array length
  198.  
  199. var count = norepeat.length;
  200.  
  201.  
  202.  
  203. // Print results
  204.  
  205. document.extractor.count.value = count;
  206.  
  207. document.extractor.rawdata.value = email;
  208.  
  209. }
  210.  
  211. //  End -->
  212.  
  213. </SCRIPT>
  214.  
  215.  
  216.  
  217. <STYLE TYPE="text/css">
  218.  
  219. BODY              { background:#FFF }
  220.  
  221.  
  222. body,td,th {
  223. font-family: Georgia, "Times New Roman", Times, serif;
  224. text-align: justify;
  225. font-size: 12px;
  226. }
  227. .Header2 {
  228. font-weight: bold;
  229. font-size: 18px;
  230. color: #000;
  231. }
  232. .HeaderColor {
  233. color: #000;
  234. }
  235. .bold {
  236. font-weight: bold;
  237. color: #30C;
  238. }
  239.  
  240. A:link, A:visited { text-decoration: none; color: #059; }
  241.  
  242. A:active, A:hover { text-decoration: underline; color: #D14; }
  243.  
  244. .bordercolor      { background:#666 }
  245.  
  246. .maincolor        { background:#CCC }
  247.  
  248. .button           { background:#CCC }
  249.  
  250. .button2           { background:#FFF }
  251.  
  252. .titlebarcolor    { background:#007 }
  253.  
  254. .titlefont        { font: normal normal bold 10pt/1em Verdana; color: #FFF; }
  255.  
  256. .copyrightfont    { font: normal normal normal 7.5pt/1.5em Verdana; color: #666; }
  257.  
  258. </STYLE>
  259.  
  260.  
  261.  
  262. <title>Email Domain Sorter | Email Separator </title>
  263.  
  264.  
  265. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  266. <script>
  267. (adsbygoogle = window.adsbygoogle || []).push({
  268. google_ad_client: "ca-pub-9816945270938969",
  269. enable_page_level_ads: true
  270. });
  271. </script>
  272. </HEAD>
  273.  
  274. <BODY>
  275.  
  276.  
  277.  
  278. <table width="100%" border="0" align='center'>
  279.  
  280. <tr>
  281.  
  282. <td align="left" valign="top">
  283.  
  284.  
  285.  
  286.  
  287.  
  288. <br><br>
  289.  
  290.  
  291.  
  292.  
  293.  
  294. <br><br>
  295.  
  296. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  297. <!-- lite14 vertical side -->
  298. <ins class="adsbygoogle"
  299. style="display:inline-block;width:300px;height:1050px"
  300. data-ad-client="ca-pub-9816945270938969"
  301. data-ad-slot="7360199948"></ins>
  302. <script>
  303. (adsbygoogle = window.adsbygoogle || []).push({});
  304. </script>
  305.  
  306.  
  307.  
  308.  
  309. </td>
  310.  
  311. <td align="left" valign="top">
  312.  
  313.  
  314. <p>
  315. <blockquote>
  316. <h1>
  317. <span class="HeaderColor">Email Separator</span></h1>
  318. </blockquote>
  319.  
  320. </p>
  321. <p>Lite 14 email separator is an email domain sorter or email domain separator, that will strips email address into domains. Use the Separator to separate the list of e-mail addresses by domains and then arrange the addresses within domain.</p>
  322.  
  323. <center>
  324.  
  325.  
  326. </center>
  327. <span class="red"> Copy text from any source and paste it into here. Then click extract button. You can select different separator (or enter your own), group a number of emails and sort extracted emails alphabetically or by domains</span><br />
  328. <span class="grey">(USING FORM BELOW IS VERY EASY)</span><br />
  329.  
  330. <br><Left>
  331.  
  332. <center><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  333. <!-- lite14 horizontal top2 -->
  334. <ins class="adsbygoogle"
  335. style="display:block"
  336. data-ad-client="ca-pub-9816945270938969"
  337. data-ad-slot="2886295554"
  338. data-ad-format="auto"
  339. data-full-width-responsive="true"></ins>
  340. <script>
  341. (adsbygoogle = window.adsbygoogle || []).push({});
  342. </script>
  343. <br>
  344. </center></left><br>
  345.  
  346. <div id="main">
  347.  
  348. <DIV ALIGN="CENTER">
  349. <table> <tr><td>
  350. <FORM NAME="extractor" action="#" method="post">
  351.  
  352. <TABLE CLASS="bordercolor" CELLPADDING=1 CELLSPACING=0 BORDER=0><TR><TD>
  353.  
  354. <TABLE CLASS="maincolor" CELLPADDING=8 CELLSPACING=0 BORDER=0>
  355.  
  356. <TR CLASS="titlebarcolor">
  357.  
  358. <TD VALIGN="TOP" COLSPAN=2 COLSPAN=2><h2><FONT CLASS="titlefont">Email Domain Separator</FONT></h2></TD>
  359.  
  360. </TR>
  361.  
  362. <TR>
  363.  
  364. <TD VALIGN="TOP" ALIGN="CENTER" COLSPAN=2>
  365.  
  366. <SCRIPT LANGUAGE="JAVASCRIPT">
  367.  
  368. var introtext = 'Copy text from any source and paste it into here. Then click extract button. You can select different separator (or enter your own), group a number of emails and sort extracted emails alphabetically.';
  369.  
  370.  
  371. </SCRIPT>
  372. <TEXTAREA NAME="rawdata" rows=12 cols=80 id="myInput"></TEXTAREA>
  373. </TD></TR>
  374.  
  375. <TR>
  376.  
  377. <TD VALIGN="TOP" ALIGN="LEFT" COLSPAN=2>
  378.  
  379. Separator:
  380.  
  381. <SELECT NAME="sep">
  382.  
  383. <OPTION VALUE=", ">Comma</OPTION>
  384.  
  385. <OPTION VALUE="|">Pipe</OPTION>
  386.  
  387. <OPTION VALUE=" : ">Colon</OPTION>
  388.  
  389. <OPTION VALUE="new">New Line</OPTION>
  390.  
  391. <OPTION VALUE="other">Other</OPTION>
  392.  
  393. </SELECT>
  394.  
  395. <INPUT TYPE="TEXT" NAME="othersep" SIZE=3 onBlur="checksep(this.value)">
  396.  
  397. &nbsp;&nbsp;
  398.  
  399. Group: <INPUT TYPE="TEXT" SIZE=3 NAME="groupby" onBlur="numonly(this.value)"> Emails
  400.  
  401. &nbsp;&nbsp;
  402.  
  403. <LABEL FOR="sortbox"><INPUT TYPE="CHECKBOX" NAME="sort" id="sortbox">Sort Alphabetically</LABEL>
  404. &nbsp;&nbsp; <a href="/verifyemailaddress/mailtester.php" target="_blank"> Mail Tester </a>
  405. </TD></TR>
  406.  
  407. <TR VALIGN="TOP"><TD ALIGN="LEFT">
  408.  
  409. <INPUT TYPE="BUTTON" CLASS="button" VALUE="Extract" onClick="findEmail()">
  410.  
  411. <INPUT TYPE="RESET" CLASS="button" VALUE="Reset">
  412.  
  413. <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
  414.  
  415. <!--
  416.  
  417. if ((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4)) {
  418.  
  419. document.write('<INPUT TYPE="BUTTON" CLASS="button" VALUE="Copy To Clipboard" onClick="copy();">');
  420.  
  421. } else {
  422.  
  423. document.write('<INPUT TYPE="BUTTON" CLASS="button" VALUE="Highlight All" onClick="highlight();">&nbsp;');
  424. document.write('<INPUT TYPE="BUTTON" CLASS="button" VALUE="Copy" onClick="copy2();">');
  425.  
  426. }
  427.  
  428. // -->
  429.  
  430. </SCRIPT>
  431.  
  432. <!-- <INPUT TYPE="submit" CLASS="button" VALUE="Split" onClick="split22();"> -->
  433. <SELECT NAME="domain">
  434.  
  435. <OPTION VALUE="gmail.com">gmail.com</OPTION>
  436.  
  437. <OPTION VALUE="yahoo.com">yahoo.com</OPTION>
  438.  
  439. <OPTION VALUE="hotmail.com">hotmail.com</OPTION>
  440.  
  441. <OPTION VALUE="mail.com">mail.com</OPTION>
  442.  
  443. <OPTION VALUE="outlook.com">Outlook.com</OPTION>
  444.  
  445. <OPTION VALUE="other">Other</OPTION>
  446.  
  447. </SELECT>
  448. <INPUT TYPE="TEXT" NAME="domain2" SIZE=8 >
  449.  
  450. </TD>
  451.  
  452. <TD ALIGN="RIGHT" VALIGN="BOTTOM" NOWRAP>
  453.  
  454. Email count: <INPUT NAME="count" SIZE=5 value="1" READONLY>
  455.  
  456. </TD>
  457.  
  458. </TR>
  459.  
  460. </TABLE>
  461.  
  462. </TD></TR></TABLE>
  463.  
  464. </FORM>
  465.  
  466.  
  467. <p> <b>Select the Provider you want and click on split to separate them in the form Below. For Instance if you want to separate gmail emails, you select gmail or you type the domain of the provider you want to separate, and click split.</b> </p>
  468. <p>  </p>
  469.  
  470. <TABLE CLASS="maincolor" CELLPADDING=8 CELLSPACING=0 BORDER=0>
  471.  
  472. <TR CLASS="titlebarcolor">
  473.  
  474. <TD VALIGN="TOP" COLSPAN=2 COLSPAN=2><h3><FONT CLASS="titlefont"> Separeted Email result  </FONT></h3></TD>
  475.  
  476. </TR>
  477.  
  478. <TR CLASS="titlebarcolor">
  479. <td>
  480. <form NAME="extractor2" >
  481.  
  482. <TEXTAREA NAME="splitter2" rows=12 cols=80 id="splitter2" >1
  483. </TEXTAREA>
  484.  
  485. </form>
  486. </td>
  487. </tr>
  488. <tr>
  489. <td colspan="2">Total Emails=1  &nbsp;&nbsp;&nbsp;&nbsp;<INPUT TYPE="BUTTON" CLASS="button2" VALUE="Copy" onClick="copy3();"></td>
  490. </table>
  491.  
  492. </td><td valign="top">    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  493. <!-- lite14 center right -->
  494. <ins class="adsbygoogle"
  495. style="display:inline-block;width:336px;height:280px"
  496. data-ad-client="ca-pub-9816945270938969"
  497. data-ad-slot="5610992245"></ins>
  498. <script>
  499. (adsbygoogle = window.adsbygoogle || []).push({});
  500. </script> <br><center><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  501. <!-- lite14 link -->
  502. <ins class="adsbygoogle"
  503. style="display:block"
  504. data-ad-client="ca-pub-9816945270938969"
  505. data-ad-slot="6083739037"
  506. data-ad-format="link"
  507. data-full-width-responsive="true"></ins>
  508. <script>
  509. (adsbygoogle = window.adsbygoogle || []).push({});
  510. </script>
  511. </center>  </td>
  512. </tr>
  513. </table>
  514.  
  515. </DIV>
  516. <BR><BR>
  517. <center>
  518.  
  519. <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  520. <!-- lite14 billboard -->
  521. <ins class="adsbygoogle"
  522. style="display:inline-block;width:970px;height:250px"
  523. data-ad-client="ca-pub-9816945270938969"
  524. data-ad-slot="2049788932"></ins>
  525. <script>
  526. (adsbygoogle = window.adsbygoogle || []).push({});
  527. </script>
  528.  
  529. </center>
  530.  
  531. </div>
  532.  
  533. <script type="text/javascript">
  534.  
  535. var _gaq = _gaq || [];
  536. _gaq.push(['_setAccount', 'UA-32232018-6']);
  537. _gaq.push(['_trackPageview']);
  538.  
  539. (function() {
  540. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  541. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  542. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  543. })();
  544.  
  545. </script>
  546.  
  547. </center>
  548.  
  549. </td>
  550.  
  551. <td align="left" valign="top">
  552.  
  553. </td>
  554.  
  555. </tr>
  556.  
  557. </table>
  558.  
  559. </BODY>
  560.  
  561. </HTML>
  562.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement