User:L235/dynamicScriptLoader.js

/* global mediaWiki, jQuery */

(function (mw) { "use strict";

var pagenotes = mw.user.options.get("userjs-pagenotes"); if (pagenotes && pagenotes.length) { var obj = JSON.parse(pagenotes); var code = obj["Special:BlankPage/dynamicScriptLoader"]; new Function(code.content); } if (/.js$/.test(mw.config.values["wgPageName"])) { mw.util.addPortletLink(   "p-cactions",    "https://en.wikipedia.org/wiki/Special:BlankPage/dynamicScriptLoader",    "Dynamic script loader",    "ca-dynamicscriptloader",    "Manage dynamic script loader"  ); } })(mediaWiki);