Jump to content

User:Lilac Soul/dabsolve.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
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'));
  }
});
 
/*</source>
 
[[Category:Wikipedia scripts]]
*/