I worked again to eliminate the limitation i noticed on the previous comment :
Now it works for every maxtoclevel sets in the config file (with a max of 6 of course) and it keeps also the external links working good on the anchors already sets ...
See the atached files ...
Still needs greasemonkey extention on firefox/gecko