willbchang / chrome-read-later

A temporary bookmark focuses on reading later, rather than closing and removing, with several Vim keybindings!
https://chrome.google.com/webstore/detail/fbmfcfkokefgbmfcjahdmomlifclekib/
GNU Affero General Public License v3.0
62 stars 3 forks source link

Save pdf position, scale size #48

Open willbchang opened 4 years ago

willbchang commented 4 years ago

Feature requested by @sarahyoungvii Since chrome doesn't provide an API Documentation for this, it can be hard to do in a raw way.

For PDF Viewer Extension

$('#viewerContainer').scrollTop
window.innerHight
$('#viewerContainer').scrollHeight
willbchang commented 2 years ago

51 same thing

https://manga.bilibili.com/mc24742/218236

$('.ps-container').scrollTop
window.innerHeight
$('.ps-container').scrollHeight