Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name New Userscript
- // @namespace http://alltube.pl/
- // @namespace http://alltube.tv/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match http://*/*
- // @grant none
- // ==/UserScript==
- function getLinksToPlayer(a)
- {
- var td1 = a.querySelector("td:nth-child(1)").innerText;
- var td2 = (a.querySelector("td:nth-child(2)")).queySelector("[href]");
- var td3 = a.querySelector("td:nth-child(3)");
- var td4 = a.querySelector("td:nth-child(4)");
- console.log(td1);
- console.dir(td2);
- console.log(td3);
- console.log(td4);
- }
- var tr = Array.prototype.slice.call(document.querySelectorAll("tbody > tr"));
- tr.forEach(getLinksToPlayer);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement