save online novel - /wsr/ (#1533252) [Archived: 238 hours ago]

Anonymous
7/12/2025, 7:37:38 AM No.1533252
1628536453530
1628536453530
md5: 9a4309b7e3276b124e3e01d676aa3ceb🔍
I need the text of all the chapters of this novel saved to my pc, but the site is full of scripts preventing from selecting and copying the text or saving correctly the pages. How can I do it?
https://app.yoru.world/en/story/167/chapters
Replies: >>1533256 >>1533291
Anonymous
7/12/2025, 8:10:27 AM No.1533256
>>1533252 (OP)
It's done using the user-select css rules.
If you're on firefox an easy way to bypass it is to press Alt to show the bar at the top, then go to View, Page Style and select No Style.
Otherwise you can open devtools (inspect element) and paste the following into the console and press enter; you might have to follow the instructions it gives you before it allows you to paste anything
document.styleSheets[0].insertRule("* { user-select:text !important }");
Replies: >>1533307
Anonymous
7/12/2025, 4:21:10 PM No.1533291
>>1533252 (OP)
If your bookmarks/favorites bar is not visible, make it visible.
Add any random new bookmark to the bar.
Right click on the bookmark and edit it. Erase its contents and paste the following code inside:

javascript: function copyTextToClipboard(text) { var textArea = document.createElement("textarea"); textArea.value = text; document.body.appendChild(textArea); textArea.focus(); textArea.select(); try { document.execCommand("copy"); } catch (err) { } document.body.removeChild(textArea);} var tx = document.getElementsByClassName("prose")[0]; copyTextToClipboard(tx.nextElementSibling.children[1].textContent+'\n\n'+tx.textContent);

Now to copy the text, simply browse the chapter you want to copy, and then click on the bookmark: Your clipboard will automatically pick up the text. Go and paste it into notepad or whatever.
Replies: >>1533307
Anonymous
7/12/2025, 8:34:07 PM No.1533307
>>1533256
>>1533291
Thank you for your comprehensive and clear answers. If it's not too much trouble, I would like to ask if it is possible to automate this entire process in some way or save all the complete pages, merge them, and edit the resulting file. I tried to download a chapter with firefox, but the chapter text was not in the html.
Replies: >>1533314 >>1533325
Anonymous
7/12/2025, 10:17:28 PM No.1533314
>>1533307
That site loads content dynamically, so fully automating the copying is a bit more trouble than it's worth.
Here's another code for a bookmark:

javascript: async function copyText(text) {var textArea = document.createElement("textarea");document.body.appendChild(textArea);function dd(a){textArea.value=a;}; var gg=await navigator.clipboard.readText().then(dd);textArea.focus();textArea.value += text;textArea.select();try{document.execCommand("copy");}catch(err){};document.body.removeChild(textArea);};var tx = document.getElementsByClassName("prose")[0]; copyText(tx.previousElementSibling.children[1].textContent+'\n\n'+tx.textContent+'\n\n\n');tx.nextElementSibling.children[2].click();

This code copies the text and title of the chapter you're browsing, plus any text that is already in your clipboard, and then automatically clicks on the "next chapter" button on the page. So all you have to do is browse chapter 1 of the story, click on the bookmark with this code, wait for chapter 2 to load, click the bookmark again, wait for chapter 3 to load, click the bookmark, and so on. Later after you've browsed several chapters in this fashion, paste the text into notepad: all the chapters will be there.
As proof that this works, here's 14 chapters that I copied in about 40 seconds: https://rentry.org/mia68a2x
Replies: >>1533325
Anonymous
7/13/2025, 12:25:27 AM No.1533325
>>1533307
The site is very script-heavy but I took a look at the requests it makes and made a python script to do this: https://pastebin.com/i9wFjCW2 (download and save it as something like yoru_downloader.py)
You can edit the number at the top where it says BOOK_ID to whatever book you want (get it from the book's URL, 167 in the case of the one you linked)
When you run it, it should create a file such as 167.txt in the same directory (it takes a while if there are many chapters).

Obviously you need to have python installed but then it should work on Windows as well.
You also need the requests library, if you don't have it open a command prompt and run this:
pip install requests

Other than being automatic this should also give a cleaner result than the solution in >>1533314 because it doesn't ignore any newlines and cleans up any floating HTML tags; although I didn't include the chapter headers since they're not needed with the book you linked.