Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

show url in bookmarks toolbar instead of name

  • 7 replies
  • 1 has this problem
  • 61 views
  • Last reply by cor-el

more options

hi, i want to ask if it is possible to show the Url (Location) in the Bookmarks Toolbar instead of the Name. When you right-click an entry -> properties it shows those two fields. I want the Location to be shown in the menu. Many Thanks

Chosen solution

Not that I know of.
Not much bookmarks will fit on the Bookmarks Toolbar unless you would place them in folders.

A possibility is to export the Bookmarks to an HTML file change the bookmark names to the location.

You can open the HTML in a Firefox tab via Firefox > New Tab > Open File or Firefox > Open File and run the below posted JavaScript bookmarklet.
You can import that file and replace the bookmarks that you want to change with the modified bookmarks.


Firefox 6 doesn't allow to run a JavaScript bookmarklet via the location bar, so you need to create a bookmark with the location set to this code and then run that bookmark with the page with the HTML file on display.

javascript:(function(){var e=document.links,E,T,i,j=0;for(i=0;E=e[i];i++){E.innerHTML=E.href;j++}alert(j+" links changed");})();
Read this answer in context 👍 0

All Replies (7)

more options

You can copy the location field with the URL to the name field if you want to see the location.

If you want to keep the name then copy the name to the description area in the Bookmarks Manager (Library)

  • Bookmarks > Show All Bookmarks

Modified by cor-el

more options

i know i can write it in the name field manually. is there no automated way, so that also newly added bookmarks change?

more options

Chosen Solution

Not that I know of.
Not much bookmarks will fit on the Bookmarks Toolbar unless you would place them in folders.

A possibility is to export the Bookmarks to an HTML file change the bookmark names to the location.

You can open the HTML in a Firefox tab via Firefox > New Tab > Open File or Firefox > Open File and run the below posted JavaScript bookmarklet.
You can import that file and replace the bookmarks that you want to change with the modified bookmarks.


Firefox 6 doesn't allow to run a JavaScript bookmarklet via the location bar, so you need to create a bookmark with the location set to this code and then run that bookmark with the page with the HTML file on display.

javascript:(function(){var e=document.links,E,T,i,j=0;for(i=0;E=e[i];i++){E.innerHTML=E.href;j++}alert(j+" links changed");})();
more options

thank you that bookmarklet worked pretty good. didn't know you could do such things ;)

more options

You're welcome.

With some practice and imagination you can do almost anything with a JavaScript bookmarklet in Firefox that you can't do in a normal text editor although bug 656433 now makes it more effort to run such code.

more options

i made a version that removes "http://", "www." if present and the "/" at the end. (probalby not the most elegant way but it works)

javascript:(function(){var%20e=document.links,E,T,i,j=0;for(i=0;E=e[i];i++){var%20temp=E.href;var%20temp2;if(temp.indexOf("http://")!=-1){temp=temp.substring(7);j++}if(temp.indexOf("www.")!=-1){temp=temp.substring(4);j++}if(temp.indexOf("/")!=-1){temp2=temp.split("/");temp=temp2[0];}E.innerHTML=temp;j++}alert(j+%22%20links%20changed%22);})();

more options

That is a lot easier to do with a regular expression.

javascript:(function(){var e=document.links,E,T,i,j=k=0;for(i=0;E=e[i];i++){if(/^javascript:/.test(E.href)){E.innerHTML="[js:] " +E.innerHTML;j++;}else if(/^data:/.test(E.href)){E.innerHTML="[data:] " +E.innerHTML;j++}else{E.innerHTML=E.href.replace(/^(?:https?|ftps?):[/][/](.*)/,"$1").replace(/[/]?$/,"");}k++}alert(j+"(js/data)  "+k+"(http/ftp) links changed");})();

Modified by cor-el