Saving Porteus forum page for offline reading

Technical issues/questions of an intermediate or advanced nature.
User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Saving Porteus forum page for offline reading

Post#1 by Rava » 12 Nov 2021, 05:50

Currently working on solving my x86-64 wireless issue with Porteus 5.0rc3.
E.g. No Wifi connection (Post by Blaze #78165) or in this thread and especially [HOWTO] Broadcom wifi under Porteus this one.
___________________________________

I downloaded drivers as instructed by blaze in older threats (tthanks to the one pointing it out to me) and also saved a forum post for offline reading on the target Porteus system because, well, for now I do not have any internet connection.

Now the issue: the system to go online with is i586 Porteus 4.0 with Palemoon 29.4.2-1.gtk2_i386 (see here palemoon_29.4.2-1.gtk2_i386 for Porteus 4.0 for details on that browser module)

I saved the forum page as "save page as / [Web site, complete]" okay, set my browser to offline reading, opened a new tab to see the results.
This is what the page looks like when viewed in the online browser
Image

and this is what the saved page looks like.
Image
I know the issue is because either some css files (or maybe even js files that handle css) either got saved wrong, or not got saved at all. I know this is no issue of forum.porteus.org - it is how Palemoon and Firefox handle saving webpages. :(


I try to solve the issue and report back what needs to be changed in the locally saved .html file, and probably which css (or maybe even js) files need to be saved as well. The later is to be put into the folder that got created when the page was "save page as / [Web site, complete]" processed.

If someone tried saving HOWTO or TUTORIAL pages from forum.porteus.org locally for offline-use on the other PC with network issues in the past, maybe that person already knows what to be changed in the html and what needs to be saved in the *_files/" folder manually already. Much appreciated for some tips. :Rose:
______________________________

As much as I prefer Palemoon over any of the Chrome variants on a day to day browsing matter, the idea of Chrome/Chromium/whatever to save a complete web page in a kind of container format that holds all included css and images inline is kind of nice and would not run into such issues (at least all pages I save like that worked just fine when opening up again, be it on an Android Smartphone Chrome or on a Porteus Linux one Chrome.)

By default, Firefox or Palemoon cannot handle such container format saved web pages, though. :( :crazy:

Added in 10 minutes 42 seconds:
Most probably it is one or all three of these as found in the pages source code

Code: Select all

<link href="./assets/css/font-awesome.min.css?assets_version=329" rel="stylesheet">
<link href="./styles/prosilver/theme/stylesheet.css?assets_version=329" rel="stylesheet">
<link href="./styles/prosilver/theme/en/stylesheet.css?assets_version=329" rel="stylesheet">
The path of ./WHATEVER as quoted above not addresses a local file hierarchy but a web URL hierarchy, aka somewhere in the https://forum.porteus.org path.

Added in 30 minutes 34 seconds:
For now I saved many previously non-existing css files into the locally correct *_files/" folder … and the design looks a bit better, but especially the top of the pages is still messed up. *le sigh* I would hope Palemoon and Firefox would adopt the Chrome* solution of the container format for locally saved web pages. They can keep their own way, juzst add that one. Not all solutions some Göøgle program came up with is a bad solution. E.g. webp being superior compared to jpeg. (Webp was originally coded by other folks and göøgle just bought the company and all its rights and released webp as a free open standard. And in this case all other main browsers also support webp - even when your system would not support webp via its image viewer, you still can view webp images via your browser)
Cheers!
Yours Rava

User avatar
M. Eerie
Moderator
Moderator
Posts: 619
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

Saving Porteus forum page for offline reading

Post#2 by M. Eerie » 12 Nov 2021, 08:00

You might be looking for this:
https://addons.mozilla.org/es/firefox/a ... quility-1/

and this:
https://addons.mozilla.org/es/firefox/a ... ngle-file/

Have been using both of them (in Firefox) for a while and I'm very pleased

I don't know if they are available for Palemoon, though.
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Saving Porteus forum page for offline reading

Post#3 by Rava » 12 Nov 2021, 12:04

M. Eerie wrote:
12 Nov 2021, 08:00
You might be looking for this:
https://addons.mozilla.org/es/firefox/a ... quility-1/

and this:
https://addons.mozilla.org/es/firefox/a ... ngle-file/

Have been using both of them (in Firefox) for a while and I'm very pleased

I don't know if they are available for Palemoon, though.
transquility sounds really nice, not available for PM, though.
Lets PM speak for itself.
Image
(linked as URL as well, click it to full size view)
"exceptional extensibility" … I presume they really mean it unironically. Compared to what Firefox offers, it is … *cough*notwanttosaysomethingrudehere* less exceptional. :D

Added in 5 minutes 50 seconds:
A PM Addon search for "single-file" gave these results. I am quite sure none is what you suggested M. Eerie:
Image
search for "transq" resulted in nix, nada, null like I already wrote above.
Image
Cheers!
Yours Rava

User avatar
M. Eerie
Moderator
Moderator
Posts: 619
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

Saving Porteus forum page for offline reading

Post#4 by M. Eerie » 12 Nov 2021, 13:47

That's the way the cookie crumbles, they say... :unknown:

Follow the provided links to the addons page and see the screenshots.

Maybe you'll find related ones.
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Saving Porteus forum page for offline reading

Post#5 by Rava » 12 Nov 2021, 18:16

M. Eerie wrote:
12 Nov 2021, 13:47
Maybe you'll find related ones.
As you can see by the colour I already did for "Download Management" ones.

Added in 11 minutes 4 seconds:
Seems I overlooked the very last one in "Download Management"
https://addons.palemoon.org/addon/scrapbook-x/
For now I installed it. It even creates its own pulldown menu entry in the main menu. :shock:

Added in 8 minutes 40 seconds:
I was not sure if scrapbook-x can be used to save pages for other machines to read.

Seems it should be able to
https://github.com/danny0838/firefox-sc ... i/Features says
Besides backing up the entire ScrapBook directory, the [Import / Export] wizard can be used to backup individual data items locally, or to import from a local location to ScrapBook, which can be used for backup or exchanging.
Cheers!
Yours Rava

donald
Full of knowledge
Full of knowledge
Posts: 2063
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Saving Porteus forum page for offline reading

Post#6 by donald » 12 Nov 2021, 22:50

Maybe you can get this one to work:
https://github.com/Y2Z/monolith

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Saving Porteus forum page for offline reading

Post#7 by Rava » 13 Nov 2021, 03:18

see also: monolith-2.6.1 for Port4.0 i586 in i486 xzm module requests
donald wrote:
12 Nov 2021, 22:50
Maybe you can get this one to work:
https://github.com/Y2Z/monolith
Sounds intriguing indeed Image

https://github.com/Y2Z/monolith#readme
Unlike the conventional “Save page as”, monolith not only saves the target document, it embeds CSS, image, and JavaScript assets all at once, producing a single HTML5 document that is a joy to store and share.

If compared to saving websites with wget -mpk, this tool embeds all assets as data URLs and therefore lets browsers render the saved page exactly the way it was on the Internet, even when no network connection is available.
Image

Thanks for the find. :good:

Added in 6 minutes 52 seconds:
at least the current v2.6.1 is only available as monolith-gnu-linux-x86_64 or as source monolith-2.6.1.tar.gz
donald wrote:
12 Nov 2021, 22:50
Maybe you can get this one to work:
I suspected something like this by the phrasing you choose.

Added in 13 minutes 49 seconds:

Code: Select all

root@porteus:/3/Porteus_modules/guest/4.0i586/monolith/monolith-2.6.1# make
make: cargo: Command not found
make: *** [Makefile:7: build] Error 127
What the fue is cargo?
monolith claims when compiling its only dependency being libssl-dev

from monolith-2.6.1/README.md

Code: Select all

Dependency: `libssl-dev`

    $ git clone https://github.com/Y2Z/monolith.git
    $ cd monolith
    $ make install 

Code: Select all

root@porteus:/3/Porteus_modules/guest/4.0i586/monolith# git clone https://github.com/Y2Z/monolith.git
Cloning into 'monolith'...
remote: Enumerating objects: 2406, done.
remote: Counting objects: 100% (456/456), done.
remote: Compressing objects: 100% (306/306), done.
remote: Total 2406 (delta 279), reused 274 (delta 142), pack-reused 1950
Receiving objects: 100% (2406/2406), 3.93 MiB | 1.02 MiB/s, done.
Resolving deltas: 100% (1508/1508), done.
root@porteus:/3/Porteus_modules/guest/4.0i586/monolith# cd monolith
root@porteus:/3/Porteus_modules/guest/4.0i586/monolith/monolith# make 
make: cargo: Command not found
make: *** [Makefile:7: build] Error 127
arggg too busy right now to fix that.

My system being Port4.0 i586 with activated 05-devel-i586-Porteus4.0.xzm

Added in 25 minutes 21 seconds:
tried https://packages.slackware.com/
searched for "cargo" in "Slackware 14.2"
Nothing found.
https://pkgs.org/download/cargo
only finds cargo-0.20.0-x86_64-1_slonly.txz

Other distros seem to only have x86_64 or aarch64 .
No cargo for i586 it seems.
:shock:

Added in 3 minutes 4 seconds:
donald…
donald wrote:
12 Nov 2021, 22:50
Maybe you can get this one to work:
seems me unable to get it to work.
Cheers!
Yours Rava

donald
Full of knowledge
Full of knowledge
Posts: 2063
Joined: 17 Jun 2013, 13:17
Distribution: Porteus 3.2.2 XFCE 32bit
Location: Germany

Saving Porteus forum page for offline reading

Post#8 by donald » 13 Nov 2021, 14:58

Rava wrote:
13 Nov 2021, 04:07
donald wrote:
12 Nov 2021, 22:50
Maybe you can get this one to work:
I suspected something like this by the phrasing you choose.
Yep.. :D

However, take a look at:
monolith-2.6.1 for Port4.0 i586 (Post by donald #85528)

Rapha_
Shogun
Shogun
Posts: 238
Joined: 12 Jun 2021, 21:59
Distribution: Xfce 4.12 - 5.rc3 - x86_64
Location: France

Saving Porteus forum page for offline reading

Post#9 by Rapha_ » 13 Nov 2021, 20:17

Convert Web page to PDF :
https://www.web2pdfconvert.com/

it works !

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Saving Porteus forum page for offline reading

Post#10 by Rava » 13 Nov 2021, 21:11

Rapha_ wrote:
13 Nov 2021, 20:17
Convert Web page to PDF :
https://www.web2pdfconvert.com/

it works !
Indeed just tested with monolith-2.6.1 for Port4.0 i586
bummer I cannot use my Advanced Night Mode colours when web2pdfconvert.com save a webpage. :D

Thanks for the tip, bookmarked. :)
Cheers!
Yours Rava

Post Reply