Literotica Downloader

Single page HTML download for Literotica with improved readability

< Feedback on Literotica Downloader

Review: Good - script works

§
Posted: 2024-04-25

i the update just released for this script but I still dont see any buttons to download stories on the author's pages. What could I be doing wrong?

§
Posted: 2024-04-25

I don't know.

Could you give me your navigator, the script manager (tampermonkey, greasemonkey or other), the page that have the problem ?

You could also provide me the output of the console (F12 on most navigator)

I have put the download button on works/stories page of the author on the top right of the card, next to their bookmark.

It's load 0.25 second after the page.

§
Posted: 2024-04-25

Yes, there is no download button to see anywhere. I'm using TM / Firefox / Brave - latest versions in Windows x64. No button next to bookmark to see or readable with element picker. The script does trigger so TM shows value 1 but that's all. In the console is nothing conspicuous to see. Maybe your download button is not working for that new JS webpage style. When you go to the author site and click then on the Works button your script does not trigger and you have to reload the webpage. I hope you can fix that problem. Otherwise you could add another download method / command to download the story I have open in browser tab. Add another menu entry under your script we can choose and then execute the download. Just in case the download button fails to show up like it is in this script version.

§
Posted: 2024-04-25

I had to remove the wrapping document.addEventListener("DOMContentLoaded" that starts on line 85 to get it to execute on Firefox. I think perhaps Tampermonkey doesn't invoke the userscript until after DOMContentLoaded has already occurred?

§
Posted: 2024-04-25

I had to remove the wrapping document.addEventListener("DOMContentLoaded" that starts on line 85 to get it to execute on Firefox. I think perhaps Tampermonkey doesn't invoke the userscript until after DOMContentLoaded has already occurred?

Does nothing for me when I disable // that line (87 in my case). No button, no download.

§
Posted: 2024-04-26
Edited: 2024-04-26

I had to remove the wrapping document.addEventListener("DOMContentLoaded" that starts on line 85 to get it to execute on Firefox. I think perhaps Tampermonkey doesn't invoke the userscript until after DOMContentLoaded has already occurred?

Does nothing for me when I disable // that line (87 in my case). No button, no download.

Hargrimm said they removed they entire wrapping starting with line 85/87. Not just the first line. However I just tested their solution, but it didn't work on my end. No download option anywhere in the author page.

§
Posted: 2024-04-26
Edited: 2024-04-26

i'm using chrome 124 and tampermonkey. what would you like me to copy for you from my console?

§
Posted: 2024-04-26

FWIW I'm using Firefox nightly on mobile Android, with tampermonkey script manager added on. Version 3.0 still works on the "category" sections (for instance, if you're reading a "romance" story, and tap the link that says "romance" above the story title...the page you're taken to still has the little download arrows). Unfortunately version 4.0 isn't working on the author works pages *or* the category pages. No button to see, anywhere. Also tried switching to desktop mode, no dice. I did check that the script was running, and I reinstalled version 3.0 and double-checked that it still worked. It does. No idea what the issue could be, just letting you know. Thanks for working on this!

§
Posted: 2024-04-26
Edited: 2024-04-26

Have you guys tried reloading the page? The buttons appeared for me when I did that. Only individual chapter buttons work though, the button for the whole thing doesn't.

Firefox 125.0.2 Greasemonkey

§
Posted: 2024-04-26
Edited: 2024-04-26

Doesn't work for me either, on Brave. No buttons anywhere. (And yes, obviously I tried reloading the page!)

§
Posted: 2024-04-26

Got this to work for individual chapters, by deleting the wrapper as Hargrimm suggested. The button also appears for entire stories but does nothing.

§
Posted: 2024-04-26

Yes, I'm pretty sure (or at least I hope) reloading the page was tried by everyone. Personally I tried reloading the page, clearing the browser cache and restarting it, uninstalling and reinstalling version 4.0, and reloading the page again. Then I checked multiple author pages, category pages, and the toplist pages. Also desktop mode on all of the above. Unfortunately nothing worked, and equally unfortunately I haven't the foggiest idea what could be wrong. Glad version 3.0 still kinda works tho, and very glad this script hasn't been abandoned!

§
Posted: 2024-04-27

Yes, I'm pretty sure (or at least I hope) reloading the page was tried by everyone. Personally I tried reloading the page, clearing the browser cache and restarting it, uninstalling and reinstalling version 4.0, and reloading the page again. Then I checked multiple author pages, category pages, and the toplist pages. Also desktop mode on all of the above. Unfortunately nothing worked, and equally unfortunately I haven't the foggiest idea what could be wrong. Glad version 3.0 still kinda works tho, and very glad this script hasn't been abandoned!

are you saying if I uninstall and downgrade to the 3.0 version the script will work?

§
Posted: 2024-04-27

2

Got this to work for individual chapters, by deleting the wrapper as Hargrimm suggested. The button also appears for entire stories but does nothing.

are you on chrome?? does this apply to the chrome version?

§
Posted: 2024-04-27

No button for me either.

§
Posted: 2024-04-27
Edited: 2024-04-27

No button for me either.



Correction, the buttons do show up if I keep hitting F5 over and over and over on the author page, but only the individual buttons work, the all-in-one button simply doesn't do anything, no matter how many times I click on it.

Browser is Firefox 125.0.2 (64-bit), and I'm using ViolentMonkey, I tried it on Brave browser (Chromium) and the result was the same.

§
Posted: 2024-04-27

Yes, I'm pretty sure (or at least I hope) reloading the page was tried by everyone. Personally I tried reloading the page, clearing the browser cache and restarting it, uninstalling and reinstalling version 4.0, and reloading the page again. Then I checked multiple author pages, category pages, and the toplist pages. Also desktop mode on all of the above. Unfortunately nothing worked, and equally unfortunately I haven't the foggiest idea what could be wrong. Glad version 3.0 still kinda works tho, and very glad this script hasn't been abandoned!

are you saying if I uninstall and downgrade to the 3.0 version the script will work?

Sorry, no. In my previous comments I mentioned that version 3.0 still worked for the "category" pages you get if you're reading a story and tap the category link above the story title. (So romance for romance stories, mature for mature stories, etc) The category pages I'm talking about have a section of recent stories, a section of "random" stories, and a section of "hall of fame" stories. Literotica hasn't changed the design of those pages (yet) so 3.0 still works on them. Also, there's a "recently popular" section on the right side of those category pages, and you can tap "more popular romance" (or whatever category you're looking at obviously) and get a section of "stories posted today, the last 7 days, and the last 30 days" those stories all have the little download button arrow next to them, and they download successfully for me. Version 4.0 just doesn't work for me at all. So some functionality is better than none. Right now I'm just monitoring my fave authors and downloading their new releases while they're still on that "new releases" page. It's a PITA, but it's working right now.

§
Posted: 2024-04-27
Edited: 2024-04-27

Yes, I'm pretty sure (or at least I hope) reloading the page was tried by everyone. Personally I tried reloading the page, clearing the browser cache and restarting it, uninstalling and reinstalling version 4.0, and reloading the page again. Then I checked multiple author pages, category pages, and the toplist pages. Also desktop mode on all of the above. Unfortunately nothing worked, and equally unfortunately I haven't the foggiest idea what could be wrong. Glad version 3.0 still kinda works tho, and very glad this script hasn't been abandoned!

are you saying if I uninstall and downgrade to the 3.0 version the script will work?

Sorry, no. In my previous comments I mentioned that version 3.0 still worked for the "category" pages you get if you're reading a story and tap the category link above the story title. (So romance for romance stories, mature for mature stories, etc) The category pages I'm talking about have a section of recent stories, a section of "random" stories, and a section of "hall of fame" stories. Literotica hasn't changed the design of those pages (yet) so 3.0 still works on them. Also, there's a "recently popular" section on the right side of those category pages, and you can tap "more popular romance" (or whatever category you're looking at obviously) and get a section of "stories posted today, the last 7 days, and the last 30 days" those stories all have the little download button arrow next to them, and they download successfully for me. Version 4.0 just doesn't work for me at all. So some functionality is better than none. Right now I'm just monitoring my fave authors and downloading their new releases while they're still on that "new releases" page. It's a PITA, but it's working right now.

I switched to using jdownloader2: https://jdownloader.org/download/index

Just create a linkgrabber-filter that says:
Download URL - Contains Not - https://www.literotica.com/s/*

This allows me to download all stories from the author page.

§
Posted: 2024-04-27

I wanted to add edit my previous comment to add this, but there is no edit option:

This bash function makes the story page more readable

literotica-fix-layout () {
    detox ./*
    sed -i '1i\<body style="background-color:#333333; color: #EEEEEE; font-family: Helvetica,Arial,sans-serif; width: 45%; margin: 0 auto; line-height: 1.2em; font-size:1.1em; padding: 50px 0 50px 0;">' ./*
}
§
Posted: 2024-04-28

I wanted to add edit my previous comment to add this, but there is no edit option:

This bash function makes the story page more readable

literotica-fix-layout () {
    detox ./*
    sed -i '1i\<body style="background-color:#333333; color: #EEEEEE; font-family: Helvetica,Arial,sans-serif; width: 45%; margin: 0 auto; line-height: 1.2em; font-size:1.1em; padding: 50px 0 50px 0;">' ./*
}

where do I add that? I'm not very educated in terms of coding, I'd appreciate any help you could provide my laymen self with this.

§
Posted: 2024-04-28
Edited: 2024-04-28

I wanted to add edit my previous comment to add this, but there is no edit option:

This bash function makes the story page more readable

literotica-fix-layout () {
    detox ./*
    sed -i '1i\<body style="background-color:#333333; color: #EEEEEE; font-family: Helvetica,Arial,sans-serif; width: 45%; margin: 0 auto; line-height: 1.2em; font-size:1.1em; padding: 50px 0 50px 0;">' ./*
}

where do I add that? I'm not very educated in terms of coding, I'd appreciate any help you could provide my laymen self with this.

It's a Linux terminal bash function (a combination of commands), that you add to the end of the configuration file called ".bashrc", so that you can type in "literotica-fix-layout" in the terminal, and it fixes the layout of all the files in that folder you're in.

If you're using Windows 10/11, you can install Linux Mint in VirtualBox and then follow the steps above.

JDownloader works in Windows and Linux, but then you would have to copy the html stories to a linux computer or virtual machine to run the bash function I posted.

§
Posted: 2024-04-28

If you don't want to create a linux VM, you can just install windows subsystem for linux, which basically gives you a Bash terminal in Windows: https://learn.microsoft.com/en-us/windows/wsl/install

§
Posted: 2024-04-28

I don't know.

Could you give me your navigator, the script manager (tampermonkey, greasemonkey or other), the page that have the problem ?

You could also provide me the output of the console (F12 on most navigator)

I have put the download button on works/stories page of the author on the top right of the card, next to their bookmark.

It's load 0.25 second after the page.

Hi, to anyone reading this. You can fix the buttons not loading by changing

document.addEventListener("DOMContentLoaded", function() {
'use strict';
setTimeout(function() {

into:

window.addEventListener("load", function() {
'use strict';
setTimeout(function() {

The pages will load the script consistently every time from what I've tested

NOW, there's still the problem with some series button not doing anything as reported in another feedback here: https://sleazyfork.org/en/scripts/423700-literotica-downloader/discussions/241304

I'm still trying to fix this issue on my end, if I find a fix, I'll post it here and hopefully the author can push a patch.

§
Posted: 2024-04-28

I don't know.

Could you give me your navigator, the script manager (tampermonkey, greasemonkey or other), the page that have the problem ?

You could also provide me the output of the console (F12 on most navigator)

I have put the download button on works/stories page of the author on the top right of the card, next to their bookmark.

It's load 0.25 second after the page.

Hi, to anyone reading this. You can fix the buttons not loading by changing

document.addEventListener("DOMContentLoaded", function() {
'use strict';
setTimeout(function() {

into:

window.addEventListener("load", function() {
'use strict';
setTimeout(function() {

The pages will load the script consistently every time from what I've tested

NOW, there's still the problem with some series button not doing anything as reported in another feedback here: https://sleazyfork.org/en/scripts/423700-literotica-downloader/discussions/241304

I'm still trying to fix this issue on my end, if I find a fix, I'll post it here and hopefully the author can push a patch.

DUDE BRO DUDE! It works! I want to make sure everyone knows that on Chrome, this works. BE SURE TO LOOK ON THE RIGHT HAND SIDE OF THE PAGE FOR THE SMALL DOWNLOAD BUTTON!! It is no longer on the left hand side by the title of the story, it is now right next to the bookmark icon for the story. I even experimented on the series download, and for the few I tried, it did work for me! Mr. i23234234 You are flippin awesome!

§
Posted: 2024-04-28

Read through the entire thread for the fix.
"Hi, to anyone reading this. You can fix the buttons not loading by changing

document.addEventListener("DOMContentLoaded", function() {
'use strict';
setTimeout(function() {

into:

window.addEventListener("load", function() {
'use strict';
setTimeout(function() {

The pages will load the script consistently every time from what I've tested

NOW, there's still the problem with some series button not doing anything as reported in another feedback here: https://sleazyfork.org/en/scripts/423700-literotica-downloader/discussions/241304"

thanks to the script original writer and i23234234

§
Posted: 2024-04-28

I found another issues while trying to fix the pre-existing SERIES download issue. It seems to be related to long series and how the new UI works.

Essentially long series have a "View Full Series" at the bottom as you can see from the annexed image, the cutoff is 24/25, YOU NEED to click that button or the SERIES downloads WON'T include every single chapter, and I've tested a series with 88 and all chapters are visible when you click, so don't worry about long series having a cutoff point even when you click view full.

Now, the main problem with series still remain, the way the script works, it's pulling from CSS elements, and it requires that the URL include the series name like below

https://www.literotica.com/series/se/guardian-program works, the title is in the link
https://www.literotica.com/series/se/493719413 doesn't work, the title of the series is Step Sister Corruption

The problem is in this code:

const titlesChapter = document.querySelectorAll('._series_parts__item__series_part_card_29o2p_264 ._works_item__title_29o2p_36 ._item_title_29o2p_162 ');

So, whomever has an idea on how to fix this, that would be nice.

ALSO, don't use COMBINED series UI, it won't work. It'll download an empty HTML file, because this script relies on CSS elements, which I guess change when you use the COMBINED view instead of the EXPANDED (this isn't related to the View Full Series button thing I described above, but it's the same issue overall).

§
Posted: 2024-04-28
I found another issues while trying to fix the pre-existing SERIES download issue. It seems to be related to long series and how the new UI works.

The problem is that it's use only what is already loaded on the page.
One work around is to manualy clic on the extension on it before downloading the serie.

I will add an automatic version of that latter on.

By the way, I added your fix for the loading problem. (you are credited ofcourse)

§
Posted: 2024-04-28
Edited: 2024-04-28
I found another issues while trying to fix the pre-existing SERIES download issue. It seems to be related to long series and how the new UI works.

The problem is that it's use only what is already loaded on the page.
One work around is to manualy clic on the extension on it before downloading the serie.

I will add an automatic version of that latter on.

By the way, I added your fix for the loading problem. (you are credited ofcourse)

I seem to have resolved the issue with the SERIES button not working for URLS that don't include the title name.

I.E
https://www.literotica.com/series/se/guardian-program works, the title is in the link
https://www.literotica.com/series/se/493719413 doesn't work, the title of the series is Step Sister Corruption

The code change is as follows:

function getDescriptionFormDiv(storyDiv){
return storyDiv.querySelectorAll('._item_description_29o2p_176,._item_title_29o2p_162')[0].textContent;
}

Replaced with (Ghetto fix):

function getDescriptionFormDiv(storyDiv) {
const descriptionElement = storyDiv.querySelector('.ANYTHING');
return descriptionElement ? descriptionElement.textContent.trim() : '';
}

I'm not sure if it broke any other behavior, but I've tested it with multiple series and it seems to work regardless if the URL has the title or a random ID, and the HTML files contain all chapters (from what I've tested.)

If it didn't introduce any other issues, then all that remains is the collapsed chapters issue, but that's easy to workaround like you said.

§
Posted: 2024-04-28
I found another issues while trying to fix the pre-existing SERIES download issue. It seems to be related to long series and how the new UI works.

The problem is that it's use only what is already loaded on the page.
One work around is to manualy clic on the extension on it before downloading the serie.

I will add an automatic version of that latter on.

By the way, I added your fix for the loading problem. (you are credited ofcourse)

I seem to have resolved the issue with the SERIES button not working for URLS that don't include the title name.

I.E
https://www.literotica.com/series/se/guardian-program works, the title is in the link
https://www.literotica.com/series/se/493719413 doesn't work, the title of the series is Step Sister Corruption

The code change is as follows:

function getDescriptionFormDiv(storyDiv){
return storyDiv.querySelectorAll('._item_description_29o2p_176,._item_title_29o2p_162')[0].textContent;
}

Replaced with (Ghetto fix):

function getDescriptionFormDiv(storyDiv) {
const descriptionElement = storyDiv.querySelector('.ANYTHING');
return descriptionElement ? descriptionElement.textContent.trim() : '';
}

I'm not sure if it broke any other behavior, but I've tested it with multiple series and it seems to work regardless if the URL has the title or a random ID, and the HTML files contain all chapters (from what I've tested.)

If it didn't introduce any other issues, then all that remains is the collapsed chapters issue, but that's easy to workaround like you said.

Nvm, I didn't notice it was fixed.

§
Posted: 2024-04-28

Thanks for the update! Seems to work now to get those download buttons to see and it works to download the stories. Only issue I see is that the descriptions info isn't added into the story header as before when I download the story from the author stories page. In this case the story title is used twice in the created HTML file. When I download the story from category list (literotica.com/c/*) then it will use the description info in created HTML file.

Also see that the download isn't working for all URLs like Tags (tags.literotica.com/*) and also category URL is not working when I use a specific language (did include URLs in TM) in the URL before the Tag or C like these (german.tags.literotica.com/*) or (german.literotica.com/c/*). I see the download button but it does nothing when I click on it. I get some error info in console about...
Access to XMLHttpRequest at 'https://www.literotica.com/s/eva-10-josephine' from origin 'https://german.literotica.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
GET https://www.literotica.com/s/eva-10-josephine net::ERR_FAILED

Can you check this again to make it work?

§
Posted: 2024-04-29

I'm pretty sure 3.0 didn't work with tags, or the category pages, either, but it would be stupid awesome if it could be made to work that way. Either way, 4.4 is working properly on author pages again (sometimes have to refresh the page after opening it, but that's perfectly fine with me!) and I'm friggin ecstatic! Thanks!

§
Posted: 2024-04-29
Edited: 2024-04-29

Just noticed, the downloads now have a space between the story name, and the underscore before the author name. So "Toofy_shakna" is now "Toofy _shakna". Not a big deal, but makes it possible to download a series twice without realizing it. Just letting you know.

(Great story, BTW if you don't mind catgirls and such. Good author either way)
Update: just checked, and it isn't *every* story. Not sure what's going on. It definitely did it with "my sister's a werewolf" by shakna, tho.
2nd update: it's *series* that have the issue, it looks like. Single stories still have no space between title and underscore.

§
Posted: 2024-04-29

I made some tests...I added those includes below...

https://literotica.com/c/*
https://www.literotica.com/c/*
https://*.literotica.com/c/*
https://*.*.literotica.com/c/*
https://tags.literotica.com/*
https://www.tags.literotica.com/*
https://*.tags.literotica.com/*
https://literotica.com/authors/**/works/stories*
https://www.literotica.com/authors/**/works/stories*

Now I checked the sites below...

https://www.literotica.com/c/bdsm-stories DL button YES || works YES
https://literotica.com/c/bdsm-stories DL button YES || works NO
https://german.literotica.com/c/bdsm-stories DL button YES || works NO
https://tags.literotica.com/bikini/ DL button YES || works NO
https://www.tags.literotica.com/bikini/ Not Found
https://german.tags.literotica.com/bikini/ DL button YES || works NO

NO DL Button anywhere to see
https://www.literotica.com/authors/Flybynite1892/works/stories

...and only the first one works to download anything and for all others where the download button is there I get that CROSS Error. I was also checking the old script version I used before a long time (version 2.5) and this script is using $.ajax function with the parameter "crossDomain: true,". In your latest script version you are using "XMLHttpRequest" method inside of function getContentOfStoie(baseURL) and this fails always with that CROSS error. Browser does reject it. So I'm not good in JS but tried adding a any request parameter...

xhr.setRequestHeader('Access-Control-Allow-Origin', '*');

...but it does not work. So I hope that you can check this CROSS error problem and fix it. Otherwise you should use that old script ajax function method with crossDomain: true parameter to prevent that CROSS errors.

§
Posted: 2024-04-30

I swear to god, I am on the website today, and I can not get the damn things to load AGAIN. I am on 4.4 using all the updates and the icon is gone. I am so pissed. Did they just make more fucking changes? I downgraded one by one back to 4.0 and implimented the fix by 123232 guy, and it doesn't work any longer. I have reinstalled 4.4 and I guess I will just wait like a doughnut until someone can fix it again for me. lol I'm so hopeless

§
Posted: 2024-04-30

Actually - Correction. I can get the download button to appear on the main website page i.e. "https://www.literotica.com/c/taboo-sex-stories" it appears next to the individual stories there, but does not appear on the author's webpages listing the series or individuals.

§
Posted: 2024-04-30

My situation is the exact same as the guy above. 4.0 semi-worked for individual chapters but not whole series but now 4.4 only shows links on the main page.

§
Posted: 2024-04-30
Edited: 2024-04-30

ditto - the tags page also shows the icon but not the author pages. (version 4.4, firefox greasemonkey)

§
Posted: 2024-04-30

Saw that the guy above me is using the same browser and "monkey" so I tried the script on ViolentMonkey. Nope.

§
Posted: 2024-04-30

I found a way to bypass that CROSS Error by using a extension called "CORS Unblock" for Chrome browsers. Now the download works when I do enable that extension (just for the download only). That's a small workaround you & me can use if you have same trouble and not just using the English language.

Next problem I found is that the download of all pages of a story also not works in case of different URLs (language again like german.tags.) so then it will just download the first page and all other pages fail 404 because of getContentOfStoie function what just checks for...

if(linkNextPage.startsWith("https://tags.literotica.com")){
linkNextPage =linkNextPage.replace("https://tags.literotica.com",PREFIX_URL_PAGE)
}

...tags.literotica only but if you use a other language like "german.tags.literotica" then it fails for next pages to download.
@LiteroticaMaintener - I would really suggest to keep that in mind for your next comming updates to be sure that users can also use any language term in the URLs itself before the tags or anything else you know.

I also see that the download button is gone from some pages like those of the authors which was to see few days ago. Anyway, just try to update your script @LiteroticaMaintener and try to make it work more dynamically (support languages in URLs / add alternativ download in menu / fix that CROSS issue in script) so that we can use that script go on as before all the time. I also don't like to download stories via copy / paste and the literotica guys aren't so friendly enough to provide a own download function to download any story the user (you & me) want like you can do on some tube sites. I really hate those websites who are willing to get everything from us but NOT willing to share it with US back.

§
Posted: 2024-05-01

This (v4.4) is still not working for me.

§
Posted: 2024-05-02

Yeah, still not working right. Darn it. Idk what they changed, but it worked properly for maybe a day or so, and then it was back to only working on the category pages with the hall of fame section and random story sections. Still there.

§
Posted: 2024-05-02

After something like 14 years Literotica decides to update their damn site and I can't think of a single person that was asking for that to be done lol. Don't give up @LiteroticaMaintener - I love your script and I have faith in your abilities to master that website's bullshit. I'll be over here cheering you on, just don't let the man win by giving up!

§
Posted: 2024-05-05

@TankThis Thanks for the testing I reused your post to check the new behavior.

@Travibe Had a buzy life... Manor Lord game got early access !

@myob / @SatyrNymph / @Vulture051 / @ineffectual / @Travibe Should work now. If not give the page that doesn't.

§
Posted: 2024-05-05

Working great now! Thanks!

§
Posted: 2024-05-05
Edited: 2024-05-05

Greasemonkey Latest Firefox
The button exists now and downloads something when clicked but it doesn't grab all the chapters and it's a wall of unformatted text.
For example: https://www.literotica.com/authors/Lightning454572/works/stories Stepsister Corruption is 15 chapters but missing the last 2
https://www.literotica.com/authors/TheBoredandtheTempted/works/stories Monster In My Phone is 3 chapters and missing the last.


and this is what they all look like https://imgur.com/a/sLQsaBB

§
Posted: 2024-05-05

@LiteroticaMaintener Thank you for your efforts to adapt the script to the new website structure. This is great!

@All: It might be helpful if we help and clearly communicate,
A) environment was used,
B) page type was loaded from (Author Page, Category Page, Tag Results Page, Serch Results Page)
C) if this was not successful AND perhaps from which page it may have been successful.

For me:
A) Firefox Android, Violentmonkey AND Firefox Windows, Greasemonkey (both results are identical)
B) Author Page
C) WORKS here for 1 to 50 stories on the author page (in a quick try out).
But on pages with more than 50 stories, you have the option of selecting “Show more” at the bottom. THEN all download buttons have disappeared.
(Could there be an additional feature in the script options to display all stories at once?)

