| Line 38: |
Line 38: |
| | //<pre> | | //<pre> |
| | function AddWelcome() { | | function AddWelcome() { |
| − | addTab("javascript:DoWelcome()", "Welcome", "ca-Welcome", "Add welcome notice", ""); | + | var PageTitle = document.title.slice(0,17); |
| | + | if (PageTitle = 'Editing User talk') addTab("javascript:DoWelcome()", "Welcome", "ca-Welcome", "Add welcome notice", ""); |
| | } | | } |
| | //</pre> | | //</pre> |
| Line 60: |
Line 61: |
| | // Add an [edit] link to pages | | // Add an [edit] link to pages |
| | addOnloadHook(function () { | | addOnloadHook(function () { |
| − | var PageTitle = document.title.slice(0,17);
| |
| − | if (PageTitle != 'Editing User talk') return;
| |
| − | /*
| |
| | // if this is preview page or generated page, stop | | // if this is preview page or generated page, stop |
| | if(document.getElementById("wikiPreview") || window.location.href.indexOf("/wiki/Special:") != -1) return; | | if(document.getElementById("wikiPreview") || window.location.href.indexOf("/wiki/Special:") != -1) return; |
| Line 77: |
Line 75: |
| | // if this is the main page, stop | | // if this is the main page, stop |
| | if(document.getElementById("mainpage") || window.location.href.indexOf("/wiki/Special:") != -1) return; | | if(document.getElementById("mainpage") || window.location.href.indexOf("/wiki/Special:") != -1) return; |
| − | */
| + | |
| | // get the page title | | // get the page title |
| | var pageTitle = document.title.split(" - ")[0].replace(" ", "_"); | | var pageTitle = document.title.split(" - ")[0].replace(" ", "_"); |