Difference between revisions of "Sitanuns:Common.js"

no edit summary
(Update script to work with the new badges system. Please report any issues or questions at d:Wikidata:Contact the development team. Per MediaWiki talk:Common.js)
function forcePreview()
{
if (wgUserName mw.config.get("wgAction") != null"edit" ) return;
if (locationmw.searchconfig.searchget(/&action=edit/"wgUserName") !== -1null) return;
var saveButton = document.getElementById("wpSave");
if (!saveButton) return;
if (location.search.search(/&action=edit/) == -1) return;
saveButton.disabled = true;
saveButton.style.fontWeight = "normal";
}
 
$jQuery(document).ready( forcePreview );
 
/** Yüms gudik ***************************************************************************
}
 
$jQuery(document).ready( LinkFA );
 
/* 'Redakön' in padaküpets */
3,942

edits