User:Gary/comments in local time.js: Difference between revisions

Content deleted Content added
Don't run for certain HTML tags, namely CODE and PRE for now
Fix for "mw" not being immediately available.
Line 11:
* [[Wikipedia:Comments in Local Time]]
*/
var CommentsInLocalTime, runScript;
 
CommentsInLocalTime = (function() {
Line 372:
})();
 
$(window).load(runScript = function() {
return $(window).load(function() {
if (window.___location.href.indexOf('&disable=loco') === -1) {
return CommentsInLocalTime.init();
}
});
};
 
if (typeof waitForScripts === 'function') {
waitForScripts(runScript);
} else {
runScript();
}