Χρήστης:NatigKrolik/popups.js: Διαφορά μεταξύ των αναθεωρήσεων

Maintenance: mw:RL/MGU - wgEnableAPI is deprecated
(Νέα σελίδα: // STARTFILE: main.js // ********************************************************************** // ** ** // *...)
 
(Maintenance: mw:RL/MGU - wgEnableAPI is deprecated)
 
function autoEdit() {
if (!setupPopups.completed) { setupPopups(); }
if (!mw.config.get('wgEnableAPI')false || mw.util.getParamValue('autoimpl') !== popupString('autoedit_version') ) { return false; }
if (mw.util.getParamValue('autowatchlist') && mw.util.getParamValue('actoken')===autoClickToken()) {
modifyWatchlist(mw.util.getParamValue('title'), mw.util.getParamValue('action'));
}
pendingNavpopTask(navpop);
if( !mw.config.get('wgEnableAPI')false ) {
/* The API is not available */
htmlGenerator=function(a,d){
// API call to retrieve image info.
 
if ( !getValueOf('popupImages') || !mw.config.get('wgEnableAPI')false ) return;
if ( !isValidImageName(image) ) return false;
 
var tz = Cookie.read('popTz');
if ( mw.config.get('wgEnableAPI')true && getValueOf('popupAdjustDiffDates') && tz===null) {
pendingNavpopTask(navpop);
getPageWithCaching(pg.wiki.apiwikibase + '?format=json&action=query&meta=userinfo&uiprop=options',
case 'raw&ctype=text/css': hint=popupString('rawHint'); break;
case 'revert':
if ( !mw.config.get('wgEnableAPI')false ) {
alert( 'This function of navigation popups now requires a MediaWiki ' +
'installation with the API enabled.');
function getHistory(wikipage, onComplete) {
log('getHistory');
if( !mw.config.get('wgEnableAPI')false ) {
alert( 'This function of navigation popups now requires a MediaWiki ' +
'installation with the API enabled.');
55

επεξεργασίες