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)
 
(10 intermediate revisions by 2 users not shown)
Line 1:
// Pending changes link in toolbar
addOnloadHook(function(){
// By Epigenius, 2015
var pendingchanges = document.createElement('li');
// with some help from MusikAnimal's talk page
pendingchanges.innerHTML = '<a target="_blank" href="https://en.wikipedia.org/wiki/Special:PendingChanges" title="Pending changes">Pending changes</a>';
 
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>'");
}
$(pendingchanges);