Difference between revisions of "User:SimonA/monobook.js"

From Conservapedia
Jump to navigation Jump to search
(…or not)
Line 1: Line 1:
−
 
+
// Simplified edit section 0 ([[User:ais523/editsection0tab.js]])
 +
// Loosely based on [[Wikipedia:WikiProject User scripts/Scripts/Add edit section 0]]
 +
addOnloadHook(function()
 +
{
 +
  var x=document.getElementById('ca-history');
 +
  if(x!=null)
 +
    addPortletLink('p-cactions', wgServer+wgScript+"?title="+encodeURIComponent(wgPageName)+
 +
                                "&action=edit&section=0", '0', 'ca-edit-0',
 +
                                'Edit the lead section of this page', '0', x);
 +
});
 +
// end script

Revision as of 03:33, December 10, 2007

// Simplified edit section 0 ([[User:ais523/editsection0tab.js]])
// Loosely based on [[Wikipedia:WikiProject User scripts/Scripts/Add edit section 0]]
addOnloadHook(function()
{
  var x=document.getElementById('ca-history');
  if(x!=null)
    addPortletLink('p-cactions', wgServer+wgScript+"?title="+encodeURIComponent(wgPageName)+
                                 "&action=edit&section=0", '0', 'ca-edit-0',
                                 'Edit the lead section of this page', '0', x);
});
// end script