View Single Post
Old 12-07-2022, 07:26 PM   #2
elinkser
Groupie
elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.elinkser has survived committing the World's Second Greatest Blunder.
 
Posts: 185
Karma: 146236
Join Date: Oct 2022
Device: Kobo Clara HD
***TO DOWNLOAD "COMPLETE" WEB PAGE (Firefox-style)***
Follow instructions at this link to add uri passing to our cross-compiled wget111s command from above, except name the entry "wgets", use the command "wget111s --no-check-certificate --show-progress -nd -E -k -p -Q20M %c", and assign keybinding "Ctrl-W".
Press ENTER key and save by tabbing to the "SAVE" button and pressing ENTER, then ESC to get back to current page.
Now, if you press g, then "g" for google, followed by ENTER, elinks will take you to the google search page.
Enter "Ctl-w" and complete web page is saved to current directory.
To verify, press g, then "." for current local directory, followed by ENTER, then maybe "Ctrl-r" to refresh cache, and a few down-arrow presses to scroll, and voila, your complete web page with images!
Now if you want to browse this page in the luxury of the KOReader environment, turn off networking to be sure you are looking at locally saved files, and browse to your download directory in KOReader to see the "complete" web page with images displayed.
*Note-this option was done while running elinks111s as root, so that the change would be written to the elinks.conf file.


*LONG INSTRUCTIONS FROM LINK:
Spoiler:

Start elinks, and go to the "Options manager" by pressing o or through the menu (press Escape) in Setup > Options manager.
Select the category "Document" and press + to show all the options.
At the very end of the the list (just before the next section, ECMAScript) there is an subsection called "URI passing".
Navigate to that section and press a to add an entry, and give it an appropriate name (I called mine "wgets").
Select the newly created entry and press e to edit it.
Add the command "wget111s --no-check- certificate --show-progress -nd -E -k -p -Q20M %c" into the "Value" field as in the above picture, press Enter, and save the new settings.
Now you need to assign a keybinding to this script, so that you can tell Elinks to launch it when you want to download the complete current page.
Close the Options manager if you haven't done so already (press c) and open the "Keybindings manager" (press k or go to "Setup > Keybindings manager" in the menu).
Open the first section called "Main mapping" with the + key.
To assign a keybinding to download the current page, select the "Pass URI of current tab to external command" and press a to add a keybinding, and enter the keybinding you want to use in the "Keystroke" field.
I used "Ctl-W" for the current page or tab.
Once all the above is done, you're all set to download complete web pages using wget.
Simply press "Ctl-W" to download the the current page.

Last edited by elinkser; 01-16-2023 at 12:06 PM. Reason: remove link dependency
elinkser is offline   Reply With Quote