Wikipedia:WikiProject User scripts/Scripts/Edit Top: Difference between revisions

Content deleted Content added
Pile0nades (talk | contribs)
Pile0nades (talk | contribs)
Line 48:
// create div and set innerHTML to link
var divContainer = document.createElement("div");
divContainer.innerHTML = '<div class="editsection">[<a href="/w/index.php?title='+pageTitle+'&action=edit&section=0" title="'+document.title.split("Edit -section: ")[0]'+pageTitle+'">edit intro</a>]</div>';
 
// insert divContainer into the DOM below the h1