Wikipedia talk:WikiProject User scripts/Scripts/Edit Top

This is an old revision of this page, as edited by Nae'blis (talk | contribs) at 20:57, 2 August 2006 (Script does not work for historical page: ampersands are a problem, too). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 19 years ago by Nae'blis in topic Script does not work for historical page

I have a suggestion. Instead of all the f1r5tH34d1ng business, just change

document.getElementById("content").insertBefore(divContainer, theH1);

into:

document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]);

Thanks! JesseW 07:36, 29 August 2005 (UTC)Reply

I tried that before and it didn't work for some reason. It works for you? --pile0nadestalk | contribs 15:37, 29 August 2005 (UTC)Reply
Questions like this are why I created Wikipedia:WikiProject_User_scripts/Techniques - we can simplfy this down to a specifc line of code, then try it on lots of different browsers, and see how portable it is. Do you get any error messages(like on the JavaScript Console, maybe?) I will try my version, and see if it works, and post on the techniques page. Thanks! JesseW 20:51, 29 August 2005 (UTC)Reply
It works for me, with Firefox 1.0.4 on OSX. What are you using? JesseW 20:56, 29 August 2005 (UTC)Reply

Script does not work for historical page

Attempts at editing an older version will only summon the current version. Circeus 19:35, 24 June 2006 (UTC)Reply

Similarly, I've had trouble where an article title with an ampersand (for example) Madam & Eve will try to edit the top section of Madam when I use the javascript edit top link. -- nae'blis 20:57, 2 August 2006 (UTC)Reply