This is an old revision of this page, as edited by Mr. Stradivarius(talk | contribs) at 03:18, 14 September 2016(make a start on a library for accessing information about sensitive IP addresses). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.Revision as of 03:18, 14 September 2016 by Mr. Stradivarius(talk | contribs)(make a start on a library for accessing information about sensitive IP addresses)
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(args){if(!(optionsinstanceofObject)){thrownewTypeError("type error in arg #1 to 'query' (object expected)");}returnmw.libs.lua.call({format:'json',module:'Sensitive IP addresses/API',func:'query',args:args});},isSensitive:function(s){returnsensitiveIPs.query({test:[s]}).then(function(data){returndata.ips.length>0;});}};})(jQuery,mediaWiki);