MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

/* * Embed videos (Widget replacement) */ $(document).ready(function{ $(".trigger").click(function{ if ($(this).next.is(':empty')){ switch($(this).parent.data("site")) { case "Discord": $(this).next.html([' '].join("")) break; case "YouTube": $(this).next.html([' '].join(""))       break;      case "TwitchVOD":        $(this).next.html([' '].join(""))        break;      case "TwitchClip":        $(this).next.html([' '].join(""))        break;      }    }    else {      $(this).next.html('')}  }); })