NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name jGetPageInfo // @updateURL https://openuserjs.org/meta/vaultdweller123/jGetPageInfo.meta.js // @description Display Page title and emails // @2016, Jc Mulit https://www.facebook.com/vaultdweller123 // @namespace http://tampermonkey.net/ // @author Jc Mulit // @match http://*/* // @grant none // ==/UserScript== function getEmails() { var search_in = document.body.innerHTML; string_context = search_in.toString(); array_mails = string_context.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi); return array_mails; } function getPageTitle(){ return document.title; } function getSiteEmailAndPageTitle(){ var txt = ""; txt = "Page Title: "+getPageTitle()+"\n"; txt += "Page Emails: "+getEmails(); return txt; } // run function console.log(getSiteEmailAndPageTitle());