Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
The content of the detail object when spfpartreceived is called when navigating to https://www.youtube.com/watch?v=jDELybyZ4oU
{
"url": "https://www.youtube.com/watch?v=jDELybyZ4oU",
"part": {
"js": " <script>\n try {window.ytbuffer = {};ytbuffer.handleClick = function(e) {var element = e.target || e.srcElement;while (element.parentElement) {if (element.className.match(/(^| )yt-can-buffer( |$)/)) {window.ytbuffer = {bufferedClick: e};element.className += ' yt-is-buffered';break;}element = element.parentElement;}};if (document.addEventListener) {document.addEventListener('click', ytbuffer.handleClick);} else {document.attachEvent('onclick', ytbuffer.handleClick);}} catch(e) {}\n (function(){function a(b,g,k){var h=document.getElementsByTagName(\"html\")[0],e=[h.className];b&&1251<=(window.innerWidth||document.documentElement.clientWidth)&&(e.push(\"guide-pinned\"),g&&e.push(\"show-guide\"));k&&(b=(window.innerWidth||document.documentElement.clientWidth)-21-50,1251<=(window.innerWidth||document.documentElement.clientWidth)&&g&&(b-=230),e.push(\" \",1262<=b?\"content-snap-width-3\":1056<=b?\"content-snap-width-2\":\"content-snap-width-1\"));h.className=e.join(\" \")}\nvar c=[\"yt\",\"www\",\"masthead\",\"sizing\",\"runBeforeBodyIsReady\"],d=this;c[0]in d||!d.execScript||d.execScript(\"var \"+c[0]);for(var f;c.length&&(f=c.shift());)c.length||void 0===a?d[f]?d=d[f]:d=d[f]={}:d[f]=a;})();\nyt.www.masthead.sizing.runBeforeBodyIsReady(false,true,false);\n </script>\n\n\n\n <script src=\"//s.ytimg.com/yts/jsbin/www-scheduler-vfltpmjOU/www-scheduler.js\" type=\"text/javascript\" name=\"www-scheduler\"></script>\n\n\n <script>var ytimg = {};ytimg.count = 1;ytimg.preload = function(src) {var img = new Image();var count = ++ytimg.count;ytimg[count] = img;img.onload = img.onerror = function() {delete ytimg[count];};img.src = src;};</script>\n\n\n\n",
"css": " <link rel=\"stylesheet\" href=\"//s.ytimg.com/yts/cssbin/www-core-webp-vflxguuyA.css\" name=\"www-core\">\n<script>if (window.ytcsi) {window.ytcsi.tick(\"ce\", null, '');}</script>"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.