EmailHunter

找到页面中的邮箱

  1. // ==UserScript==
  2. // @name EmailHunter
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description 找到页面中的邮箱
  6. // @author Neo
  7. // @match *://*/*
  8. // @grant none
  9. // @exclude *://*.google.com/*
  10. // @exclude *://*.baidu.com/*
  11. // @exclude *://*.google.com.hk/*
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. // Your code here...
  17. let content = document.getElementsByTagName('body')[0].outerText;
  18. let emails = content.match(/(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/g) || ['没有发现邮箱'];
  19. alert(emails.join('\n'));
  20. })();

QingJ © 2025

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