---
BTW 1: Part count are missing: Is it possible again to append the number of parts to the file name when downloading multi-part stories (ex. "- 12 Part Series") ?

---
BTW 2: The script does not work immediately under Firefox Windows and Firefox Android if you use a link to an author whose name contains spaces.
Workaround: Reload the webpage once.

§
Posted: 2024-05-05

@Vulture051 I fixed the format. I look for the rest.

§
Posted: 2024-05-05

@Vulture051 The API doesn't give the right information on the series when based on the first chapter of a series.

Of course, the endpoint for the series doesn't give the chapter properly too.

So, I base the data of the last chapter.

@0yhgfehs : Handled the show more to add the button when clicked.

§
Posted: 2024-05-05

@0yhgfehs
BTW 1: Part count are missing: Is it possible again to append the number of parts to the file name when downloading multi-part stories (ex. "- 12 Part Series") ?

Not sure of what you want. Could you give an example ?
With current behavior and desired behavior.

That will not for today, but I may look into it later.

§
Posted: 2024-05-05

All the chapters, paragraphs, italics/bolding. As far as I can tell, that seems to have done it. 👍

§
Posted: 2024-05-05

Thank you very much for the updates @LiteroticaMaintener. All seems to work fine again (Yet). Just have a little idea about the export style parameters you do use in your script (normal & night mode). So I always edit the script manually every time to enter my desired colors / fontsize to make it look like in ReaderView. Maybe you could add some user styles we can choose when saving a story. So my prefered style is this...

