مستخدم:Ibrahim.ID/test.js: الفرق بين النسختين

تم حذف المحتوى تمت إضافة المحتوى
لا ملخص تعديل
ط Maintenance: Replacing legacy global variable (phab:T72470)
سطر 44:
}
 
var url = wgScriptPath + '/api.php?action=query&prop=info|revisions&rvprop=timestamp&indexpageids=1&intoken=edit|move&format=json&titles=' + encodeURIComponent(mw.config.get('wgPageName'));
var req = sajax_init_object();
req.open('GET', url, true);
سطر 73:
var startstamp = page['starttimestamp'];
 
var params = 'action=edit&format=json&title=' + encodeURIComponent(mw.config.get('wgPageName')) + '&prependtext=' + encodeURIComponent(tag + '\n') + '&token=' + encodeURIComponent(edittoken) + '&summary=' + encodeURIComponent('Tagging with ' + tag) + '&minor=1&basetimestamp=' + timestamp.replace(/[^\d]/g,'');
if(startstamp) params += '&starttimestamp=' + startstamp.replace(/[^\d]/g,'')
var url = wgScriptPath + '/api.php';