MyWikiBiz, Author Your Legacy — Monday November 10, 2025
Jump to navigationJump to search
22 bytes removed
, 01:24, 31 October 2006
| Line 1: |
Line 1: |
| | + | /* |
| | + | <pre> |
| | + | */ |
| | /* tooltips and access keys */ | | /* tooltips and access keys */ |
| | ta = new Object(); | | ta = new Object(); |
| Line 297: |
Line 300: |
| | | | |
| | // ================================================== | | // ================================================== |
| − | // Site-wide search using Google | + | // Site-wide search using Google - derived |
| | // from pl.wikibooks, maintainer [[b:pl:User:Piotr]] | | // from pl.wikibooks, maintainer [[b:pl:User:Piotr]] |
| | // ================================================== | | // ================================================== |
| Line 319: |
Line 322: |
| | | | |
| | function insertGoogleSearch() { | | function insertGoogleSearch() { |
| − | if ( wgNamespaceNumber != 0 && wgNamespaceNumber != 102) { // 102 - Cookbook namespace | + | if ( wgNamespaceNumber != 0 && wgNamespaceNumber != 110) { |
| | return; | | return; |
| | } | | } |
| − | var google = "http://www.google.com/custom?sa=Google+Search&domains=www.centiare.com/index.php/PAGE&sitesearch=www.centiare.com/index.php/PAGE"; | + | var google = "http://www.google.com/custom?sa=Google+Search&domains=www.centiare.com&sitesearch=www.centiare.com"; |
| | var tb = document.getElementById('p-tb').getElementsByTagName('ul')[0]; | | var tb = document.getElementById('p-tb').getElementsByTagName('ul')[0]; |
| | var link = document.createElement('a'); | | var link = document.createElement('a'); |
| Line 329: |
Line 332: |
| | | | |
| | link.href = google.replace(/PAGE/g, book); | | link.href = google.replace(/PAGE/g, book); |
| − | link.appendChild(document.createTextNode("Search this book")); | + | link.appendChild(document.createTextNode("Search this site")); |
| | | | |
| | var li = document.createElement('li'); | | var li = document.createElement('li'); |
| Line 339: |
Line 342: |
| | | | |
| | addOnloadHook(insertGoogleSearch); | | addOnloadHook(insertGoogleSearch); |
| | + | |
| | + | /* |
| | + | </pre> |
| | + | */ |