Created
July 26, 2018 17:49
-
-
Save hypnguyen1209/68047f7671951701681556c6935b6921 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: function OpenInNewTab(url) { var win = window.open(url, '_blank'); win.focus(); } var imgst = document.querySelector("img[class='_ntjhp _ro0gg']"); var videost = document.querySelector("source"); var link = (videost ==''||videost==null||videost==undefined) ? imgst : videost; OpenInNewTab(link.getAttribute("src")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment