Pengguna:Iwan Novirion/friendlytalkback.js: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
k Maintenance: Replacing addOnloadHook with native jQuery (mw:ResourceLoader/Migration_guide_(users)#addOnloadHook - phab:T130879)
k Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
Baris 46:
var username = wgTitle.split( '/' )[0].replace( /\"/, "\\\""); // only first part before any slashes
 
mw.util.addPortletLink( 'p-cactions', "javascript:friendlytalkback.callback(\"" + username + "\")", "TB", "friendly-talkback", "Easy talkback", "");
}
}