Giter VIP home page Giter VIP logo

saveasmht's Introduction

SaveAsMHT

Chrome extension saving web page as single .mht file.

Available to install at Chrome Web Store

License: MIT

NPM scripts:

  • dev - compile Typescript sources in watch mode
  • start - launch Chrome with unpacked extension
  • zip - build sources and zip extension package

saveasmht's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

saveasmht's Issues

Port to Firefox

Since Firefox Quantum released, there is no extension can do this, however it’s possible to create one via porting your extension to Firefox. Some related documentations can be found at MDN Web Docs.

BUG: Save to TXT instead of MHT

Worked well just before - saved to MHT, but now saves to TXT instead of MHT.
If I manually change filename from TXT to MHT a get right result, but I need to change name manually each time I use extension.

GUID instead of Website Title in Filename

Using v0.1.1. While saving a web page, a GUID is appearing in the filename instead of the webpage title, as shown in the attached screenshot.

Chrome Version: 78.0.3904.97 (Official Build) (64-bit)

image

Open Save Dialog in Previous Saved Folder

Everytime I use this extension to save a webpage, it always opens the Download folder (Windows 10). Could we set it automatically opens the folder of previous saved file by Chrome? Thank you.

missing context menu with old chrome versions

I am using old version of chrome. an entry in the context menu is not seen. developer mode shows these console errors:

Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode 
promisify.js:20

Uncaught SyntaxError: Unexpected token function
background.js:26

I guess you don't support this version - is there a way I can change the code and fix it so it works on Chrome 48.x assuming it is just context menu insertion issue?

Add feature requests here.

Please add any feature requests you like to see in new version here.
Also please provide your typical usage scenario so I could think about it.

E.g. do we need to keep the list of saved items? Do we need batch list processing daily/weekly?

Local pages are not saved

The extension works fine when saving a remote page.