'fontsize': "18" <-- set 18 in options

Are already set fine with 1.4 & 1.2
var chapterStyle = '_style="line-height: 1.4em;" ';
var descriptionStyle = ' style="line-height: 1.2em;" ';

"background-color:#F4ECD8; color: #5B4636;" <---- SEPIA
"font-family: Helvetica,Arial,sans-serif; width: 90%; margin: 0 auto; line-height: 1.5em;" <-- set width to 90% instead of 50%
"font-size:"+options.fontsize+"px; padding: 50px 0 50px 0;"; <--- set em to px


...I always use to save stories. Looks good and I got a nice reading like in ReaderView. So it's just a idea to add possible user prefered styles like mine into the script options the user can choose / set you know.

§
Posted: 2024-05-06

@0yhgfehs
BTW 1: Part count are missing: Is it possible again to append the number of parts to the file name when downloading multi-part stories (ex. "- 12 Part Series") ?

Not sure of what you want. Could you give an example ?
With current behavior and desired behavior.

That will not for today, but I may look into it later.

It's a simple variable that's missing since the new script version 4.x and 5.x:

Comparison of the generated file name between script version 3.0 and script version 5.4:
3.0: "StoryName - AutorName - 12 Part Series.html"
5.4: "StoryName - AutorName.html"

