User:JustLeafy/wikia.js

// Netflix Catalogue // @Author: User:Original Authority // source API: whats-on-netflix.com // updated: 05/05/2020 // desc: a dynamic-table-view list of all Netflix's "original content" — including summaries, IMDb rating, programe type & image. $(function {   if (wgPageName !== "Special:Netflix_Catalogue") {        return;    }    $('title').text("Netflix Catalogue");    $('.page-header__title').text("Netflix Catalogue");    table = $('Title Type Summary ');      $.ajax({ url: 'https://cors-anywhere.herokuapp.com/https://www.whats-on-netflix.com/wp-content/plugins/whats-on-netflix/json/originals.json', type: 'GET', success: function(result) { // console.log(result); result.forEach(titleresult); function titleresult(result) { // console.log(result.title) titles = result.titles; var tr = $(' '); tr.append($('  ' + result.title + '')).css('font-weight', 'bold') .append($(' ', { html: result.type }))                   .append($(' ', { html: result.description }))                   table.append(tr); }           table.append(' Version 0.1; Suggest Changes  '); $('#mw-content-text').html(table); },       error: function (error) { console.log(error); } }) });