var obj = $(".yt-simple-endpoint.inline-block.style-scope.ytd-thumbnail")
console.log("slicing obj " + obj[0].slice(32, 43));
obj is a array that contains youtube links. It includes around 32 youtube links if you are at youtube.com main page. So what I am trying to do here is, choose obj[0]
"First youtube url in that array and slice only the part that comes after watch?v=.
However when I try this I get this error message: "contentscript.js:137 Uncaught TypeError: obj[0].slice is not a function at contentscript.js:137"