"alert("Starting building file for " + title + " of " + author + " with "+numberChapter+".\nPlease wait...");
The var numberChapter is in the user dialog fine but missing in the creation of the file name.

§
Posted: 2024-05-06

Still doesn't work on Brave. No buttons.

§
Posted: 2024-05-06

Still doesn't work on Brave. No buttons.

Sorry, I take that back. Seems to be working after all on Brave. Not sure what I did. Was trying on author's "/works" page. Tried multiple reloads of browser, closing down and restarting etc and nothing worked. But then I noticed people saying it worked in tag categories, so tried that and the button appeared. Now it appears for individual authors too. Not sure if this is coincidence or if going to tags helped.

§
Posted: 2024-05-09

OK, I have no idea what is up, since it has stopped working for me again. It works on the tags pages only but doesn't work on https://www.literotica.com/authors/***/works/stories pages. I swear it was working before but now I can't get it to work on these pages. And of course these are the most useful pages to use it on if you want a multipart story.

§
Posted: 2024-05-09
Edited: 2024-05-09

Oh god damn it, yep buttons are all gone for me too.
Greasemonkey Latest Firefox

§
Posted: 2024-05-09

BRO WTF is this site cursed? All that lovely progress is just smashed and destroyed. All gone. Fudge.

§
Posted: 2024-05-09

