User:Epicgenius/pcreview.js: Difference between revisions

Content deleted Content added
uh-oh
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
(6 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 pendingchanges(){
pendingchanges.innerHTML = '<a target= mw.util.addPortletLink("_blankp-tb", href="https://en.wikipedia.org/wiki/Special:PendingChanges", title="Pending changes">Pending, "tb-pendingchanges","View the list of pending changes</a>'");
 
}
var pendingchanges = document.createElement('li');
 
mw.util.addPortletLink$([pendingchanges]);
pendingchanges.innerHTML = '<a target="_blank" href="https://en.wikipedia.org/wiki/Special:PendingChanges" title="Pending changes">Pending changes</a>';
 
mw.util.addPortletLink([pendingchanges]);
 
});