P
P
pazzia2016-03-02 17:59:11
Browsers
pazzia, 2016-03-02 17:59:11

How to save open browser tabs?

Hello!
Is there such an extension to chrome / fox that would allow saving ALL currently open tabs at once?
*.mht is not suitable. It is necessary that it would be saved in html. It would be ideal to save in general in one file.
*.js and *.css are unnecessary, but they don't get in the way.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
Y
Yuri, 2016-03-08
@riky

can i suggest a php script for this

<?php
$links = 'http://ya.ru/1
http://ya.ru/2
http://ya.ru/3
// ... все ссылки - одна ссылка в строке
';
foreach(explode("\n", $links) as $link) {
  $html = file_get_contents($link);
  file_put_contents('result.html', $html, FILE_APPEND);
}

after execution, the content of all pages will be in one file. not very valid, but mine is not very important to you. you can also add so that only the contents of body are saved in the files.
or put the links in a text file, also one link per line
and at the beginning replace their list with
$links = file_get_contents('links.txt');

P
Pavel Mokrinsky, 2016-03-11
@pavelmokrinsky

Try Mozilla Archive Format , "Save all tabs to archive as..." function - all tabs will be saved in *.mht, *.mhtml format in the specified folder.

D
Denis, 2014-12-05
@cjbars

somewhere extra '<'

Y
yarofon, 2014-12-05
@yarofon

Well, there you go

<?php
//====inc====
<?

Isn't it?

A
Alexander, 2014-12-05
Madzhugin @Suntechnic

yarofon has already answered what the problem is. And the line is probably some kind of virus. Need to decode. it's not difficult there.

D
Dmitry Mironov, 2014-12-05
@MironovDV

Perhaps the problem is due to short_tag https://php.net/manual/en/ini.core.php#ini.short-o... On some hosting they are enabled, but on some they are not. Therefore, there was no error due to <? (where they are disabled).
What between inc I would remove, if it's not yours of course.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question