If you mean Literotica, yes. It's cursed by idjits who decided to change an interface that had remained largely unaltered since 1996, with only a couple significant changes since then, and most of those to the reading interface, not the submissions pages and such. Now they've decided to make the site super duper "mobile friendly" (baffling me, a person who uses the site almost exclusively on a mobile device) and they've buggered the interface. And they keep. Fricking. Tinkering! And every time they tinker, it breaks this script. The facepalm is over 9000.

§
Posted: 2024-05-09

Starting to wonder if this isn't "idjits" tinkering and they're actively fighting the script to keep the storied from being downloaded.

§
Posted: 2024-05-09

So to make it short, Literotica just did change some class names a little what's the reason why the script does fail on sub sites like on authors page. After short look in the page source / elements I found the bad / new class names. So you can now edit the script by yourself to replace all class names which include the name part "17lfx" and replace it with "17myp" and save it and try again. Now you got the download buttons back. That's all so far I can see to make a quick fix so far till @LiteroticaMaintener will update the script again. No idea why they changed some of those names (3 letters), maybe just to annoy us again. Anyway, lets hope that they will not change anything anymore and that @LiteroticaMaintener has more time to check this script & update it or otherwise I really have to lern JS / TMS because I'm also using that script for very long time and want to keep using it to save stories and reading them offline.

