User:Ponor/wAwB.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump.
This code will be executed when previewing this page.
This code will be executed when previewing this page.
This user script seems to have a documentation page at User:Ponor/wAwB.
/*
* wAwB – An in-browser application for automated editing of wiki pages.
* Features: customizable regex or JavaScript search-and-replace rules,
* custom JavaScript pre/post-processing functions and function libraies,
* granular protection or targeting of different parts of wikitext,
* a full-fledged CodeMirror editor, and options to move, delete, and protect pages.
* Author: [[User:Ponor]]
* Documentation: [[User:Ponor/wAwB]]
* License: GNU General Public License (GPL)
*/
// This file creates a portlet link for the worker script [[User:Ponor/wAwB-worker.js]]
// and loads the script at the following page: [[Special:Blankpage/wAwB]]
(function() {
var WORKER_SCRIPT_URL = "//en.wikipedia.org/w/index.php?title=User:Ponor/wAwB-worker.js";
var isToolPage = mw.config.get('wgCanonicalSpecialPageName') === "Blankpage" &&
mw.config.get('wgPageName').slice(-5) === "/wAwB";
if (isToolPage) {
mw.loader.load(WORKER_SCRIPT_URL + "&action=raw&ctype=text/javascript");
} else {
$.when(mw.loader.using(['mediawiki.util']), $.ready).then(function() {
mw.util.addPortletLink(
'p-tb',
mw.util.getUrl('Special:BlankPage/wAwB'),
window.wa_editIn || 'Edit in wAwB',
'pt-wAwB',
window.wa_toolTip || 'Automated editing gadget'
);
});
}
})();