MediaWiki:Follow.js

/* Update recent news about a favorite title $(function {

// Add link switch (mw.config.get("skin")) { case "wikia": // oasis case "oasis": $("#my-tools-menu").append('Theo dõi bộ truyện'); break; // oasis case "monobook": case "vector": $("#p-tb ul").append('Theo dõi bộ truyện'); break; }

// Core object var follower = { fn: { loadGlobal: function {}, saveGlobal: function {}, loadLocal: function {}, saveLocal: function {}, followTitle: function {}, targetTitle: function {}, untargetTitle: function {}, removeTitle: function {}, getFeed: function {}, getMoreFeed: function {}, clearFeed: function {}, vitalizeInterface: function {} },       storage: { url: "https://sonako.fandom.com" // domain },       data: { titles: [], targetTitles: [], feeds: [], from: null, to: null },       markup: { html: null, css: null }   }

// Define functionalities

// Implementation // Only show on Special:CatNav if (mw.config.get("wgNamespaceNumber") === -1 && mw.config.get("wgTitle") === "CatNav") { /* css */ mw.util.addCSS(follower.markup.css);

/* markup */ $("#mw-content-text").html(follower.markup.html);

/* add listeners */ follower.fn.vitalizeInterface; } })