§
Posted: 2024-05-09

@TankThis Thank you, did your fix in Notepad+ and it's working again. At least for now.

For lazy people: https://pastebin.com/6KPHqnbf

§
Posted: 2024-05-10
Edited: 2024-05-10

Fantastic. Working great now with TankThis's fix!

§
Posted: 2024-05-12

@TankThis @Vulture051 @myob @SatyrNymph To be honest my coding wasn't that particularly robust to begging with. I knew this problem would occur sooner or later.

I fixed the problem with a more definitive solution that is more elegant.

§
Posted: 2024-05-12

@LiteroticaMaintener I am nominating you for the Nobel Peace Prize. Your tireless efforts to help this community and never resorting to throwing your hands in the air and saying "f*ck it".

§
Posted: 2024-05-13

Awesome!

It works now, but unfortunately it doesn't work if you select "alphabetical" and it somehow keeps the "show more" button from appearing on author pages now. Idk why. If I switch the listing to alphabetical, the download arrows go away, and if I switch back to "newest" they're still gone, but the "show more" button appears. I thought I was imagining things, but noticed a whole bunch of one of my favorite author's works weren't there when I wanted to download backup copies. Stupid Literotica, fucking with a perfectly good interface!

§
Posted: 2024-05-13

Correction! The "show more" button disappears if you *refresh the page* at all. Whether this script is installed or not. But the download arrows only show up after a refresh of the page, so it's either (1) see all an author's stories, or (2) get the download buttons on *some* of the author's stories. Damnation.

