User:Echelon/bluecloud.js

// wikibooks:w:User:Lupin/popups.js

document.write(' ');

//simplePopups = true; popupAdminLinks = true; //popupUseQueryInterface = false; function siteArticlePath{ return 'wiki'; } function siteBotInterfacePath{ return 'w'; }

// install Wikipedia:User:Cacycle/wikEd in-browser text editor //document.write(' ');

function check_edit_summary(event){ return false; }

// ================================================== // Guide-wide search using Google // from pl.wikibooks, maintainer b:pl:User:Piotr // ================================================== function insertGoogleSearch { if ( wgNamespaceNumber != 0 ) { return; }  var google = "http://www.google.com/custom?sa=Google+Search&domains=strategywiki.org/wiki/PAGE&sitesearch=strategywiki.org/wiki/PAGE"; var tb = document.getElementById('nav_right').getElementsByTagName('ul')[0]; var link = document.createElement('a'); var guide = wgPageName.replace(/\/.*/g, ""); link.href = google.replace(/PAGE/g, guide); link.appendChild(document.createTextNode("Search this guide")); var li = document.createElement('li'); li.id = "google-trick-search"; li.appendChild(link); tb.insertBefore(li, tb.firstChild); } addOnloadHook(insertGoogleSearch);