Pengguna:Hidayatsrf/dabfinder.js: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
k Maintenance: Replacing legacy global variable (phab:T72470)
k Maintenance: Fixing deprecated call to importScriptURI (mw:ResourceLoader/Migration_guide_(users)#importScriptURI)
 
(1 revisi perantara oleh pengguna yang sama tidak ditampilkan)
Baris 41:
function findDABsButton() {
if(!queryString('oldid') && !queryString('diff') && (wgAction == 'view' || wgAction == 'purge')) {
mw.util.addPortletLink('p-tb','javascript:findDABs()','Find disambiguations','t-dab');
if(queryString('finddab')=='true') findDABs();
}
mw.util.addPortletLink('p-tb','javascript:findRDRs()','Find redirects','t-rdr');
if(queryString('findrdr')=='true') findRDRs();
}
Baris 66:
if(dab) injectSpinner(dab,'dab');
var url = wgScriptPath + '/api.php?maxage=86400&smaxage=86400&action=query&prop=links&pllimit=500&tlnamespace=10&indexpageids&format=json&rawcontinue=&callback=findDABsCB&titles=MediaWiki:Disambiguationspage';
importScriptURImw.loader.load(url);
}
 
Baris 82:
var url = wgScriptPath + '/api.php?maxage=300&smaxage=300&action=query&redirects&generator=links&gpllimit=500&prop=templates&tllimit=500&indexpageids&format=json&rawcontinue&callback=findDABlinksCB&titles=' + encodeURIComponent(mw.config.get('wgPageName'));
if(qcont) url += '&tlcontinue=' + encodeURIComponent(qcont)
importScriptURImw.loader.load(url);
}