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]}).then(function(data){// Add blank arrays and objects for queries that didn't return// a match. This can't be done in Lua, as Scribunto's// mw.text.jsonEncode can't distinguish between empty arrays// and empty objects due to the nature of Lua tables.data.sensitiveips.matches=data.sensitiveips.matches||[];data.sensitiveips['matched-ranges']=data.sensitiveips['matched-ranges']||{};data.sensitiveips.entities=data.sensitiveips.entities||{};data.sensitiveips['entity-ids']=data.sensitiveips['entity-ids']||[];returndata;});},isSensitive:function(s){returnsensitiveIPs.query({test:[s]}).then(function(data){returndata.sensitiveips.matches.length>0;});}};})(jQuery,mediaWiki);