User:Sam Sailor/Scripts/dabsolve.js

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.
// This is a modified version of [[User:Lilac Soul/dabsolve.js]] ([[Special:PermaLink/344136077]]) with corrected URL
function dabsolve() {
window.document.location.href = 'https://dispenser.info.tm/~dispenser/cgi-bin/dab_solver.py?page='+wgPageName;
}
$(function () {
if(wgNamespaceNumber==0&&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]]
*/