§
Posted: 2024-05-13

Update 2. Turns out it's the same on Brave mobile and Chrome mobile on Android. Sent them a bug report. God I hate that Show More button!

§
Posted: 2024-05-13

@SatyrNymph alphabetical fixed (Probably why some pages didn't have download button)

@0yhgfehs number of part added properly in the options dialog (enable by default)

@All please make a new feedback for new problems. So I can see if I have seen it and fix it or not.

§
Posted: 2024-05-17

Wilco. Script is working awesome, thank you!

§
Posted: 2024-07-02

hate to do this but it seems to be broken, yet again.

§
Posted: 2024-07-02

Still working over here.

§
Posted: 2024-07-02

NNNNNNOOOOOOOOOOOOOOO I was about to start crying...

It's still working for me. Sometimes I will get to a page and it won't show up at first, but upon refreshing the page through a handy (F5) press, the script will begin working.

*KNOCKS ON WOOD*

§
Posted: 2024-07-02
Edited: 2024-07-02

@ineffectual : If you have a issue please give me more details. -> The page that doesn't work. -> The log in the console (F12 in Firefox and Chrome)

You should see something like that :

Literotica Downloader start addEventListener

[Literotica Downloader]Start init dialog option

[Literotica Downloader]Snd init dialog option

[Literotica Downloader]It's GM !

[Literotica Downloader]init category

[Literotica Downloader]isNightMode-> false

[Literotica Downloader]isNumberChapterInFilename-> true

[Literotica Downloader]isUsernameInFilename-> false

[Literotica Downloader]isDescriptionInFilename-> false

[Literotica Downloader]isNoteInFilename-> false

[Literotica Downloader]isCategoryInFilename-> false

[Literotica Downloader]isBookmark-> false

[Literotica Downloader]fontsize-> 2.1

And on a download :

[Literotica Downloader]In getABookForStoryOnStoryCardComponent

[Literotica Downloader]Fetching on API -> https://literotica.com/api/3/stories/it-was-wednesday-1 Literotica Downloader:511:17

Object { meta: {…}, submission: {…}, pageText: "It was Wednesday. Janet stopped in to see the filthy old man again today. She couldn't keep herself from going. > The thought of all the orgasms he gave her - the dirty things he made her do - had completely sapped her will.\r\n\r\nUntil two months ago, she had been a >

typical high school senior, curious about sex, but never deriving much excitement from the fumbling advances of the boys in her class. Occasionally, in the >

solitude of her own bed at night, she would touch herself, running her hands over her body until eventually they found their way down to her womanhood. She >

found the feelings vaguely pleasurable, even though it was always accompanied with guilty thoughts of committing what grownups had told her was a sin. Her >

fleeting fantasies at these times revolved around scenes she'd watched in romantic movies.\r\n\r\nNow, night after night she would lie in bed, her fingers >

frantically rubbing her clitoris, torturing her nipples, exploring her vagina while her mind conjured up filthy thought…" }

[Literotica Downloader]titleIt was Wednesday

[Literotica Downloader]Processing -> it-was-wednesday-1

[Literotica Downloader]Fetching on API -> https://literotica.com/api/3/stories/it-was-wednesday-1

[Literotica Downloader]pageCount => 2

Without more details, I can't find your problem and fix it. Basic behavior look like find too me...

§
Posted: 2024-07-05

apparently I didn't have the most recent version, works now. apologies.

Post reply

Sign in to post a reply.