MediaWiki:Gadget-wikEd.js: Verskil tussen weergawes
Content deleted Content added
vertaal |
k Bot: Security fix: protocol-relative URLs per https://meta.wikimedia.org/?oldid=3197161 (questions?). |
||
Lyn 13:
// version number URL, please also update [[User:Cacycle/wikEd_gadget_version]] when updating this page
var wikEdAutoUpdateUrl = '
// start of pasted code below this line:
Lyn 33:
// ==UserScript==
// @name wikEd
// @namespace
// @description A full-featured in-browser editor for Wikipedia and other MediaWiki edit pages
// @include *
// @exclude
//
// @homepage
// @source
// @author Cacycle (
// @license Released into the public domain
// ==/UserScript==
Lyn 47:
1. PLEASE DO NOT COPY THE WHOLE PROGRAM (in order to get the frequent updates and bug fixes and to save disk space)
2. See
3. Copy the following short block of code to [[User:YOURUSERNAME/monobook.js]]
4. Click SHIFT-Reload to update to the newest version
Lyn 56:
// install [[User:Cacycle/wikEd]] in-browser text editor
document.write('<script type="text/javascript" src="'
+ '
+ '&action=raw&ctype=text/javascript"></script>');
Lyn 66:
https://addons.mozilla.org/en-US/firefox/addon/748
2. Install wikEd by opening this address:
3. Optional: customize the program by adding user settings to the Greasemonkey customization section below
(these settings will be overwritten by updates!)
Lyn 84:
window.WikEdInitGlobalConfigs = function() {
// user readable texts, copy changes to
if (typeof(wikEdText) == 'undefined') { window.wikEdText = {}; }
Lyn 279:
'wikEdLocalDiffImg alt': 'Changes below',
'wikEdLocalDiff title': 'Show current changes below',
'wikEdHelpPageLink': ' | <a href="
// preview and changes buttons, top
Lyn 345:
// path to images, also defined in wikEdDiff.js
if (typeof(wikEdImagePath) == 'undefined') { window.wikEdImagePath = '
// image filenames, also defined in wikEdDiff.js
Lyn 900:
// RegExTypoFix rules page, the address must have the exact same domain name as the used wiki
if (typeof(wikEdRegExTypoFixURL) == 'undefined') { window.wikEdRegExTypoFixURL = '
// enable RegExTypoFix button (
if (typeof(wikEdRegExTypoFix) == 'undefined') { window.wikEdRegExTypoFix = false; }
Lyn 936:
// auto update: version url (Ajax)
if (typeof(wikEdAutoUpdateUrl) == 'undefined') { window.wikEdAutoUpdateUrl = '
// auto update: script url for Greasemonkey update
if (typeof(wikEdAutoUpdateScriptUrl) == 'undefined') { window.wikEdAutoUpdateScriptUrl = '
// show complete unshortened article text for local diff, also defined in wikEdDiff.js
Lyn 996:
// diff script URL
if (typeof(wikEdDiffScriptSrc) == 'undefined') { window.wikEdDiffScriptSrc = '
// wikEdDiff script URL, also defined in wikEdDiff.js
if (typeof(wikEdDiffSrc) == 'undefined') { window.wikEdDiffSrc = '
// InstaView script URL
if (typeof(wikEdInstaViewSrc) == 'undefined') { window.wikEdInstaViewSrc = '
// wikEd-as-gadget detection, set to true if gadget script name is not MediaWiki:Gadget-wikEd.js
Lyn 1 219:
WikEdInitObject(wikEdTranslations, {
'en': '',
'ar': '
'zh': '
'cs': '
'eo': '
'fr': '
'de': '
'hu': '
'it': '
'ja': '
'ms': '
'no': '
'nn': '
'pl': '
'pt': '
'ro': '
'scn': '
'sk': '
'sl': '
'es': '
'sv': '
'vi': '
});
}
|