Thread:Mathmagician/@comment-3562424-20120914043856/@comment-4674838-20120914045735

Well, the script has a "permissions" configuration option so that admins can make it so that the script only works for users with specific rights.

However, the script should also be able to be used in global.js.

In the case where a wiki has set permissions to block a user, but the user ALSO has the script in their global.js, here's what should happen:
 * 1) The script should run once for MediaWiki:Common.js, and fail because the user doesn't have permission
 * 2) The script should run a 2nd time when loaded from global.js and succeed always.

The problem is that importScriptURI internally tracks all scripts that have loaded via the loadedScripts global variable. So if you try to load a script a 2nd time, it won't work. Lunarity is basically working on a monkey patch to get around that problem, and I just tested it here on my test wiki and it doesn't appear to be working.

Full conversation on the talk page at w:c:dev:Talk:RevealAnonIP