Advertisement
Guest User

Untitled

a guest
May 25th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. // ==UserScript==
  2. // @name New Userscript
  3. // @namespace http://alltube.pl/
  4. // @namespace http://alltube.tv/
  5. // @version 0.1
  6. // @description try to take over the world!
  7. // @author You
  8. // @match http://*/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. function getLinksToPlayer(a)
  13. {
  14. var td1 = a.querySelector("td:nth-child(1)").innerText;
  15. var td2 = (a.querySelector("td:nth-child(2)")).queySelector("[href]");
  16. var td3 = a.querySelector("td:nth-child(3)");
  17. var td4 = a.querySelector("td:nth-child(4)");
  18.  
  19. console.log(td1);
  20. console.dir(td2);
  21. console.log(td3);
  22. console.log(td4);
  23. }
  24.  
  25. var tr = Array.prototype.slice.call(document.querySelectorAll("tbody > tr"));
  26. tr.forEach(getLinksToPlayer);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement