Pengguna:Riemogerz/media/script/wiked.user.js: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
Riemogerz (bicara | kontrib)
←Membuat halaman berisi ' // <source lang="JavaScript"> if (typeof(wikEd) == 'undefined') { window.wikEd = {}; } // version info wikEd.programVersion = '0.9.102'; wikEd.programDate = 'Ja...'
 
Krinkle (bicara | kontrib)
Maintenance: Remove use of deprecated wgEnableAPI (always true) - mw:RL/MGU
 
Baris 1.860:
 
// parse global-context (MediaWiki) variables into hash (for Greasemonkey)
var globalNames = ['skin', 'wgServer', 'wgTitle', 'wgCanonicalNamespace', 'wgArticlePath', 'wgScript', 'wgScriptPath', 'wgUserName', 'wgCurRevisionId', 'wgContentLanguage', 'wgUserLanguage', 'wgEnableAPI', 'wgPageName', 'wgNamespaceIds', 'wgFormattedNamespaces', 'wgUseAutomaticEditSummaries'];
if (wikEd.greasemonkey == true) {
globalNames.push('wikEdConfig', 'wikEdText');
Baris 3.218:
if (wikEd.fixRegExTypo != null) {
wikEd.fixRegExTypo.style.display = 'none';
}
 
// hide buttons if API is not available
if ( (wikEd.wikiGlobals.wgEnableAPI != true) && (wikEd.wikiGlobals.wgEnableAPI != 'true') ) {
var fixRedirect = document.getElementById('wikEdFixRedirect');
if (fixRedirect != null) {
fixRedirect.style.display = 'none';
}
}
 
Baris 8.948 ⟶ 8.940:
 
// check if api is enabled
if ( ( (wikEd.wikiGlobals.wgEnableAPI != true) && (wikEd.wikiGlobals.wgEnableAPI != 'true') ) || (wikEd.scriptURL == '') ) {
return;
}