Rawoas13

Youtube view-source #3

Oct 28th, 2020 (edited)
595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script >
  2.     (function() {
  3.       var setFiller = function() {
  4.         var fillerData = {
  5.           browse: {
  6.             filler: true,
  7.             page: 'browse'
  8.           },
  9.           home: {
  10.             filler: true,
  11.             page: 'home',
  12.             endpoint: {
  13.               commandMetadata: {
  14.                 webCommandMetadata: {
  15.                   url: "/",
  16.                   webPageType: "WEB_PAGE_TYPE_BROWSE"
  17.                 }
  18.               },
  19.               urlEndpoint: {
  20.                 url: "/"
  21.               }
  22.             },
  23.             response: {
  24.               contents: {
  25.                 twoColumnBrowseResultsRenderer: {
  26.                   tabs: [{
  27.                     tabRenderer: {
  28.                       selected: true,
  29.                       content: {
  30.                         richGridRenderer: {
  31.                           contents: [],
  32.                           continuations: [{
  33.                             nextContinuationData: {continuation: ''}
  34.                           }]
  35.                         }
  36.                       }
  37.                     }
  38.                   }]
  39.                 }
  40.               }
  41.             }
  42.           },
  43.           search: {
  44.             filler: true,
  45.             page: 'search',
  46.             endpoint: {
  47.               commandMetadata: {
  48.                 webCommandMetadata: {
  49.                   url: "/results",
  50.                   webPageType: "WEB_PAGE_TYPE_SEARCH"
  51.                 }
  52.               },
  53.               urlEndpoint: {
  54.                 url: "/results"
  55.               }
  56.             },
  57.             response: {
  58.               contents: {
  59.                 twoColumnSearchResultsRenderer: {
  60.                   primaryContents: {
  61.                     sectionListRenderer: {
  62.                       contents: [],
  63.                       subMenu: {
  64.                         searchSubMenuRenderer: {}
  65.                       }
  66.                     }
  67.                   },
  68.                   secondaryContents: {
  69.                     secondarySearchContainerRenderer: {
  70.                       contents: []
  71.                     }
  72.                   }
  73.                 }
  74.               }
  75.             }
  76.           },
  77.           watch: {
  78.             filler: true,
  79.             page: 'watch',
  80.             endpoint: {
  81.               commandMetadata: {
  82.                 webCommandMetadata: {
  83.                   url: "/watch",
  84.                   webPageType: "WEB_PAGE_TYPE_WATCH"
  85.                 }
  86.               },
  87.               urlEndpoint: {
  88.                 url: "/watch"
  89.               }
  90.             },
  91.             playerResponse: {
  92.               playabilityStatus: {
  93.                 status: 'OK'
  94.               }
  95.             },
  96.             response: {
  97.               contents: {
  98.                 twoColumnWatchNextResults: {
  99.                   results: {
  100.                     results: {
  101.                       contents: [{
  102.                         videoPrimaryInfoRenderer: {},
  103.                         videoSecondaryInfoRenderer: {}
  104.                       }]
  105.                     }
  106.                   },
  107.                   secondaryResults: {
  108.                     secondaryResults: {}
  109.                   }
  110.                 }
  111.               }
  112.             }
  113.           }
  114.         };
  115.  
  116.         window.ytcfg.set('FILLER_DATA', fillerData);
  117.       };
  118.  
  119.         window.getPageData = function() {
  120.           if (window.ytcsi) {window.ytcsi.tick("pr", null, '');}
  121.           var endpoint = null;
  122.             endpoint = {"commandMetadata":{"webCommandMetadata":{"url":"/watch?v=w3N5jVCh9sw","webPageType":"WEB_PAGE_TYPE_UNKNOWN","rootVe":83769}},"urlEndpoint":{"url":"/watch?v=w3N5jVCh9sw"}};
  123.           var data = {
  124.               page: "watch",
  125.               player: ytplayer.config,
  126.               playerResponse: window.ytInitialPlayerResponse,
  127.                 url: "\/watch?v=w3N5jVCh9sw",
  128.               response: window.ytInitialData,
  129.               endpoint: endpoint
  130.           };
  131.           return {
  132.             data: data,
  133.             endpoint: endpoint
  134.           };
  135.         };
  136.  
  137.         if (window.loadDataHook) {
  138.           var pageData = window.getPageData();
  139.           window.loadDataHook(pageData.endpoint, pageData.data);
  140.           window.loadDataHook = null;
  141.         }
  142.         setFiller();
  143.  
  144.     })();
  145.  
  146.       var meta = document.createElement('meta');
  147.       meta.name = 'referrer';
  148.       meta.content = 'origin-when-cross-origin';
  149.       document.getElementsByTagName('head')[0].appendChild(meta);
  150.  
  151.   </script>
  152.  
  153. <script >if (window.ytcsi) {window.ytcsi.info("st", 568, '');}</script></body></html>
Add Comment
Please, Sign In to add comment