Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.
I have many firefox files stored on my computer and I want that the NAME of the files and not the PATH is displayed as TAB TITLE.
I have created many html files with the firefox function "save as Web Page, HTML only". 1. When I call up these files, firefox makes the PATH the tab title, but I would like to have the file name as tab title by default. 2. Same if I bookmark these files that the file name is displayed as tab title by default. I use tab utilities and am well aware of rename tab - I would like to have the file name as tab title by default - renaming thousands of html files is takes a lot of time. Thanks for your help!
Best regards Ludwig Müller
Hmm, forgot to test a file name with spaces. I posted an update. Firefox might get it automatically, but to speed it up you can click the Install button again.Funda le mpendulo ngokuhambisana nalesi sihloko 👍 0
All Replies (11)
Thank you for your reply. This is not what I'm looking for. In the meantime I have learned a little bit: Saving a Word document as web page requires to specify a name for the web page in the MS Word "Change Title" bar. If nothing is specified there, Firefox uses the path on my computer as tab title "c:.....". Now I understand what I did wrong with my Word documents I have converted to Firefox HTML. BUT: Is there a way to tell FF to take the file name as tab title and not the path on my computer even I did not specify "Change Title" in MS Word when I converted the files (unfortunately several hundreds)?
Thank you for your help
How do you feel about an add-on solution? There is an extension named Greasemonkey that lets you modify web pages, using snippets of code called user scripts. I posted a script that I think will work for you, but there are several steps involved.
(1) Install the Greasemonkey extension from the Add-ons site:
You may have to allow Firefox to restart before it is activated.
(2) Install the script from this page:
(3) To make it work on local URLs (file://) in addition to web URLs, you need to relax one of Greasemonkey's security restrictions. Here's how:
(A) In a new tab, type or paste about:config in the address bar and press Enter. Click the button promising to be careful.
(B) In the search box above the list, type or paste greas and pause while the list is filtered
(C) Double-click the extensions.greasemonkey.fileIsGreaseable preference to switch its value from false to true
With this setting, you should be especially cautious when installing scripts that could read/process files on your computer to make sure they aren't sending the data anywhere.
Thank you very much for your smart advice - I have done as advised and we are almost there: The tab title displays the file name, but FF inserts the %20 into the file name. "Hello%20new%20user.htm" You see the little problem: FF inserts the %20 signs into the file name. The file name is "Hello new user" from the Grease Monkey greeting page, with I copied to Word and saved as web page. Otherwise your add-on works perfect - please let us get rid of the %20 sign. Thank you very much Ludwig
Hmm, forgot to test a file name with spaces. I posted an update. Firefox might get it automatically, but to speed it up you can click the Install button again.
Jefferson, YOU ARE WONDERFUL!!!! You understand what my pain is and you provide me with a PERFECT solution. Thank you so much - this makes my day!
Hi Jefferson, your solution works works fine with one exception: If I open several FF files at once, only the last file has the clear title, the others have the path name as tab title - if I then restart FF all tab titles are correct. Is there a way to open several files at once and have a clear title?
Hi Ludwig, how are you opening several files at once?
For any given tab, if you reload (Ctrl+r), Greasemonkey should re-process the page and run the script after it loads.
But I'm puzzled why it isn't working consistently the first time.
Thank you for your reply. Let me explain: I'm a translator, English to German, mainly for law firms. I have a few or many translations for specific customers or themes, like the international accounting standards, stored as FF files (English-German). To establish my work environment for a customer, I open quite a few FF files - it can easily be more than a hundred - in one go. Therefore opening 50 files at once is not unusual for me. Btw, with the FF add-on HUGO, for which I was the inspiring co-developer for the author Allasso Travesser, who did a great job turning my ideas into a top solution, I can search hundreds of Tabs easily with one query. Now, what I have observed, your script adds the clean title only to the last file, the others slip through. My work around for now is to restart FF and all files are properly titled.
To ask a more specific question, do you open the files by selecting them in Windows Explorer (e.g., all files in a folder) and pressing Enter to launch them in the default browser simultaneously? Or are you using a third party application to launch the files in Firefox initially? Or do you use Firefox's Open dialog? Or do you open them all at once from a folder of bookmarks (e.g., after using Bookmark All Tabs)?
Actually, none of the above. My preferred way of opening the files is from a bookmark which accesses my file directory, it looks like: FF bookmark i.e. tab: "Index of file:///C:/Users/.......". This way I can access all of my folders and files from FF, open the folder, mark the files I want to open and go. The other way is with MS functionality: mark the files in a folder and click open files.
I hope I could explain it good enough.