Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Learn More

show url in bookmarks toolbar instead of name

  • 7 odpowiedzi
  • 1 osoba ma ten problem
  • 23 wyświetlenia
  • Ostatnia odpowiedź od 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

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

Wybrane rozwiązanie

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");})();
Przeczytaj tę odpowiedź w całym kontekście 👍 0

Wszystkie odpowiedzi (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

Zmodyfikowany przez cor-el w dniu

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

Wybrane rozwiązanie

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");})();

Zmodyfikowany przez cor-el w dniu