jscher2000 / Content-Type-Fixer-extension

Firefox extension to override dumb Content-Type headers with correct values
Mozilla Public License 2.0
23 stars 2 forks source link

No buttons! #1

Closed iansoady closed 4 years ago

iansoady commented 5 years ago

Hi. I need to use this to automatically download text files (extension .txt) rather than displaying them in the browser. But I don't see the buttons mentioned to add this extension. Firefox 68.02 Windows 10 Pro.

Any ideas? I attach a screenshot. log

jscher2000 commented 5 years ago

Hi iansoady, this extension keys off of the file extension.

In the above example, it's a default document for a directory on the webserver (for example, index.html or index.php) but since the file extension does not appear on the URL, the extension can't do anything with it so there are no action buttons.

In order to create a rule for .txt, you need to first retrieve a .txt file so it appears in the log.

iansoady commented 5 years ago

Many thanks Jefferson.

I’ve tried returning a .txt file via a hyperlink in another document (http://www.iansoady.org.uk/txt_test/index.html) but this just displays in the browser and nothing appears in the log file…….

Best wishes

Ian

From: Jefferson Scher notifications@github.com Sent: 26 August 2019 17:54 To: jscher2000/Content-Type-Fixer-extension Content-Type-Fixer-extension@noreply.github.com Cc: iansoady ian@iansoady.org.uk; Author author@noreply.github.com Subject: Re: [jscher2000/Content-Type-Fixer-extension] No buttons! (#1)

Hi iansoady, this extension keys off of the file extension.

In the above example, it's a default document for a directory on the webserver (for example, index.html or index.php) but since the file extension does not appear on the URL, the extension can't do anything with it so there are no action buttons.

In order to create a rule for .txt, you need to first retrieve a .txt file so it appears in the log.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jscher2000/Content-Type-Fixer-extension/issues/1?email_source=notifications&email_token=AITO7KR65D7TESFMAQN5OQDQGQDDPA5CNFSM4IPOK6T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5E6YKI#issuecomment-524938281 , or mute the thread https://github.com/notifications/unsubscribe-auth/AITO7KT46IBEDY6BQZFEJGLQGQDDPANCNFSM4IPOK6TQ . https://github.com/notifications/beacon/AITO7KTFK6KN6CSECPAMVRTQGQDDPA5CNFSM4IPOK6T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5E6YKI.gif

jscher2000 commented 5 years ago

Hi Ian, the .txt file appears in the log for me. If you already had the log open, make sure to use the Refresh Log button or close and re-open the log page. The newest entries should appear at the top.

iansoady commented 5 years ago

Many thanks Jefferson. For some reason when I try it again it seems to work! Probably some obscure setting somewhere.

I think I’m good to go now but many many thanks for sorting me out.

Best wishes

Ian

From: Jefferson Scher notifications@github.com Sent: 28 August 2019 15:51 To: jscher2000/Content-Type-Fixer-extension Content-Type-Fixer-extension@noreply.github.com Cc: iansoady ian@iansoady.org.uk; Author author@noreply.github.com Subject: Re: [jscher2000/Content-Type-Fixer-extension] No buttons! (#1)

Hi Ian, the .txt file appears in the log for me. If you already had the log open, make sure to use the Refresh Log button or close and re-open the log page. The newest entries should appear at the top.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jscher2000/Content-Type-Fixer-extension/issues/1?email_source=notifications&email_token=AITO7KVUPK5NWSOKICOTLULQG2GFLA5CNFSM4IPOK6T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5LMQOA#issuecomment-525781048 , or mute the thread https://github.com/notifications/unsubscribe-auth/AITO7KRCS7UDGPVMUHTFPRDQG2GFLANCNFSM4IPOK6TQ . https://github.com/notifications/beacon/AITO7KTXU3OQCROXW65P6IDQG2GFLA5CNFSM4IPOK6T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5LMQOA.gif