daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Nov 14th, 2018 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Guibs YAHOO
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       You
  7. // @match        https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12.     'use strict';
  13.     var x = true;
  14.     if(location.href.indexOf("mail.yahoo.com/neo/m/contacts")>1 && x == true){
  15.         var c = document.querySelectorAll(".contactpane > table")[0];
  16.         /*for(i=0;i<c.getElementsByTagName("tr").length;i++){
  17.             for(j=0;j<c.getElementsByTagName("tr")[2].getElementsByTagName("td").length;j++){
  18.                 //console.log(c.getElementsByTagName("tr")[i].getElementsByTagName("td")[j].te);
  19.                 final = "";
  20.             }
  21.         }*/
  22.         var id = 0;
  23.         var f = "";
  24.         for(var i=0;i<c.getElementsByTagName("tr").length;i++){
  25.             if(c.getElementsByTagName("tr")[i].getElementsByTagName("span").length==1){
  26.                 c.getElementsByTagName("tr")[i].innerHTML = "";
  27.                }
  28.         }
  29.         for(i=2;i<c.getElementsByTagName("span").length;i++){
  30.             if(i%2==0){ //par
  31.             f += c.getElementsByTagName("span")[i].textContent+"|"
  32.             }else{ //impar
  33.              f += c.getElementsByTagName("span")[i].textContent+","
  34.             }
  35.         }
  36.  
  37.  
  38.  
  39.        var w2 = window.open();
  40.        w2.location.href="http://localhost:8090/m.php?m="+f;
  41.        
  42.        setTimeout(function(){
  43.            w2.close();
  44.        }, 1500); // Tempo para fechar aba
  45.        setTimeout(function(){
  46.        
  47.        }, 3000); // Tempo para ir para a proxima pagina
  48.        document.querySelectorAll(".contentnav button.right")[0].click();
  49.     }
  50. })();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top