Here is an updated version of my guide to save images from DMM's browser viewer, which is useful for .dmme files with which viewerrip doesn't work.
Start Chrome with the --disable-web-security flag and with a different user. In Windows you can do this by pressing Win+R and executing
CODE
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir=C:\chromeuser https://book.dmm.com/library/?age_limit=all&expired=1
Set your desired download folder in Chrome's settings.
Find the work you want to save in your library, open the DevTools with F12 or Ctrl+Shift+I and select the Network tab (if you don't do this beforehand it may ask you to refresh the page).
Start reading.
Click one of the 0.jpeg in the DevTools (you can click Img near the top to filter the images) to show the original image dimensions below the image preview.
With the DevTools still focused, press Ctrl+Shift+M to enable device mode.
Open the device mode advanced options by clicking the vertical ellipsis in the top right and click Add device pixel ratio.
Click DPR at the top and set it to 1.
Set the size of the viewport to that of the original images by changing the values of the numerical inputs at the top center. This will make the images you download of the same dimensions as the originals.
Open the Console tab of the DevTools, copy paste the following code to download the images as jpeg and press enter.
CODE
filename = 1
a = document.createElement('a')
function downloadCanvas() {
a.href = document.querySelector('.currentScreen > canvas').toDataURL('image/jpeg')
a.download = filename++
a.click()
}
downloadCanvas()
Or this to download the images as webp, which have smaller file size.
CODE
filename = 1
a = document.createElement('a')
function downloadCanvas() {
a.href = document.querySelector('.currentScreen > canvas').toDataURL('image/webp')
a.download = filename++
a.click()
}
downloadCanvas()
Set the viewport height again if it has been decreased by the newly appeared download bar.
Go to the next image and execute
CODE
downloadCanvas()
in the console and repeat.
When there is a two-page spread, temporarily double the viewport width.
You can focus the DevTools with F6, but if you just changed the viewport width you have to click the console to focus it again. To save the images quickly I suggest placing the cursor on the left side of the viewport and repeating the following actions:
Click
F6
Up
Enter
You may want to enable mouse keys to click with Numpad 5.
When you save the wrong image, delete it and execute
CODE
--filename
in the console to decrement the next filename by one.
I don't know how to do it right, but i get the image like an screenshot and not the original image quality