This is an old revision of this page, as edited by Mr. Stradivarius(talk | contribs) at 06:34, 15 September 2016(don't need to fill in blank objects and arrays now that it is done properly in Lua). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.Revision as of 06:34, 15 September 2016 by Mr. Stradivarius(talk | contribs)(don't need to fill in blank objects and arrays now that it is done properly in Lua)
This page is loaded as a part of the libSensitiveIPs gadget, a hidden gadget.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
(function($,mw,undefined){'use strict';varsensitiveIPs;sensitiveIPs=mw.libs.sensitiveIPs={query:function(params){if(!(paramsinstanceofObject)){thrownewTypeError("type error in arg #1 to 'query' (object expected)");}params.format='json';returnmw.libs.lua.call({format:'json',module:'Sensitive IP addresses/API',func:'query',args:[params]});},isSensitive:function(s){returnsensitiveIPs.query({test:[s]}).then(function(data){returndata.sensitiveips.matches.length>0;});}};})(jQuery,mediaWiki);