Last modified: 2012-06-27 13:29:59 UTC
It removes the debug=1 from URL. Compare the result of typing ---- alert(mw.log); ---- on each of 1) https://en.wikipedia.org/wiki/User:YourUserName/common.js?action=edit 2) https://en.wikipedia.org/wiki/User:YourUserName/common.js?action=edit&debug=1 and clicking on preview after that. The result will be the same in both cases: ---- function (){} ---- In (2), the message should display the code which appears if you type "alert(mw.log);" in your browser's console, when in debug mode, not the dummy function which is used on "production mode". This makes it harder to debug some scripts.
You can set cookie "resourceLoaderDebug" to do this. This was done in bug 25610, which has been fixed 2 years ago, before the first release of ResourceLoader even. It simply wasn't documented. Closing as worksforme.
(In reply to comment #1) > You can set cookie "resourceLoaderDebug" to do this. Thanks! I've created a small JS to add a toggle for this cookie: https://pt.wikibooks.org/w/index.php?oldid=237110