User:Wknight94/monobook.js

if( typeof( TwinkleConfig ) == 'undefined' ) TwinkleConfig = {}; // DO NOT REMOVE THIS LINE - ALL TWINKLE SETTINGS AFTER THIS TwinkleConfig.watchWarnings				=	false;

// Monobook skin, unlike the newer Vector skin, doesn't load jQuery :( if(typeof jQuery == "undefined") {   mw.loader.load("//bits.wikimedia.org/skins-1.5/common/jquery.min.js"); }

addOnloadHook(function {    if (mw.config.get('wgNamespaceNumber') == -1) { return; }         // only add toolbox link on actual pages     target = document.getElementById('p-cactions').getElementsByTagName( "ul" );     if( target.length == 0 ){ return; } //no action bar to hook into     target = target[0];     newTool = document.createElement("li");     target.appendChild( newTool );     newTool.innerHTML = 'Dab Solver';

jQuery(".qqqnavbox-list div a").attr('href', function(index) {        return jQuery(this).attr('href').replace('/wiki/', 'http://toolserver.org/~dispenser/cgi-bin/dab_solver.py?page=');     }); });