Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
User:Philip J. Rayment/Welcome script
(view source)
Revision as of 03:44, July 6, 2007
99 bytes added
,
03:44, July 6, 2007
Better check for correct page.
Line 60:
Line 60:
// 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 74:
Line 77:
// 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(" ", "_");
Philip J. Rayment
nsTeam2RO, nsTeam2RW, nsTeam2_talkRO, nsTeam2_talkRW
13,254
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
User page
talk page
Variants
Views
Read
View source
View history
More
Search
Popular Links
Main Page
Recent changes
New Pages
Random page
Statistics
Edit Console
User contributions
Logs
View user groups
Special pages
Printable version