X
Tocca qui per la versione per piattaforma mobile del sito.

Forum di supporto

Questa discussione è archiviata. Inserire una nuova richiesta se occorre aiuto.

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.

Inserita

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

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

Soluzione scelta

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.

Leggere questa risposta nel contesto 0

Dettagli aggiuntivi sul sistema

Plugin installati

  • Adobe PDF Plug-In For Firefox and Netscape 11.0.10
  • Creative Cloud Desktop Plugin.v_2_0_0_0
  • The Hulu Desktop Plugin allows Hulu.com to integrate with the Hulu Desktop application.
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • Office Authorization plug-in for NPAPI browsers
  • Shockwave Flash 15.0 r0
  • 5.1.30514.0
  • iTunes Detector Plug-in

Applicazione

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0

Ulteriori informazioni

guigs 1072 soluzioni 11697 risposte

Are you looking for an add on that might do this?: Page Title

Are you looking for an add on that might do this?: [https://addons.mozilla.org/en-US/firefox/addon/page-title/?src=search Page Title]

Utente che ha posto la domanda

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

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
jscher2000
  • Top 10 Contributor
8770 soluzioni 71712 risposte

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.

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: * https://addons.mozilla.org/firefox/addon/greasemonkey/ You may have to allow Firefox to restart before it is activated. (2) Install the script from this page: * https://openuserjs.org/scripts/jscher2000/Set_Missing_Title_to_Page_Name (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.''

Utente che ha posto la domanda

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

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
jscher2000
  • Top 10 Contributor
8770 soluzioni 71712 risposte

Soluzione scelta

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.

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.

Utente che ha posto la domanda

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!

Simply great.

Ludwig

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! Simply great. Ludwig

Utente che ha posto la domanda

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?

Thank you

Ludwig

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? Thank you Ludwig
jscher2000
  • Top 10 Contributor
8770 soluzioni 71712 risposte

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.

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.

Utente che ha posto la domanda

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.

Thanks again

Ludwig

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. Thanks again Ludwig
jscher2000
  • Top 10 Contributor
8770 soluzioni 71712 risposte

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)?

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)?

Utente che ha posto la domanda

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.

Ludwig

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. Ludwig