User:Epicgenius/pcreview.js: Difference between revisions

Content deleted Content added
No edit summary
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
(2 intermediate revisions by 2 users not shown)
Line 1:
// Pending changes link in toolbar
// By Epigenius, 2015
// with some help from MusikAnimal's talk page
/*
addOnloadHook(function(){
var pendingchanges =
pendingchanges.innerHTML = '<a target="_blank" href="https://en.wikipedia.org/wiki/Special:PendingChanges" title="Pending changes">Pending changes</a>';
mw.util.addPortletLink([pendingchanges]);
}); */
 
function pendingchanges(){
mw.util.addPortletLink("p-tb", "https://en.wikipedia.org/wiki/Special:PendingChanges", "Pending changes", "tb-pendingchanges","View the list of pending changes");
}
addOnloadHook$(pendingchanges);