Difference between revisions of "User:SimonA/monobook.js"
Jump to navigation
Jump to search
(Hmm.) |
|||
| Line 1: | Line 1: | ||
// Simplified edit section 0 ([[User:ais523/editsection0tab.js]]) | // Simplified edit section 0 ([[User:ais523/editsection0tab.js]]) | ||
// Loosely based on [[Wikipedia:WikiProject User scripts/Scripts/Add edit section 0]] | // Loosely based on [[Wikipedia:WikiProject User scripts/Scripts/Add edit section 0]] | ||
| + | // <source lang="javascript"> | ||
addOnloadHook(function() | addOnloadHook(function() | ||
{ | { | ||
| Line 9: | Line 10: | ||
'Edit the lead section of this page', '0', x); | 'Edit the lead section of this page', '0', x); | ||
}); | }); | ||
| − | // | + | // </source> |
| + | // | ||
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]]
// <source lang="javascript">
addOnloadHook(function()
{
var x=document.getElementById('ca-history');
if(x!=null)
addPortletLink('p-cactions', wgServer+wgScript+"?title="+encodeURIComponent(wgPageName)+
"&action=edit§ion=0", '0', 'ca-edit-0',
'Edit the lead section of this page', '0', x);
});
// </source>
//