However, when the page is local (file:///...), it won't work. Specifically, nothing happens, either if I invoke via key binding, or via context menu (Save as .mnt...).

Browser: Chromium 78.0.3904.70, on Ubuntu 18.04.

Tabs adds itself 10 Times instead of 1 time

Tabs adds itself 10 Times instead of 1 time while adding a Tab to an already saved and currently open session. Once closed and reopened the saved session, 100 Tabs are retrieved for 10 Tabs, opening leading to Chrome crash with extremely high CPU usage. How one can backup saved prior to reinstall in an attempt to fix the issue. Thanks.

Save as MHT is offering only Save as TXT file (?!)

I added Save as MHT to a Chrome on a brand new laptop (HP Spectre x360 (2019).
Yet, it only has an option to Save as TXT. The folder browser SAVE AS dialog does not allow me to change the file type to MHT.

I tried removing/adding Save as MHT and I have even RE-installed Chrome. Even more puzzling, I tried it on another new PC (HP Pavilion) with the same results. Is the problem on your end, or do I have an incompatible security setting -- or something wrong with my Norton or MalwareBytes apps?

For now, I have resorted to opening Internet Explorer which has this feature built-in. But that browser is no longer supported by Microsoft. They have replaced it with Edge.

Ellery-D

Поддержка кирилицы

Здравствуйте уважаемый разработчик, хотелось бы поддержку кирилицы некоторых параметров файла .mht:
From: <Saved by Blink> Subject: 15???????-????????? ????????????? ??????? Date: Mon, 26 Mar 2017 04:11:50 -0000 MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----=_NextPart_000_0334_1AB6F501.E6BB589A"

Original Subject: 15 онлайн-библиотек с бесплатными книгами

А так же хотелось бы изменить расширение с заглавных букв .MHT на строчные .mht.
Заранее спасибо.

Configurable hotkey

Thanks for this essential extension! - It spared me running Firefox in parallel just to be able to save web articles.
Could we have the option to re-assign or disable the default hotkey [Alt+S], please? - it conflicts e.g. with the online Outlook, which I'm using a lot...

Currently working with Firefox, official support planned?

Hi,

great WebExtension ;) With "Chrome Store Foxified", the extension is directly working with Firefox, too. Are there any plans to submit this to Firefox AMO, too?

Guess the required customization would be minimal, or can be directly copied from the created files of "Chrome Store Foxified". This gets pretty important, because the old MAFF & UNMHT plugins will no longer work with the next firefox version and won't be reprogrammed as WebExtension.

This leaves 200.000 active MHT users without any possibility to display or save MHT files. It would be fantastic if SaveAsMHT could be submitted to AMO, too. There's even a guide for adjusting a chrome extension:
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Porting_a_Google_Chrome_extension

Greetz

Add info/reload when saved .mht page opened again.

Feature request:

Reloading with Firefox (with MAFF or UNMHT), I can visualize the
original URL and the date the page was saved, which is sometimes useful.
Furthermore, by clicking on this URL, I can reload a fresh version,
possibly updated or modified, of the saved page.

Link to the original

Hey. I like this extension. But I lack one function. I need to have a link to the original added at the bottom or at the top of the page.

Improve the default filename

The extension uses site's title as a filename.
I want to suggest a much better template for the filename that will improve the file organisation.

TL'DR

The template should be follow:
[{hostname-without-www}] {YYYY}.{MM}.{DD}—{title}

The example results with this name patter:
"[developer.mozilla.org] 2021.01.21—Cross-Origin-Opener-Policy - HTTP - MDN.mht"
"[en.wikipedia.org] 2021.01.21—High Efficiency Image File Format - Wikipedia.mht"
"[javascript.info] 2021.01.21—Generators.mht"
"[reddit.com] 2021.09.28—WD Blue (New 2018+) Line Models Explained - SMR - Greens (v1) - DataHoarder.mht"


I have already written about it for an other similar extension here and here, so just copy paste the text here:


For better file navigation (to easily find the desired file), files should be organized.
This can be achieved if, when sorting by name (alphabetically), the files are both grouped and sorted. To do this, you need the correct (special) file name.

If the file name contains only the title, the files will be shuffled randomly, mixed with the other files (not mhtml),

Files will be organized if they are grouped by hostname and sorted by date.
This can be achieved if the file name consists of the following parts: first the hostname, then the date, and at the end – the title.

And in order for mhtml files not to be shuffled with other files, you should use the "prefix". The same first character. Which should preferably be neither a letter nor a number, so as not to be among the other files, and get a higher priority when sorting.


You can just add, for example, # first, but I find it better to tag the site name with [].
[hostname]

Next is the date. The only correct format: yyyy first, then mm, then dd. (The other types may looks misleading: "10.12 is it mm.dd or dd.mm?", or they are not suited for alphabet sorting)
There are several options.

  • Without separator: 20210122 - too hard to understand.
  • And with the separator: 2021-01-22 or 2021.01.22.
    The line with dots will be shorter, you can select the entire date with a double click, and IMHO it looks nicer.

And then the title. You can separate it with just space , or you can use "—" (Alt + 0151).

  • Like space, it is only one character (Windows uses UTF-16 for filenames).
  • It is ideal to visual "split" the text into parts in a string, because it takes up a lot of visual space: to separate the meta information from the title.
  • It is not selected along with the text by double-clicking on the text.
  • Uses much less frequently than spaces or dashes -.

executable version, would it be possible?

would it be possible to have a version in executable format (eg "SaveAsMht.exe") commandable from the command line?
sending commands like , <destination / folder>, <name.mht>?
[1 page for time , no need multi table ]
or a small executable that takes these inputs, you pass them to the app to get the saved file?

es :
cmd / "SaveAsMht.exe" + , <destination / folder>, <name.mht>, / enter
case A) the programm do the work
case B) -----> input go to app "SaveAsMht" in chrome and the app do the work.

result : in the <destination / folder> we have the <name.mht> of the

l'estensione non funziona

L'estensione a smesso di funzionare su tutti i siti improvvisamente senza un motivo apparente provato a rimuoverla e reinstallare ma estensione non da piu' segni di vita

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.