Jump to content

User:Barticus88/edit section zero.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Barticus88 (talk | contribs) at 08:49, 7 January 2007 (length). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/*
{{TOCright}}
==Randall Bart's Edit Section Zero js==
 version 1.0 
 written January 2007
*/

 addOnloadHook(add_edit_section_zero);

 function add_edit_section_zero (){
     ed_btn = document.getElementById('ca-edit');
     if( ed_btn.length == 0 ){ return; } //not found
     ed_btn.innerHTML += ed_btn.innerHTML.substring(0,ed_btn.innerHTML.length-22)
         +'&amp;section=0">«0»</a>';
 }