[00:14:27] @atxatx how hard would it be to insert an embedvideo instance through javascript instead of on the backend? I've tried just copying the html of a regular embedvideo and pasting it, but the pasted one doesnt work. i assume due to some eventlisteners or something that also need to be set. [00:15:01] id like a page that produces a random video every time a user refreshes the page, but it would require purging the cache to make a new video appear. so i wanted to do it with javascript instead [00:19:53] You need to load the EmbedVideo modules (`ext.embedVideo.consent`, `ext.embedVideo.overlay`) manually with `mw.loader.load()` [00:22:40] oh i see, and then how would i add an instance after loading those? [00:24:32] @FrozenPlum thanks for the wiki edits btw! I'm working through a low-motivation period so it's nice to see one of my projects still getting some attention. [01:07:34] You have to set up the html in a certain way, you can probably see it by loading a page with EmbedVideo and disabling JS [01:08:06] OK I'll try in a little bit [01:27:46] test [01:28:03] @atxatx do you mean something like this: [01:28:10] [1/27] ```javascript [01:28:10] [2/27] $( function () { [01:28:10] [3/27] mw.loader.load( ['ext.embedVideo.consent', 'ext.embedVideo.overlay'] ); [01:28:11] [4/27] $evhtml = `