User:Unit388/popups.js: Difference between revisions

Content deleted Content added
add colons per WP:REDNOT & RFP request (see Special:Permalink/935065055#User:Unit388/popups.js)
Maintenance: mw:RL/MGU - wgEnableAPI is deprecated
Line 1,090:
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'));
Line 4,371:
}
pendingNavpopTask(navpop);
if( !mw.config.get('wgEnableAPI')false ) {
/* The API is not available */
htmlGenerator=function(a,d){
Line 4,738:
// API call to retrieve image info.
 
if ( !getValueOf('popupImages') || !mw.config.get('wgEnableAPI')false ) return;
if ( !isValidImageName(image) ) return false;
Line 6,536:
 
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',
Line 6,766:
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.');
Line 7,199:
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.');