Changes

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(" ", "_");
nsTeam2RO, nsTeam2RW, nsTeam2_talkRO, nsTeam2_talkRW
13,254

edits