Content deleted Content added
Lilac Soul (talk | contribs) dabsolve |
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1:
function dabsolve() {
window.document.___location.href = 'http://toolserver.org/~dispenser/cgi-bin/dab_solver.py?page='+mw.config.get('wgPageName');
}
addOnloadHook(function () {
if(mw.config.get('wgNamespaceNumber')==0&&mw.config.get('wgAction')=="view")
{
mw.util.addPortletLink('p-cactions', 'javascript:dabsolve()', 'dabsolve', 'ca-dabsolve', 'Run dabsolve-bot on article', '', document.getElementById('ca-dabsolve'));
}
});
|