Difference between revisions 137476 and 137707 on testwiki/// PerfektesChaos/js/WikisyntaxTextMod/?X.js /// 2012-05-30 [email protected] /// Fingerprint: #0#0# /// <nowiki> /* jshint curly:true, latedef:true, laxbreak:true, trailing:true, undef:true, white:false */ /* global jQuery: true, mw: true, mediaWiki: false, window: false */ /*jslint plusplus: true, regexp: true, sloppy: true, unparam: true, (contracted; show full) var ext; var r = false; var re = new RegExp("\n[ " + WSTM.str.spaces + "]+\n", "g"); var score = adjust; WSTM.o.WikiTom.Level=-99; RegExp.multiline = true; if (typeof(window) === "object") { WSTM.config.xDebug = jQuery.cookie("xDebug"); if (typeof(WSTM.config.xDebug) === "string") { WSTM.config.xDebug = WSTM.config.xDebug.replace(/(0|false)/, ""); WSTM.config.xDebug = (WSTM.config.xDebug.length > 0); }⏎ if (typeof(window.console) === "object") { window.console.clear(); if (WSTM.config.xDebug) {⏎ mw.log(WSTM.debugging,".api.textMod()",0); }⏎ } if (window.name) { mw.log(WSTM.debugging,"window.name='"+window.name+"'",3); } } WSTM.mod.furnish(); WSTM.g.factory(); WSTM.w.encountered = { cats: false, indent: false, isbn: false, iwiki: false, refgroups: false }; WSTM.str.locateEntities = true; WSTM.config.xEvaluation = jQuery.cookie("xEvaluation");// //////// if (typeof(WSTM.config.xEvaluation) === "string") { WSTM.config.xEvaluation = WSTM.config.xEvaluation.replace(/(0|false)/, ""); WSTM.config.xEvaluation = (WSTM.config.xEvaluation.length > 0); } if (WSTM.mod.comment) { WSTM.w.tags.frozen(); } WSTM.text = new WSTM.o.WikiTom(adjust, null); (contracted; show full) if (score.charCodeAt(ext) === 10) { while (score.charCodeAt(ext - 1) === 10) { score = score.substr(0, ext); ext--; } // while } // score terminated by \n } // changes /* if (WSTM.config.xDebug) {⏎ if (typeof(window.console) === "object") { WSTM.text.DEBUGparent(); mw.log(WSTM.debugging,".main.bb.X.fn ==================",0,WSTM.X); mw.log(WSTM.debugging,".main.bb.X.fn",0,WSTM.text); mw.log(WSTM.debugging,".main.bb.X.fn",0,WSTM.w.encountered); mw.log(WSTM.debugging,".main.bb.X.fn",0,WSTM.w.chr.detected); } } } */ if (score !== adjust) { r = [score, WSTM.mod.lazy]; } // changes return r; }; // .api.textMod() }; // .bb.apiX() mw.libs.WikiSyntaxTextMod.bb.apiX(mw.libs.WikiSyntaxTextMod); delete mw.libs.WikiSyntaxTextMod.bb.apiX; //----------------------------------------------------------------------- mw.libs.WikiSyntaxTextMod.bb.X = function (jQuery, mw, WSTM) { // Start on import: callback to waiting ... if (typeof(WSTM.main.wait) === "function") { WSTM.main.wait("X", WSTM.X.vsn); } }; mw.libs.WikiSyntaxTextMod.bb.X(jQuery, mw, mw.libs.WikiSyntaxTextMod); // Emacs // Local Variables: // encoding: iso-8859-1-dos // fill-column: 80 // End: /// EOF </nowiki> WikiSyntaxTextMod/?X.js All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://test.wikipedia.org/w/index.php?diff=prev&oldid=137707.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|