API for CustomElements in YouTube

A JavaScript tool to modify CustomElements in YouTube

< Feedback on API for CustomElements in YouTube

Question/comment

§
Posted: 03 Juli 2023

// ==UserScript==
// @name        Test
// @namespace   test
// @match       https://www.youtube.com/*
// @grant       none
// @version     1.0
// @author      -
// @description 7/3/2023, 11:16:26 PM
// @run-at  document-start
// ==/UserScript==

let cid = setInterval(()=>{

  try{
    ytcfg.data_.EXPERIMENT_FLAGS.polymer_enable_controller_extraction=false
  }catch(e){}
},1);

setTimeout(()=>{
clearInterval(cid);
},1000);

§
Posted: 04 Juli 2023

Updated to v1.4.1

// @require https://greasyfork.org/scripts/465819-api-for-customelements-in-youtube/code/API%20for%20CustomElements%20in%20YouTube.js?version=1215125

No external method changed. It can be used even when polymer_enable_controller_extraction=true

Post reply

Sign in to post a reply.