MediaWiki:YouTube.js: Revision history

From VRChat Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

11 October 2024

10 October 2024

  • curprev 02:4702:47, 10 October 2024Arie² talk contribs 1,086 bytes +1,086 Created page with "// This could be replaced with https://www.mediawiki.org/wiki/Extension:YouTube, but it // was easier to just implement it myself instead of asking & waiting for it to be added. [...document.querySelectorAll(".youtube")].map((element) => { const { videoId, ...attributes } = element.dataset; const iframe = document.createElement("iframe"); iframe.setAttribute("width", 560); iframe.setAttribute("height", 315); iframe.setAttribute("frameborder", 0); // As suggested..."